Author Topic: Java applet that loads vrml  (Read 5146 times)

cuzone

  • Guest
Java applet that loads vrml
« on: October 12, 2004, 08:31:06 am »
Hi!

Is it possible (is it hard) to make jPCT to load VRML files?
It would be absolutly great with a Java applet that could show VRML files, and even better X3D files.

Keep up the good work!!

Kind regards, Erik Dahlstrand - Sweden

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Java applet that loads vrml
« Reply #1 on: October 12, 2004, 05:55:34 pm »
I think it depends on what exactly you mean by "load VRML". You may either load just the objects from the file or you may also be interested in animations, events or whatever VRML allows. In the former case, you have to parse the VRML somehow, create the objects from it, load the textures and you are basically done (still a lot of work...). In the second case, you need to write somekind of VRML-layer on top of jPCT...which will be a lot more work IMHO.
However...is it possible: yes. Can jPCT do it "out of the box": no.  Does jPCT includes everything that is needed to write such thing: yes.

Hope this helps.

cuzone

  • Guest
Java applet that loads vrml
« Reply #2 on: October 12, 2004, 07:18:29 pm »
I see! Thanks!

Offline Trob

  • byte
  • *
  • Posts: 4
    • View Profile
Java applet that loads vrml
« Reply #3 on: February 14, 2005, 10:38:16 am »
You could use cybergarage.org's CyberX3D VRML loader which has 100% support to VRML 2.0.

When u have loaded the VRML u can get the shapes, materials and textures by looping through the nodes. Its not hard work to do that, cyberx3d have loaded everything in a nice structure in memory. Full fucntions is included to load the shapes, lights materials, textures and more.

My english isnt very good but i hope u got me  :lol:

Offline Trob

  • byte
  • *
  • Posts: 4
    • View Profile
Java applet that loads vrml
« Reply #4 on: February 14, 2005, 10:39:09 am »
Dont use their CyberVRML97, it is deprecated. All functions u need is included in CyberX3D.