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.

Transforming Parts of a Mesh and Many Instances of the Same Mesh
Vote this thread:

Fri, Sep 13 2013


I have two questions to ask:

1. In my scene I need to have many models repeated many times. If I load [NGLMesh alloc] initWithFile:@"Model.obj" with the same file for every single model will it reload it every time and waste space, or will it load it once and just reference the same data for every instance?

2. I have a model of a cannon I made that contains 2 sub-meshes, the stand and the barrel. When I import my model I want to be able to pivot the barrel separately from the stand, but I don't want to store it in two separate OBJ files. How can I get the mesh part by name and modify it?

Also, if I had many instances of the same model loaded, would this affect all of them?

Any help is greatly appreciated
0% like this - 0/0

@dineybomfim

Posts: 571

NGLAdmin

Sat, Sep 14 2013


In response to: @JadeonIsAwesome

Hello buddy,

1 - NinevehGL will only use the original file once, after that it will create a binary copy called NinevehGL Binary File, it loads up to 960X faster than the original one. However allocating and loading the file again, in the code, means explicit that you really want to allocate a completely new memory for that, this what "alloc" code means. However, if you want to clone the meshes, using as shared memory as possible, use the "copyInstance" methods, this reason of NGLCopying protocol.

2 - Nope. Unfortunately the current version just have a single relation between one file - one mesh. But such feature is already in our pipeline.
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.