Hi!
I would like to ask how does the VRML Loader work because I am stucked as to why my
model
is moving it's coordinates everytime i press a button that modifies the transformgroup
of the attached viewplatform.
How does one load VRML content to a Scenegraph? Is is sufficient enough to use the
VrmlLoader,Scene, and the Scene.getSceneGroup methods?
Sorry for this question!It seems very elementary but I really dont know the answers
since there are no tutorials for the loader and even a programming reference,
public class admi_loader extends TransformGroup
{
VrmlLoader loader;
BranchGroup sceneGroup;
TransformGroup examineGroup;
admi_loader()
{
sceneGroup=new BranchGroup();
loader = new VrmlLoader();
Scene scene = null;
try {
// load the scene
scene = loader.load("admi.WRL");
} catch (Exception e) {
System.out.println("Exception loading file from path:" + e);
}
if (scene != null)
{
// get the scene group
sceneGroup = scene.getSceneGroup();
sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
}
this.addChild(sceneGroup);
My program works by calling the VRML classloader for that model which is extended as a
Transformgroup and is then added to a branchroup that is attached to the locale object.
I also have multiple transformgroups attached to the branchgroup that are used by the
view object depending on what view the user is (attachviewplatform).
What is the 3DB file format?I hope someone has the answers to my question because I am
already thinking of exporting my models from 3D Studio max to 3db because there is
existing code that converts the 3db model into shape3d objects.
Thanks! Sorry for the long letter!Sorry for the inconvenience!
Jonathan
__________________________________
www.edsamail.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".