I have a plane which is textured, and has transparency set to 1 (to make the texture transparent).
here is the creation code:
dbMakeObjectPlane ( GizmoX1, 5, 1 );
dbYRotateObject ( GizmoX1, 90 );
dbTextureObject ( GizmoX1, IMG_GIZMO );
dbSetObjectTransparency ( GizmoX1, 1 );
dbSetObjectLight ( GizmoX1, 0 );
But when i use dbPickObjet to check if the mouse is over it, the return value is always zero!
Here is the pick-code:
int pick = dbPickObject ( MouseX, MouseY, GizmoX1, GizmoX1 );
if ( pick != 0 )
{
dbTextureObject ( pick, IMG_GIZMO2 );
}
When i replace the plane with a cube or a box it works!
Does dbPickObject work with planes?
Am i missing something?
They say it's better to burn out, than it is to fade away...