HUD problems - hud_test2.wrl (0/1) 
Author Message
 HUD problems - hud_test2.wrl (0/1)

Hi!

I have problem with HUD. I cann't see it all the time. The very same
script works fine with other geometry???? Try to rotate and zoom
in/out and You will see when it dissappears.

help appreciated

thanks

gerwasius



Fri, 08 Aug 2003 20:54:32 GMT  
 HUD problems - hud_test2.wrl (0/1)
paste the source code into a msg so we can check it
db


Sat, 09 Aug 2003 04:54:24 GMT  
 HUD problems - hud_test2.wrl (0/1)
On Tue, 20 Feb 2001 07:54:24 +1100, "Blaikie"

Quote:

>paste the source code into a msg so we can check it
>db

Here is code, sorry ...

#VRML V2.0 utf8

DEF Start Viewpoint {
  position 67.66 65.7 157.3
  orientation 0.6692 -0.7314 -0.1311 -0.5234
  fieldOfView 0.6024
  description "Start"

Quote:
}

DEF Direct01 DirectionalLight {
  intensity 1
  color 0.7059 0.7059 0.7059
  direction 0.493 -0.6275 -0.6026
  on TRUE

Quote:
}

DEF Direct02 DirectionalLight {
  intensity 1
  color 0.7059 0.7059 0.7059
  direction -0.9114 -0.3548 0.2083
  on TRUE

Quote:
}

NavigationInfo { headlight FALSE }
DEF Box01 Transform {
  translation -20.99 0 -47.88
  children [
      Transform {
        translation 0 9.945 0
        children [
          Shape {
            appearance Appearance {
              material Material {
                diffuseColor 0.5137 0.7725 0.7176
              }
            }
            geometry Box { size 21.36 19.89 19.89 }
          }
    ] }
  ]
Quote:
}

DEF Box02 Transform {
  translation 6.998 0 -8.103
  children [
      Transform {
        translation 0 -2.578 0
        children [
          Shape {
            appearance Appearance {
              material Material {
                diffuseColor 0.2 0.5529 0.1765
                ambientIntensity 0.1033
                specularColor 0.045 0.045 0.045
                shininess 0.2875
                transparency 0
              }
            }
            geometry Box { size 142.2 5.157 155.4 }
          }
    ] }
  ]
Quote:
}

DEF Cone01 Transform {
  translation 36.83 0 -18.05
  children [
      Transform {
        translation 0 18.42 0
        children [
          Shape {
            appearance Appearance {
              material Material {
                diffuseColor 1 0.7569 0.6627
                ambientIntensity 0.6033
                        specularColor 0.945 0.145 0.1
                        shininess 0.9875
                        transparency 0.7
              }
            }
            geometry Cone { bottomRadius 11.99 height 36.83 }
          }
    ] }
  ]
Quote:
}

DEF Sphere01 Transform {
  translation -21.71 18.82 34.6
  rotation -1 0 0 -1.571
  children [
    Shape {
      appearance Appearance {
        material Material {
          diffuseColor 0.5373 0.1961 0.1961
          ambientIntensity 0.6033
          specularColor 0.045 0.45 0.945
          shininess 0.9875
          transparency 0
        }
      }
      geometry Sphere { radius 10.97 }
    }
  ]
Quote:
}

Background {
        groundAngle     [ 0.9, 1.5, 1.57 ]
        groundColor     [ 0.100582 0.4 0.0750036,
                          0.100582 0.4 0.0750036,
                          0.0290245 0.26 0.0271435,
                          0.05 0.25 0.05 ]
        skyAngle        [ 0.1, 1.2, 1.57 ]
        skyColor        [ 0.266409 0.526476 0.75,
                          0.24 0.541775 0.8,
                          0.22 0.6 0.85,
                          0.18 0.7 0.9 ]
Quote:
}

DEF NavInfo01 NavigationInfo {
  avatarSize [0.25, 1.6, 0.75]
  headlight FALSE
  speed 20
  type "ANY"
  visibilityLimit 0

Quote:
}

Collision {
collide FALSE children [
# Proximity sensor for notifying viewpoint changes
DEF HudProximity ProximitySensor {
size 10000 10000 10000
Quote:
}

DEF HudGeometry Transform {
children [
Transform {
translation -.07 .02 -.3 children [
Transform {
children [
# Only one child
Shape {
appearance Appearance {
material Material {
emissiveColor 1 1 1
Quote:
}
}

geometry DEF CameraPosition Text {
string "Test"
fontStyle FontStyle {
style "BOLD"
size .005
Quote:
}
}
}
]
}
]
}
]
}
]
}

# Place the proximity center at the current viewpoint
ROUTE HudProximity.position_changed TO HudProximity.set_center #
Adjust the orientation of the Hud geometry
ROUTE HudProximity.orientation_changed TO HudGeometry.set_rotation #
Adjust the position of the Hud geometry
ROUTE HudProximity.position_changed TO HudGeometry.set_translation
DEF CameraScript Script {
eventIn SFVec3f set_translation eventIn SFRotation set_rotation
eventOut MFString translation_changed eventOut MFString
rotation_changed field SFString Temp ""
url "javascript:
function trunc(value) {
return Math.round(value*100)/100;
Quote:
}

function set_translation(value)
{
Temp = 'Position:      ' + trunc((value.x + 2456.45)) + '  ' +
trunc((-1*value.z+2049.3)) + '  ' + trunc(value.y);
translation_changed[0] = Temp;
Quote:
}

function set_rotation(value)
{
Temp = 'Orientation: ' + trunc(value.x) + '  ' + trunc(value.y) + '
';
Temp = Temp + trunc(value.z) + '  ' + trunc(value.angle);
rotation_changed[0] = Temp;
Quote:
}
"
}

ROUTE HudProximity.orientation_changed TO CameraScript.set_rotation
ROUTE HudProximity.position_changed TO CameraScript.set_translation
ROUTE CameraScript.translation_changed TO CameraPosition.string


Sat, 09 Aug 2003 20:29:21 GMT  
 HUD problems - hud_test2.wrl (0/1)
tested it in CosmoPlayer and Cortona, seemed to run fine..
what plugin did u run it under?
db


Sun, 10 Aug 2003 09:52:34 GMT  
 HUD problems - hud_test2.wrl (0/1)
On Wed, 21 Feb 2001 12:52:34 +1100, "Blaikie"

Quote:

>tested it in CosmoPlayer and Cortona, seemed to run fine..
>what plugin did u run it under?
>db

CP 2.1 on win ME, W2K, TNT2 and G-force2
it works but not all the time.  Try to roatate in all directions and
Zoom in/out. There is "black Hole" somewhere and I cann't figure out
WHY.

thanks



Sun, 10 Aug 2003 14:36:54 GMT  
 HUD problems - hud_test2.wrl (0/1)
well if you could give me a more acurate description of where it goes bad..?
i'll give it another go though...
db


Sun, 10 Aug 2003 16:54:22 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Problem with .wrl file - mack12.wrl (1/1)

2. Problem with .wrl file - mack12.wrl (0/1)

3. Which Win95 Tool compress *.wrl to *.wrl.gz ?

4. Problems with HUD + Examine mode

5. Interactive HUD problem

6. EAI - timing problem between applet and wrl

7. new problems with old .wrl

8. IE4 and Cosmos Player .wrl problem

9. ALL READ-- .WRL PROBLEM SOLVED

10. Problem embedding a .wrl

11. A problem with the extension WRL

12. Mac OS9 Sound in wrl Problem

 

 
Powered by phpBB® Forum Software