|
hi all,
let me first preface by saying that i am a total newbie to 3D and to sandy.
i'm trying to do a very simple task - create 2 3D-boxes with a tube connecting the 2 boxes.
looks sort of like this -> []---[]
i
was able to figure out the creation of the shapes and use
PositionInterpolator to move it to desired locations, but i can't find
anywhere how to specify the x,y,z coordinates when creating objects in
group. i know it should be really simple .. ugh.
any help is appreciated.
-tea
Hi tea and welcome
In
3D you can give a position to an object and that's all. You must add it
to a group, and move the group by applying a transformation to it (so
TransformGroup).
The transformation corresponding to a movement is the translation (or PositionINterpolator for an interpolator).
So if you want your object to be at 0,0,500 you must apply a translation of 0,0,500 to it.
It is better now?
thanks kiroukou ~
i was confused about the relationship between Transform3D and TransformGroup.
this diagram also helps explain. it looks pretty similar to your implementation.
http://java.sun.com/products/java-media/3D/forDevelopers/J3D_1_3_API/j3dguide/Introduction.html#47367
your api is very cool and the documentation really, really helps.
now i have to learn bezier interpolation (ugh!) .. i'll be back with more questions for sure.
Yes Sandy is inspired by Java3D.
THose diagrams are almost available for Sandy.
Did you try to read the beginners tutorial? What did you think about it?
yup,
i read all the tutorials and did them all a couple of times. the
explanation is concise and i like that you explain a lot through code
comments. i thought the object heirarchy could use a bit more
explanation, which that diagram helped.
the concept of translation vs interpolation is all new to me. i suspect that is basic 3D concept that is pretty standard.
i
also think that a short example of camera control filed under tutorial
would be nice. i found the code samples throughout the support forum
and figured it out. it's a lot easier than i thought to implement but
it took me a while to find.
Yes some tutorials are missing indeed.
But I don't have time to do the development AND the full support (forum+website).
As it is an open source project, and the website a Wiki, I expected some contributions concerning the tutorials.
But nothing nobody did it...
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)