ParallelGraphics Forums
General
You are here:
[Forums]
::
[General]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
General
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Using Spotlight
Sender:
grungefreak1@gmail.com
5.10.08 03:47
Hi,
I have the following code:
*****************************************
#VRML V2.0 utf8
Group
{
children
[
DEF ps ProximitySensor { size 7 7 7}# this is the size of the virtual box surrounding the sphere in this case it is non-existant due to 0 0 0 values.
DEF sl SpotLight { on FALSE location 0 0 4}
Shape
{
appearance Appearance
{
material Material {}
}
geometry Sphere {}
}
]# end of group children
}#end of group
Group
{
children
[
Transform
{
translation 3 0 0 # the position of the sphere along the x axiz
children
[
DEF ps1 ProximitySensor { size 7 7 7}# this is the size of the virtual box surrounding the sphere in this case it is non-existant due to 0 0 0 values.
Shape
{
appearance Appearance
{
material Material {emissiveColor 1 0 0 }
}
geometry Sphere {}
}
]
}
]# end of group children
}#end of group
ROUTE ps.isActive TO sl.set_on
*****************************************
I want to be able to add a ROUTE instruction so that when you walk through the red sphere, the first spotlight sl becomes active?
Can anybody help out please?
GF
[reply]
[back to forum]
[new message]
[all forums]
Using Spotlight
/
grungefreak1@gmail.com
/ 5.10.08 03:47
Messages in thread:
1
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2009
ParallelGraphics
. All rights reserved.
Terms of use
.