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]

[ul] [*]item [/ul]
[ol] [*]item [/ol]



Embed (videos, code, 3D):

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

Your current vote:

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

Changing texture giving error on device
Vote this thread:

redirected." width="73px" height="73px"/>


Posts: 4


Mon, Nov 19 2012

Hello Sir,
From your sample app i am trying to create an application in iphone just like www.foldable.me for that i am using your customizing meshes sample .I am trying to change the texture of my 3d model like i want to change the eye then i can change it with my different eye images. I am using this code to do that.

NGLTexture *texture;
texture = [NGLTexture texture2DWithFile:@"eye01.png"];

NGLMaterialMulti *material = (NGLMaterialMulti *)_mesh.material;

[[material materialWithName:@"lambert18SG"] setDiffuseMap:texture];

_mesh.material = material;

[_mesh compileCoreMesh];

when i am running this app on similator its working fine but i am not able to run it on device.

I am getting error ie:'NSRangeException', reason: '*** -[NSConcreteData getBytes:range:]: range {14980, 4} exceeds data length 14982'

Sir please help me and give me an idea how to do this or if you have any sample app like this please send me on sawantsingh2010@gmail.com

I will be ever thankful to you for this .

0% like this - 0/0


Posts: 571


Tue, Nov 20 2012

In response to: @sawntsingh2010


The current version of NinevehGL doesn't deal with textures changes so well.
But the next version will do. It's coming this Dec
0% like this - 0/0

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.