Hi there,
I have a problem that somebody could possible solve within a minute.
I create a street and draw a green line 2 pixel over the street.
I move the camera in 2-D position (over the street).
The problem is:
When I use a ProximitySensor node for some buttons the green line
dissapears, while zooming out.
(when the distance between the camera and the street grows up).
If I am not using the ProximitySensor node, I have not such problems.
If I don't use (when I comment) the ProximitySensor node there is no such a problem.
What could be wrong by using Position-Sensor node ?
Do you have an idea what the problem could be? I guess there is something wrong with
this ProximitySensor node.
I 'd appreciate any help...
Regards
Stoyan
Do you use ProximitySensor for HUD?
Probably it's Z-buffer problem.
Try reduce scene size and don't place the HUD so closely to camera.
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.
Regards
Stoyan