This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > May 2005 > x3d not calling java cass





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 x3d not calling java cass
nunomartins01

2005-05-29, 7:26 pm

Hello

Sorry for my newbie questions but...

Can anyone tell me how does the x3d call the java class using the
exemples in the link SAI tutorial:

http://www.xj3d.org/tutorials/general_sai.html

I run tne x3d file, but nothing happens because in the x3d code there
is no call for the java class...


thanks
Nuno

Joerg Scheurich aka MUFTI

2005-05-30, 7:25 pm

> Can anyone tell me how does the x3d call the java class using the
> exemples in the link SAI tutorial:


> http://www.xj3d.org/tutorials/general_sai.html


> I run tne x3d file, but nothing happens because in the x3d code there
> is no call for the java class...


AFAIK you can use either the SAI from "inside", then you use a script

http://www.xj3d.org/tutorials/general_sai.html

| DEF S Script {
| inputOnly SFTime pulse
| outputOnly SFVec3f location
| outputOnly SFRotation orientation
|
| url [ "MoveObjectScript.class" ]
| }

Or you use the SAI from "outside". I think, in general, this depends from your
html/X3D browsers.

For example

http://www.xj3d.org/tutorials/examp...SGWalkDemo.java

has a "main" method, so it can be started as a application.

so long
MUFTI
--
Auf Setup-XXX. kl., um haeufig verw. nView-Funkt. problemlos
festzul.
aus nView Desktop Manager
Sponsored Links


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