Transparent object not appearing front of texture
Hi! I am making a simulation tool and have a problem when I tried to display objects. Objects appear and disappear depends on the location of camera. Followings are screen captured images in different camera views. First view shows every objects but other views miss objects.
Attachment yaxisview.PNG not found
camera->set(cVector3d(0.00, 0.40, 0.00) "Side view"
Attachment yzaxisview.PNG not found
camera->set(cVector3d(0.00, 0.40, 0.40) "Top side view"
Attachment zaxisview.PNG not found
camera->set(cVector3d(0.00, 0.00, 0.40) "Top view"
Light direction is this.
light->setDir(0.0, 0.0, -1.0);
Can you tell me why this happens?
There are several points to consider:
1. Make sure to adjust the near and far clipping planes of your camera.
2. Are there any transparent objects in the scene? If yes, make sure to enable multipass transparency.
3. If culling is enabled, you will only see the front side of all triangles. Make sure to disable culling for the objects of concern.