Forums > Jitter

# groups obj 3d

March 8, 2006 | 8:56 am

hi

I would like to know how many groups there are in a .OBJ 3d when loaded
by the jit.gl.model object? Of course i know the amount of groups in the
object i made but i cant find a way to have an output to f.e. a number
box in jitter. Is there a way to predefine the number of groups and
attach this to the specific .OBJ and recall this on loading the object?

any suggestions

jurgen


March 8, 2006 | 6:08 pm

yeah this is a pending feature request by yours truly as well..

v a d e //

http://www.vade.info
abstrakt.vade.info

I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I LIVE! I
LIVE! I LIVE! I LIVE! I LIVE!

You will not be saved by the Holy Ghost. You will not be saved by the
God Plutonium.

In fact, YOU WILL NOT BE SAVED!


March 8, 2006 | 8:01 pm

We can consider exposing a gettable groupcount attribute in a future
version, but one way to accomplish this currently would be to read in
the lines of your OBJ file in a JS via the File object (I think Nesa
has an example of this somewhere in the archives), and count the
number of lines beginning with the "g", group statement.

-Joshua


Viewing 3 posts - 1 through 3 (of 3 total)