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.

Mesh is loaded without material for the first time, but success in the second time
Vote this thread:


@burakkilic

Posts: 36

NGLNewbie

Sun, Sep 8 2013


Hi;

I am loading mesh like this:

NSDictionary *settings = [NSDictionary dictionaryWithObjectsAndKeys:
// kNGLMeshOriginalYes, kNGLMeshKeyOriginal,
kNGLMeshCentralizeYes, kNGLMeshKeyCentralize,
@"0.3", kNGLMeshKeyNormalize,
nil];


_mesh = [[NGLMesh alloc] initWithFile:[[paths objectAtIndex:0] stringByAppendingPathComponent:@"mesh.obj"] settings:settings delegate:self];


Fot the first time I present this view controller, mesh look like that one:



I dismiss that viewcontroller, and once again, I present it again. And the view looks like:



Where is the problem?
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Mon, Sep 9 2013


In response to: @burakkilic

Hi,

Does not seems to be a material problem... If NinevehGL doesn't get the material correctly, it will show black, not white.

White materials indicates something about the light. Usually materials from 3DS Max have their diffuse color/map duplicated in their ambient color/map, which can cause brighten results.

Make some tests, turn off the light and also open the material file and take a look.
0% like this - 0/0

@burakkilic

Posts: 36

NGLNewbie

Mon, Sep 9 2013


In response to: @dineybomfim

I turned the lights off. First screenshot:



After second and third times that I open the view controller, it is:



I think it is not about lights.

Here is the .obj and .mtl file:

http://silverlines3.s3.amazonaws.com/meshes/2154_60.zip

I saw that, if the object is white, drawImage doesn't work. So if we can fix this, y other problem will be solved:)

0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Mon, Sep 9 2013


In response to: @burakkilic

As I said, the 3DS Max duplicates the diffuse color/map in the ambient color/map.
Just open the .mtl file in a text editor and manually exclude all the line like this:

Ka N.NNNN N.NNNN N.NNNN
100% like this - 1/1

@burakkilic

Posts: 36

NGLNewbie

Tue, Sep 10 2013


In response to: @dineybomfim

You are right. Promlem is solved. Thank you.
100% like this - 1/1
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.