This is my code and I don't see any problem, but the object wich I create dynamically disapearce by zooming out and the scene is black although my background color is blue. When I change the view point I can see the background:
DEF GROUP_BUTTONS Group { children [
Collision {
collide FALSE
children [
DEF APS ProximitySensor { size 1e25 1e25 1e25 }
DEF BUTTONS Transform {
children DEF COMPTRANS Transform {
translation -0.9 -1.2 -3
scale .2 .2 .2
children [
DEF WINDROSE Transform {
translation 0 0 0
rotation 0 0 1 0
children [
Shape {
geometry USE NORD_ARROW
}
]
}
Shape {
appearance USE SIGNBACKAPP geometry USE
SIGNBACK
}
]
}
}
]}
]
}
ROUTE APS.position TO BUTTONS.translation
ROUTE APS.orientation TO BUTTONS.rotation
My collision radius is 5, so it is not Z-buffer problem.
Do you have any idea what the problem could be. I tried already so many things but it still does not work properly.
It's Z-buffer problem nevertheless.
Increase button to Viepoint distance:
DEF COMPTRANS Transform {
translation -0.9 -1.2 -30
or reduce scene size.