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.

Crash after compileCoreMesh during runtime
Vote this thread:


@EventPlatform

Posts: 9

NGLNewbie

Fri, Nov 8 2013


Hi!

I'am trying to modify a texture with this code:

[self pause:YES];
NGLMesh *mesh = _camera.allMeshes.lastObject;
NGLMaterialMulti *materials = mesh.material;
NGLMaterial *material = [materials materialWithName:@"paint"];
material.diffuseColor = nglColorFromUIColor(((UIButton*)sender).backgroundColor);
[mesh compileCoreMesh];

Where pause looks like:
- (void) pause:(BOOL) pause {
_nglView.paused = pause;
_progressView.hidden = !pause;
self.view.userInteractionEnabled = !pause;
}

'mesh' var and other vars are ok.

But after calling compileCoreMesh program crashes with the following log:
2013-11-08 18:30:49.087 -[NGLArray stringByReplacingOccurrencesOfString:withString:]: unrecognized selector sent to instance 0x16e8e540
2013-11-08 18:30:49.089 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NGLArray stringByReplacingOccurrencesOfString:withString:]: unrecognized selector sent to instance 0x16e8e540'


Sometimes i've got bad access at
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

or at
[mesh compileCoreMesh];

or at any other line...

Any suggestions on how to fix this?
Thanks!
0% like this - 0/0

@EventPlatform

Posts: 9

NGLNewbie

Fri, Nov 8 2013


My bad, did not saw the note which says: You should never use this directly :(
I'll store meshes somewhere else...
0% like this - 0/0

@EventPlatform

Posts: 9

NGLNewbie

Fri, Nov 8 2013


Nope... Storing a mesh in a variable did not help...
For a first time the color changes correctly.
But for a second time there is a crash...
0% like this - 0/0

@EventPlatform

Posts: 9

NGLNewbie

Fri, Nov 8 2013


*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderSet initWithObjects:count:]: attempt to insert nil object from objects[0]'
0% like this - 0/0

@EventPlatform

Posts: 9

NGLNewbie

Wed, Nov 13 2013


Any suggestions?
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.