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.

Problems with rendering color when loading the obj
Vote this thread:


@vidhur

Posts: 7

NGLNewbie

Wed, Oct 3 2012


Hello,



Thank you for the wonderful library. I have been trying it and I experienced few issues with rendering the color when I load the obj.



I am trying to load a 3d model of a heart , but initially when I loaded it appeared black, so I added a material using [NGLMaterial material] and I was able to see nice material to the model. The entire model has the same material though. I was hoping to have custom color values for different parts of the model which are there in the obj file since that's how it gets shown in applications like Meshlab (or) Paraview.



The obj file is here: <REMOVED>



Am I missing anything?



Also , I wanted to show certain float values when I touch the model at different parts. I know that the library doesn't support touch yet , I was wondering if you can suggest how should I implement it on my own until the library supports.



Thanks,

Vidhur



0% like this - 0/0

@vidhur

Posts: 7

NGLNewbie

Wed, Oct 3 2012


In response to: @vidhur



I am sorry , the previous url doesn't work.



You can find the obj file here: <REMOVED>
0% like this - 0/0

@vidhur

Posts: 7

NGLNewbie

Wed, Oct 3 2012


In response to: @vidhur

I am sorry I had to remove the obj file since I was said i cannot share. I apologize, but I hope I was able to explain the problem. Thanks!
0% like this - 0/0

@vidhur

Posts: 7

NGLNewbie

Wed, Oct 3 2012


@vidhur said:


Hello,

Thank you for the wonderful library. I have been trying it and I experienced few issues with rendering the color when I load the obj.

I am trying to load a 3d model of a heart, but initially when I loaded it appeared black, so I added a material using[NGLMaterial material] and I was able to see nice material to the model. The entire model has the same material though. I was hoping to have custom color values for different parts of the model which are there in the obj file since that's how it gets shown in applications like Meshlab(or) Paraview.

Am I missing anything?

Also, I wanted to show certain float values when I touch the model at different parts. I know that the library doesn't support touch yet, I was wondering if you can suggest how should I implement it on my own until the library supports.

Thanks,
Vidhur



0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Thu, Oct 4 2012


In response to: @vidhur

Hello buddy,

Unfortunately there is no way to do that. If the mesh already are separated in surfaces, so OK, NinevehGL will import those surfaces and you can define different materials to each one.

However, directly in the code, you'll going crazy if you try to manually find the right indices inside the mesh structure.
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.