This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > January 2006 > VRML java program





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author VRML java program
wito

2006-01-10, 7:54 pm

Hello
I need to write program which is showing: a VRML file(in fact X3D :( ) in
Java. I have to use JOGL as a renderer(but could be java3d). Does anybody
have an example of how to read VRML file - in fact i am searching the net
for a few days and i cant find nothing except Xj3D - but with no examples
included :(;

Ufff...
In fact I will be the happiest man in the world if i have a list of
verticles which the (vrml or x3d) consist of - because my program have to:
-change the visibility factor for a selected object:
-get to know what color is under mouse coursor(this is easy i think)


I know that I coud parse the vrml file or X3D(as it is XML file), but there
should be simpler way to do this;


finnaly
i found out that there is on the net file(picking object) with VRML;
http://www.java2s.com/Code/Java/3D/LoadingaVRMLfile.htm
but when i am clicking en exception is thrown... - do you have the same??

any idea? suggestion?


and if anybody have written program which manipulated data from VRML (X3D)
in java, please tell where you find info about what to do that; examples are
welcomed :)

--
wito


Rolf Gabler-Mieck

2006-01-12, 6:44 pm

wito wrote:
> Hello
> I need to write program which is showing: a VRML file(in fact X3D :( ) in
> Java. I have to use JOGL as a renderer(but could be java3d). Does anybody
> have an example of how to read VRML file - in fact i am searching the net
> for a few days and i cant find nothing except Xj3D - but with no examples
> included :(;
>


google for vrml97 loader otherwise try those loaders from j3d.org [all
for j3d].. I don't know if jogl support those loaders...
also it should be that there's an vrml loader also in the xj3d
package..linked also at j3d.org

also have a look for j3dFly2 developed by sun-members to show the
abilties of j3d the source code is included so...
take time and get it :-)
bets regards
rolf

> Ufff...
> In fact I will be the happiest man in the world if i have a list of
> verticles which the (vrml or x3d) consist of - because my program have to:
> -change the visibility factor for a selected object:
> -get to know what color is under mouse coursor(this is easy i think)
>
>
> I know that I coud parse the vrml file or X3D(as it is XML file), but there
> should be simpler way to do this;
>
>
> finnaly
> i found out that there is on the net file(picking object) with VRML;
> http://www.java2s.com/Code/Java/3D/LoadingaVRMLfile.htm
> but when i am clicking en exception is thrown... - do you have the same??
>
> any idea? suggestion?
>
>
> and if anybody have written program which manipulated data from VRML (X3D)
> in java, please tell where you find info about what to do that; examples are
> welcomed :)
>

wito

2006-01-12, 6:44 pm

> google for vrml97 loader otherwise try those loaders from j3d.org [all for
> j3d].. I don't know if jogl support those loaders...
> also it should be that there's an vrml loader also in the xj3d
> package..linked also at j3d.org


I tried.... In fact I found some examples of programs which were "wrml
loaders", i even use the one from https://j3d-vrml97.dev.java.net/index.html
, but I have examples of wrl files that it is not working!!

> also have a look for j3dFly2 developed by sun-members to show the abilties
> of j3d the source code is included so...
> take time and get it :-)


the same situation :(

;

some files are well readed while there is a group that they fails, i even
use Xj3D but in their browser also files are not workin;

;

i'm gonna try the old vrml loader implemented by sun in 1999 ... eh....


Rolf Gabler-Mieck

2006-01-13, 6:47 am

wito wrote:

>
>
> I tried.... In fact I found some examples of programs which were "wrml
> loaders", i even use the one from https://j3d-vrml97.dev.java.net/index.html
> , but I have examples of wrl files that it is not working!!



ah, yep a well known problem not really all nodes are supported...I just
use them to get the geometry and appeareance nodes, all oter stuff I'll
do in j3d

>
>
>
>
> the same situation :(


did you check all those loaders? from portfolio ? the old sun-loader
will work in a better way then the newer one...why-ever.. for my works
the old one is the best way....
>
> ;
>
> some files are well readed while there is a group that they fails, i even
> use Xj3D but in their browser also files are not workin;



may have a look at j3d.org for more informations, if you are able to
contact the webmaster, try this he has an excellent knowledge about j3d,
vrml,x3d and s far... but all the time in loads of trouble....
otherwise seperate those groups which don't work as desired and try to
get those not-working nodes into java3d-code...
bets regards
rolf

>
> ;
>
> i'm gonna try the old vrml loader implemented by sun in 1999 ... eh....
>
>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews