I’m confused as to the difference in Java3d between View, ViewPlatform and ViewingPlatform. What’s the difference and how do they get used together?
Thanks
I’m confused as to the difference in Java3d between View, ViewPlatform and ViewingPlatform. What’s the difference and how do they get used together?
Thanks
Roughly, trying to remember…
View is a thing like a camera. ViewPlatform is kind of a camera mount located somewhere in the scenegraph, ViewingPlatform is a utility class tying those things together. Roughly…
Thanks, managed to find a little more info on it, I seem you’re right, roughly, lol. Gonna have a play round…
If you do manage to acquire a complete understanding, please do explain for the rest of the world. Especially how the various transform groups involved work.
I get so baffled by all the calls to ViewingPlatform.GetViewPlatform.GetViewingPlatformTransform().GetViewPlatformTransform().GetViewTransform().GetMagicalExtraTransform().GetSomeKindOfSpecialInexplicableTransform() or whatever it is.
I always add the ViewPlatform to a TransformGroup. Which in tern a View object is attached to the ViewPlatform. I modify that first TransformGroup to move the camera around. That seems to be the only thing you can do.
There is a method in ViewPlatform that returns a TransformGroup; however, it says it gets the bottom-most TransformGroup associated with this ViewPlatform. If you keep a refernce to the TransformGroup that u added the ViewPlatform to, then it should be the same as what is returned in that method (
getViewPlatformTransform()
).
I think thats all there is too it … feel free to add if I am missing something.