Menu

#1 request of how to use

open
nobody
None
5
2003-01-15
2003-01-15
No

i'm working in a project of VRML implemented with
java using support of your project CyberVRML97 for
Java
and i need to know how i can program my
appplication to invoke the browser of VRML
with the scene i have made
meaing when running the application it opens the
browser displaying the scene i have created

i tried using ex. provided in the documentation but
seems it doesn't work , so i did attached the code in
order to know what is wrong with it
--------------------------------------------------------------------------------
import cv97.node.*;
import javax.media.j3d.*;
import cv97.*;
import cv97.j3d.*;
import java.awt.*;

public class ViewerJ3D extends Frame {
private SceneGraph sg;
private SceneGraphJ3dObject sgObject;

public ViewerJ3D() {
super("VRML simple viwer");

sg=new SceneGraph
(SceneGraph.NORMAL_GENERATION);

setLayout(new BorderLayout());
Canvas3D c =new Canvas3D(null);
add("center",c);
sgObject=new SceneGraphJ3dObject(c,sg);
sg.setObject(sgObject);

pack();
setSize(400,400);
show();
}

public static void main(java.lang.String[] args) {
// Insert code to start the application here.
ViewerJ3D view=new ViewerJ3D();
}
}
--------------------------------------------------------------------------------
hoping to can resolve this issue
thanks

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.