This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > April 2004 > Java functions





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 Java functions
hal

2004-04-02, 5:47 pm

Does anyone know if there are Script Node functions readily available in
Java that are currently available in JavaScript?

For instance, functions that manipulate SFVec3f vectors such as
subtract(), add(), cross(), divide(), dot(), multiply(),etc.

Thanks,
Alex

Remove h for email.
========================================
2001: A Space Odyssey in Virtual Reality
http://home.earthlink.net/~alprojects/2001/index.html

Tribute to the World Trade Center in 3D
http://home.earthlink.net/~alprojects/wtc/index.html

hal

2004-04-06, 4:38 am

Do these functions for VRML Script nodes have to be created (build them
myself) when using Java or are they accessible in some way from the vrml jar
files?

SFRotation, SFVec3f, etc, functions are available for Javascript
(ECMAScript), but not for Java?

Anyone know? Help...

Alex

Remove h for email.
========================================
2001: A Space Odyssey in Virtual Reality
http://home.earthlink.net/~alprojects/2001/index.html

Tribute to the World Trade Center in 3D
http://home.earthlink.net/~alprojects/wtc/index.html


Muaddib

2004-04-08, 10:31 pm



hal wrote:
> Do these functions for VRML Script nodes have to be created (build them
> myself) when using Java or are they accessible in some way from the vrml jar
> files?
>
> SFRotation, SFVec3f, etc, functions are available for Javascript
> (ECMAScript), but not for Java?


I believe the answer to your question is no, you will have to
write them yourself. Check out the sai/eai javadocs at
http://www.xj3d.org/javadoc/. If you feel lost as to how to implement,
do a search on linear algebra, or feel free to write me, remove the
_nospam.

Muaddib

>
> Anyone know? Help...
>
> Alex
>
> Remove h for email.
> ========================================
> 2001: A Space Odyssey in Virtual Reality
> http://home.earthlink.net/~alprojects/2001/index.html
>
> Tribute to the World Trade Center in 3D
> http://home.earthlink.net/~alprojects/wtc/index.html
>
>



--
-------------------------------------------------------
VRSpace - An open source, modular, cross-platform,
multi-user vrml system with persistent shared objects.
Check out the Nexus at http://www.vrspace.org/
-------------------------------------------------------

Sponsored Links


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