This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > VRML > February 2005 > HUD ok but...
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]
|
|
|
| Hi,
I have a scene whit ,cone sfere and box.
When I examine my scene, all object
rotation along an axis that pass for a
center of the sphere.
But, when I insert an HUD, and I examine the scene
all object rotation along a different axis.
I want the first rotation, whit HUD.
How can to do this?
thanks
| |
|
| This is my code:
Whitout HUD:
*********************************************************************
#VRML V2.0 utf8
NavigationInfo {
headlight FALSE
type ["EXAMINE", "ANY"]
}
Transform {
children [
DirectionalLight {
ambientIntensity 0.8
}
Transform {
translation 3 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
}
}
geometry Cone {}
}
]
}
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
}
geometry Sphere {}
}
Transform {
translation -3 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 0 0
}
}
geometry Box {}
}
]
}
]
}
*****************************************************************
Whit HUD
*****************************************************************
#VRML V2.0 utf8
NavigationInfo {
headlight FALSE
type ["EXAMINE", "ANY"]
}
DEF SENSOR ProximitySensor {
size 10 10 10
center 0 0 10
}
Transform {
children [
DirectionalLight {
ambientIntensity 0.8
}
Transform {
translation 3 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0 0 1
}
}
geometry Cone {}
}
]
}
Shape {
appearance Appearance {
material Material {
diffuseColor 0 1 0
}
}
geometry Sphere {}
}
Transform {
translation -3 0 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 0 0
}
}
geometry Box {}
}
]
}
]
}
#HUD objects
DEF HUDVIEW Viewpoint {
description "HUD View"
position 0 0 10
}
DEF HUD Transform {
translation 0 0 10
children [
Collision {
collide FALSE
children [
DirectionalLight {
ambientIntensity 0.8
}
Transform {
translation 0 -0.075 -0.2
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 1 0 1
}
}
geometry Box {
size 0.03 0.03 0.000000001
}
}
]
}
]
}
]
}
ROUTE SENSOR.orientation_changed TO HUD.set_rotation
ROUTE SENSOR.position_changed TO HUD.set_translation
ROUTE SENSOR.position_changed TO SENSOR.set_center
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|