This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > April 2004 > vrml.jar?





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.jar?
Dale

2004-03-31, 1:40 pm

Is there still (or was there ever) such a thing as a jar file named
vrml.jar? I've run across some sample Java code with import vrml;, import
vrml.field.*;, and import vrml.node.*;, but I can't find the appropriate
vrml library.

I'm looking for this because I want to be able to pass values such as
hitPoint_changed to a function or a method, and write the values to a file,
along with some other user input. Has anyone done something like this?


Muaddib

2004-04-01, 6:14 pm

Dale,

Dale wrote:
> Is there still (or was there ever) such a thing as a jar file named
> vrml.jar? I've run across some sample Java code with import vrml;, import
> vrml.field.*;, and import vrml.node.*;, but I can't find the appropriate
> vrml library.

If you are planning on using the SAI ( the vrml... classes ) then
you are most likely planning on using Cortona, or CosmoPlayer. Here is
where the jar ( actually stored as .zip ) files are located on my
computer and the commands to list their contents:

D:\OldBrowsers\Netscape\Communicator\Program\Plugins>jar -tf npcosmop211.jar

C:\Program Files\Common Files\ParallelGraphics\Cortona>jar -tf classes.zip

You will see that they contains the classes you speak of. Realize that
there is another alternative, which is the EAI. Instead of java in the
node, you write a companion applet that runs on the same page that
speaks to the vrml plugin. It will run also with Contact.

>
> I'm looking for this because I want to be able to pass values such as
> hitPoint_changed to a function or a method, and write the values to a file,
> along with some other user input. Has anyone done something like this?
>
>


http://web3d.vapourtech.com/ has a great intro to VRML in general. They
also have a good lesson that acts as an intro to the SAI. I don't know
what the security rules are for SAI java, but know that you will have to
sign the applet to be able to write a file using EAI java. If you get
past this security issue, then the tutorial will show you how to receive
the events, after that, its just standard Java.

Rob




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

R. Russell Kinter

2004-04-01, 6:14 pm

Muaddib <rob_nospam@vrspace.org> wrote in message news:<406B453F.4050609@vrspace.org>...
> Dale,
>
> Dale wrote:
> If you are planning on using the SAI ( the vrml... classes ) then
> you are most likely planning on using Cortona, or CosmoPlayer. Here is
> where the jar ( actually stored as .zip ) files are located on my
> computer and the commands to list their contents:
>
> D:\OldBrowsers\Netscape\Communicator\Program\Plugins>jar -tf npcosmop211.jar
>
> C:\Program Files\Common Files\ParallelGraphics\Cortona>jar -tf classes.zip
>
> You will see that they contains the classes you speak of. Realize that
> there is another alternative, which is the EAI. Instead of java in the
> node, you write a companion applet that runs on the same page that
> speaks to the vrml plugin. It will run also with Contact.
>
>
> http://web3d.vapourtech.com/ has a great intro to VRML in general. They
> also have a good lesson that acts as an intro to the SAI. I don't know
> what the security rules are for SAI java, but know that you will have to
> sign the applet to be able to write a file using EAI java. If you get
> past this security issue, then the tutorial will show you how to receive
> the events, after that, its just standard Java.
>
> Rob

hi Rob,
Am a little confused about a having to "sign the applet to be able to
write a file using EAI java." The only VRML browser I know that
absolutely demands
a signed applet to work in EAI is WorldView 2.1. Cortona with Netscape
will throw up those grant thread permission windows, but you just
click accept and it will work. Then again, I tend to live in the past
and haven't tested
with extensively WindowsXP, but online friends with XP have used my
unsigned DM beta applet. Or is it possible I am not seeing an
altogether different aspect
of this?

thanx
Russ
Muaddib

2004-04-01, 6:14 pm


> hi Rob,
> Am a little confused about a having to "sign the applet to be able to
> write a file using EAI java." The only VRML browser I know that
> absolutely demands
> a signed applet to work in EAI is WorldView 2.1. Cortona with Netscape
> will throw up those grant thread permission windows, but you just
> click accept and it will work. Then again, I tend to live in the past
> and haven't tested
> with extensively WindowsXP, but online friends with XP have used my
> unsigned DM beta applet. Or is it possible I am not seeing an
> altogether different aspect
> of this?

There are no security issues implicit to the java language
concerning the applet talking to the plugin. The problem is with the
Applet writing a file to the local file system. Applets have a rich
security structure that will disallow unsigned Applets from negatively
affecting a user. If you sign the applet, these security permissions
are granted. The funny thing is that the vrml plugin itself doesn't
have any permissions that I am aware of.
Here is one that tickles me bones. The applet using the EAI is
only allowed to get files from the IP address it was loaded from (unless
it is signed). The vrml plugin can load files from anywhere. Signing
really isn't much of a big deal, so its just something to be aware of.
I have never used the SAI, so I am unsure how the Java there behaves,
but I would expect all of the above to hold, but maybe not ???

Muaddib




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

Joerg Scheurich aka MUFTI

2004-04-01, 6:14 pm

> Signing
> really isn't much of a big deal, so its just something to be aware of.


The real problems begin, when you can not accept a signed applet, cause
the web browser freeze when it gave control to the VRML browser window
(seen at a older version of netscape with cosmoplayer when using java
in a Script node).

In this case you need additional applet for signing without the presence
of a VRML browser.

so long
MUFTI
--
Gedruckte Schaltkarten Diagnose kann nicht fortfahren, weil eine
oder mehr Gedruckte Schaltkarten im System anwesend sind.
(Card Executive 2.0 for NT Diagnostics)
Sponsored Links


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