This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > July 2004 > AvoidObstacles





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 AvoidObstacles
Andrew Neiderer

2004-07-28, 7:16 pm


I am trying to get Peter Gerstman's "AvoidObstacles" PROTO to work locally on
my Dell. So I downloaded the 6 files at

http://accad.osu.edu/~pgerstma/protolib/AvoidObstacles/

and File -> Open File -> AvoidObstaclesExample.wrl in Netscape 7.1
but get error

PROTO Avoidance is not found or does not match declaration
of EXTERNPROTO Avoidance
File: file:///AvoidObstaclesPROTO.wrl

If someone has time could you download the above files and tell me what
I need to do to make this work. Everything works fine doing

File -> Open Web Location ->
http://accad.osu.edu/~pgerstma/prot...=AvoidObstacles
and clicking on the image there.

I would like to understand the code.

Thank you.

Andrew M. Neiderer
neiderer@arl.army.mil
Joerg Scheurich aka MUFTI

2004-07-28, 7:16 pm

> and File -> Open File -> AvoidObstaclesExample.wrl in Netscape 7.1
> but get error


No problems under IRIX, but the web was not invented on M$Windows machines...

> PROTO Avoidance is not found or does not match declaration
> of EXTERNPROTO Avoidance
> File: file:///AvoidObstaclesPROTO.wrl


Your browser misunderstood the location of the EXTERNPROTO file

] "AvoidObstaclesPROTO.wrl"

Did you tried to use a URL with a full path to the file at this point ?

so long
MUFTI
--
Eine Unter-Speisekarte wird erscheinen, in der Sie waehlen koennen,
entweder zu spielen, oder das Video zu schlingen.
(aus einem Software-Handbuch, Stichworte: menu und loop)
R. Russell Kinter

2004-07-28, 7:16 pm

hi Andrew,
In the url field for the EXTERNPROTO Avoidance just remove any folder/
parent directory name and only have the name of the Proto file itself.
Below is fixed example see my annotation.

EXTERNPROTO Avoidance [
eventIn SFTime updateRequest
eventIn SFVec3f set_goal
eventIn SFString set_state
eventIn MFNode set_obstacles
field SFVec3f goal
field SFFloat goalPriority
field SFFloat speed
field SFString state
field MFNode obstacles
exposedField SFVec3f position
exposedField MFNode children
]
# url was "AvoidObstaclesExample_rc/AvoidObstaclesPROTO.wrl"
"AvoidObstaclesPROTO.wrl"

Russ Kinter

neiderer@morticia.arl.army.mil (Andrew Neiderer ) wrote in message news:<I1K63J.M3I@arl.army.mil>...
> I am trying to get Peter Gerstman's "AvoidObstacles" PROTO to work locally on
> my Dell. So I downloaded the 6 files at
>
> http://accad.osu.edu/~pgerstma/protolib/AvoidObstacles/
>
> and File -> Open File -> AvoidObstaclesExample.wrl in Netscape 7.1
> but get error
>
> PROTO Avoidance is not found or does not match declaration
> of EXTERNPROTO Avoidance
> File: file:///AvoidObstaclesPROTO.wrl
>
> If someone has time could you download the above files and tell me what
> I need to do to make this work. Everything works fine doing
>
> File -> Open Web Location ->
> http://accad.osu.edu/~pgerstma/prot...=AvoidObstacles
> and clicking on the image there.
>
> I would like to understand the code.
>
> Thank you.
>
> Andrew M. Neiderer
> neiderer@arl.army.mil

Sponsored Links


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