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 18.12.07 01:22
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.

Thanks a lot. I did it (translation -0.9 -1.2 -30) and
now it works much better. I was thinking that it is recommended to put any dashboard geometry between half the collision radius and the collision radius. And because my collision radius is 5 I used -3 instead -30. Now I have some other problem: at the beginning my dashboard is big enought, but when I switch another view point it reduce its size and stays so small. What could be the reason for that? And one more question: your sugestion to reduce scene size is pretty intersting but I don't know what should I reduce exactly, because in my scene there is a lot of nodes?

Thanks a lot!

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.