Transforms don't apply when loading several OBJ files together.

View: New views
2 Messages — Rating Filter:   Alert me  

Transforms don't apply when loading several OBJ files together.

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all:
How can I get the transform to apply?
I mean:
I have this structure:
BranchGroup
  ->TransformGroup
    ->BranchGroup(from an OBJ file)
  ->TransformGroup
    ->BranchGroup(from an OBJ file)
(...)
these TransformGroup are needed so these related OBJ files make a single object. Many objects can share OBJ files, and in each object, the single OBJ files are in different relative position (hence the TransformGroup) An object can even have the same OBJ file loaded in different positions.

The problem is: If I attach that structure to a Universe, transforms don't seem to apply. (OBJ file are in their original position) If I save the top BranchGroup to an OBJ file, and then load it, it works. This was my first approach, but now I'm working with rather big textures, and I need to load textures once, and the save/load scenario, does not allow me to cache textures, since filenames will be different, and the memory usage boosts as I load objects.

Any ideas?
Any idea on how to improve performance will be wellcome too.
Thanx in advance
[Message sent by forum member 'alied' (aliedperezmartinez@...)]

http://forums.java.net/jive/thread.jspa?messageID=370230

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: Transforms don't apply when loading several OBJ files together.

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Solved this way:
After having the BranchGroup and Transforms, just iterate and transform the geometry by getting the Transform to parent. That's exactly what the OBJWriter did
[Message sent by forum member 'alied' ]

http://forums.java.net/jive/thread.jspa?messageID=372032

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...