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.

Hide/Show some parts of a mesh
Vote this thread:


Posts: 13


Mon, Aug 6 2012

Hey guys!

I have a little problem understanding the way a group of meshes is handled by the engine. I have a big obj or dae containing several building modeles. I'd like to show or hide some buildings in these dae or obj, but I can't find the methods to do that? Is there a way to do that? Because it would be easier than making several obj or dae.
0% like this - 0/0


Posts: 571


Mon, Aug 6 2012

In response to: @Climbatize84

Hello man,

Easy, here is the deal:

  • Each 3D files become a single NGLMesh.
  • Each material group inside the 3D files become a NGLSurface, which has a correlated NGLMaterial.

So, if in your file, each building has a material, you can fetch its material by name, using http://nineveh.gl/docs/Classes/NGLMaterialMulti.html#//api/name/materialWithName:

Using the material you can change the alpha or other things.
0% like this - 0/0


Posts: 13


Mon, Aug 6 2012

In response to: @dineybomfim

Nice! it could be the perfect solution, except that I can't manage Alpha with Augmented Reality

Let's hope Qualcomm enhance their librairy
0% like this - 0/0

Sun, Dec 16 2012

In response to: @dineybomfim

Hi, I'm new to ninevehGL and still learning and want to clarify things for me.

In my case I wanted to select a node of my mesh and then change for example the color of this subpart of my hole mesh (similar to what Climbatize84 wanted)
a while ago you wrote about groups in the mesh file at db-ib.com "The best solution is:
Export each object from the same group to an individual file. Like the floor to a file, the wall to another one, the houses to another file, and so on…"
So is this still the best thing do to? or is there a possibility to select a group or there subgroups?

What you suggested here is to give any subgroup a different material (at least a different material-name) and use this for selecting the parts of a mesh?
0% like this - 0/0


Posts: 571


Mon, Dec 17 2012

In response to: @derpruem


Yes. But NinevehGL parses each file as a single mesh. The way it separates the mesh is by its material. Each material becomes a NGLSurface instance, which can be manipulated as you wish.

For instance, your original mesh has 4 materials named as: "Material-1", "Material-2", "Material-3", "Material-4".

After importing it, you can retrieve each individual material by its names and change the colors as you wish.
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.