This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?act=Print&client=printer&f=17&t=99 as retrieved on 31 Jul 2007 20:23:28 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:BrTLZaXgbCUJ:www.flashsandy.org/forum/index.php%3Fact%3DPrint%26client%3Dprinter%26f%3D17%26t%3D99+act%3DPrint+%22index+php%22+-lofiversion+site:www.flashsandy.org&hl=en&ct=clnk&cd=73


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: act print index php

Printable Version of Topic

Click here to view this topic in its original format

Sandy's Forum _ AS2 1.x versions _ creating multiple object3D?

Posted by: tea Aug 8 2006, 06:50 PM

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.

unsure.gif
any help is appreciated.


-tea

Posted by: kiroukou Aug 8 2006, 07:53 PM

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?

Posted by: tea Aug 9 2006, 02:47 AM

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.

Posted by: kiroukou Aug 9 2006, 05:40 AM

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?

Posted by: tea Aug 9 2006, 02:43 PM

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.

Posted by: kiroukou Aug 9 2006, 03:03 PM

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)