Login Action Required

The NinevehGL Forum uses a new concept of "socialized forum" or as we like to say "Tweet Forum".


Here is the deal:
  1. No new registration is required. Just sign in with your Twitter account and authorize the NinevehGL Forum.
  2. Once you’re in, you'll be able to "Follow a Thread", that means every time that thread receive a new post or update you'll receive a mention on your twitter.
  3. Besides, you can enable "Auto Share", then every new post and/or thread you make will be tweeted on your timeline. (By default, auto-share is enabled only for your threads)

Forum Rules:

1. We understand human comunication can become "hot" sometimes. So some insults and bad words ARE allowed. Just don't push too much being an asshole all the time.

2. SPAMMERS are not allowed. There are penalties for this kind of user and they can be banned forever.

3. You can report other users, if you judge necessary. An user reported many times by many people can also be banned forever. However you can also receive penalties for report deliberately for no apparent reason.

If there is a similar thread title, make sure the other one doesn't already have the answer you're looking for.

This forum uses the BBCode (Bulletin Board Code), here are some instructions:

Bold: [b]text[/b]
Italic: [i]text[/i]
Underline: [u]text[/u]

Code: [code]text[/code]
Quote:
[quote=@username]text[/quote]
[quote]text[/quote]

List:
[ul] [*]item [/ul]
[ol] [*]item [/ol]

URL:
[url]http://url.com[/url]
[url=http://url.com]text[/url]

Image:
[img]http://imageurl.com[/img]

Embed (videos, code, 3D):
[embed]http://url.com[/embed]

Welcome to the NinevehGL's world!
NinevehGL is a 3D engine forged with pure Obj-C.
Welcome to the
Forum!
Hello, Guest.

Your current vote:

You can change your vote many times. But it's still one single vote.

Stop/finalize _mesh
Vote this thread:


@SkullRave

Posts: 5

NGLNewbie

Tue, Nov 5 2013


Hi,

Is it possible to stop the loading process object (mesh)? When I return to the previous view my application breaks.

I've tried with:
[_camera removeAllMeshes];
[_mesh cancelLoading];

Shanti.
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Sat, Nov 9 2013


In response to: @SkullRave

Yes,

cancelLoading is the method you're looking for.
Could be better if you send us the code you're using and the problem you're facing for investigation.
100% like this - 1/1

@SkullRave

Posts: 5

NGLNewbie

Mon, Nov 11 2013


In response to: @dineybomfim

Thanks for responding. I use this code but sometimes breaks the application.

-(IBAction)btnBack:(id)sender{

[_camera removeAllMeshes];
[_camera removeMesh:_mesh];
[_mesh cancelLoading];

[self dismissViewControllerAnimated:NO completion:nil];
}

0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Mon, Nov 11 2013


In response to: @SkullRave

Please, send us your code.

BTW, the following code is redundant.
[_camera removeAllMeshes];
[_camera removeMesh:_mesh];
0% like this - 0/0

@SkullRave

Posts: 5

NGLNewbie

Tue, Nov 12 2013


In response to: @dineybomfim

I use this code:

NSLog(@"load PACEMAN 3D");

view3DMini = [[NGLView alloc] initWithFrame:CGRectMake(0, 160, 320, 260)];
view3DMini.delegate = self;
[self.view addSubview:view3DMini];

view3DMini.contentScaleFactor = [[UIScreen mainScreen] scale];

NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
// kNGLMeshOriginalYes, kNGLMeshKeyOriginal,
kNGLMeshCentralizeYes, kNGLMeshKeyCentralize,
@"1.5", kNGLMeshKeyNormalize,
nil];
// Initialize the mesh which includes the model file to import (.obj or .dae).
_mesh = [[NGLMesh alloc] initWithFile:@"paceman.obj" settings:settings delegate:nil];

_mesh.scaleX=0.4;
_mesh.scaleY=0.6;
_mesh.scaleZ=0.4;
_mesh.rotateX = 4;

// Initialize the camera used to render the scene.
_camera = [[NGLCamera alloc] initWithMeshes:_mesh, nil];
view3DMini.backgroundColor = [UIColor clearColor];

nglGlobalTextureQuality(NGLTextureQualityTrilinear);
nglGlobalColorFormat(NGLColorFormatRGBA);
nglGlobalTextureOptimize(NGLTextureOptimizeNone);
nglGlobalFPS(30);
nglGlobalLightEffects(NGLLightEffectsON);
glEnable (GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
nglGlobalFrontAndCullFace(NGLFrontFaceCCW, NGLCullFaceNone);
nglGlobalFlush();


This is my code. But when I try to return to the previous view application breaks. Now I use this code to return to the previous view:

-(IBAction)btnBack:(id)sender{
[_mesh cancelLoading];
[self dismissViewControllerAnimated:NO completion:nil];
}

Thanks for the help.
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Tue, Nov 12 2013


In response to: @SkullRave

Hi,

No, I meant, you must send us the entire project via email for investigation.
The error could not be with NinevehGL code it self, but with others logics that comes before or after NinevehGL
0% like this - 0/0
Technology

NinevehGL is a 3D engine built right on top of OpenGL ES and it uses all the programmable pipeline power, making it easy for you to create great application with shaders.

Share on


Follow NinevehGL
Fastest way to contact us:

Copyright © 2011 db-in. All rights reserved.