children of PROTO 
Author Message
 children of PROTO

i want do something like this (is's only schema):

PROTO my_box [ position orientation url ]
{
  box or sphere or something else
  anchor ( url )
  touchSensor

Quote:
}

DEF box1 my_box ( x1 y1 z1 dx1 dy1 dz1 a1 url1 )
DEF box2 my_box ( x2 y2 z2 dx2 dy2 dz2 a2 url2 )
DEF box3 my_box ( x3 y3 z3 dx3 dy3 dz3 a3 url3 )

sometimes anchor must be active and sometimes touchSensor
therefore i must operate on children of PROTO.
for example imagine door please:

first click - knock knock
second click - open door (load html to frame)
third click - close door

and i have room with 12 doors and i must use PROTO

any idea how can i do it ? small example please.

--

WebMajster oficjalnej strony VooVoo - http://www.*-*-*.com/



Sun, 22 Jul 2001 03:00:00 GMT  
 children of PROTO

Use a Script node internal to the PROTO to keep track of the state of
the door and determine what the click does.  You would not directly
ROUTE the TouchSensor to a TimeSensor or AudioNode.  The Script would
make that choice for you depending upon what was done previously.


        Information Visualization Specialist & vrml Educator
        Daly Realism - Internet Solutions (http://www.realism.com)

Treasurer, LA VR User's Group:                        http://lavug.org/

Quote:

> i want do something like this (is's only schema):

> PROTO my_box [ position orientation url ]
> {
>   box or sphere or something else
>   anchor ( url )
>   touchSensor
> }

> DEF box1 my_box ( x1 y1 z1 dx1 dy1 dz1 a1 url1 )
> DEF box2 my_box ( x2 y2 z2 dx2 dy2 dz2 a2 url2 )
> DEF box3 my_box ( x3 y3 z3 dx3 dy3 dz3 a3 url3 )

> sometimes anchor must be active and sometimes touchSensor
> therefore i must operate on children of PROTO.
> for example imagine door please:

> first click - knock knock
> second click - open door (load html to frame)
> third click - close door

> and i have room with 12 doors and i must use PROTO

> any idea how can i do it ? small example please.

> --

> WebMajster oficjalnej strony VooVoo - http://www.voovoo.art.pl/

  vcard.vcf
< 1K Download


Mon, 23 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Q: Use of MFNode children in PROTO ?

2. Beam PROTO for steel structures (PROTO memory problems)

3. Adding Child Record to a Child file during Update

4. need help with getting children node name from children changed event

5. parent-child's child process interaction

6. Crystal Reports (proto-typing functions)

7. Rexx + Async Terminal + Proto

8. Net/Proto 0.1.0

9. A proto-RCR: making def and class rvalues

10. Coordinate System using PROTO

11. field and exposedField in PROTO's

12. Axis3d PROTO

 

 
Powered by phpBB® Forum Software