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.

Beginner Question: Multiple Mesh Files using NGLMaterialMulti Class.
Vote this thread:


@studentlair_com

Posts: 2

NGLNewbie

Wed, Aug 14 2013


I have a .obj 3d model with 15 .jpg mesh files, how do i use NGLMaterialMulti? Can you please give me a code snippet? Also, Is there anyway to reduce the no. of vertices & polygons in a model?
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Wed, Aug 14 2013


In response to: @studentlair_com

Hi,

Well, if you have the correct .mtl file within your .obj file, you don't need to worry about the textures... it's already there and NinevehGL will handle that information for you.

Creating NGLMaterialMulti by your own code is not advisable, because it doesn't work alone... Imagine that to apply multiple materials to a complex mesh you must know exactly where each sub-group of the mesh starts and ends. To do that you must use NGLSurfaceMulti already knowing exactly each index of the mesh elements. This information is not human readable, just a 3D file can do it for you.

Now the other part of your question.
It's called "Geometry Compression", there are just very few plugins to 3D modeling softwares that can do it for you. Because this is not an easy task and anyone should do it. It's more involved with artists and how they create their meshes. It's much better to know and use game modeling techniques than trying to optimize a complex mesh. Even the best and more expensive compression plugin will lead you to an ugly and deformed mesh.
0% like this - 0/0

@studentlair_com

Posts: 2

NGLNewbie

Thu, Aug 15 2013


In response to: @dineybomfim
Thank you for responding, i do have the correct mtl file, and it's a relief to know that i don't have to do all the hardwork. It's working as i intended, but it shows of the technical limitations of the ipad . I guess choosing a 3d model without too many vertices and polygons would be the logical solution.
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Thu, Aug 15 2013


In response to: @studentlair_com

Yes,

A lower poly model could be better.

However you can also do some boost the performance in the code, by turning off the lights you can achieve high performance even with high poly models.
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.