ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: Problem by using ProximitySensor
Sender: mutafchiev@gmx.de 17.12.07 22:39
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

 


Problem by using ProximitySensor / mutafchiev@gmx.de / 16.12.07 21:43
     Re: Problem by using ProximitySensor / Uh / 16.12.07 23:22
         Re: Problem by using ProximitySensor / mutafchiev@gmx.de / 17.12.07 22:39
             Re: Problem by using ProximitySensor / Uh / 17.12.07 23:58
                 Re: Problem by using ProximitySensor / mutafchiev@gmx.de / 18.12.07 01:50
                     Re: Problem by using ProximitySensor / Uh / 18.12.07 19:43
                 Re: Problem by using ProximitySensor / mutafchiev@gmx.de / 18.12.07 01:22
         Re: Problem by using ProximitySensor / mutafchiev@gmx.de / 17.12.07 01:02
             Re: Problem by using ProximitySensor / Uh / 17.12.07 01:08
                 Re: Problem by using ProximitySensor / mutafchiev@gmx.de / 17.12.07 09:13

Messages in thread: 10


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.