CHAI3DCHAI3D

normal Transparent object not appearing front of texture

More
29 Nov 2017 06:06 #1

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?

Attachments:

Please Log in or Create an account to join the conversation.

More
05 Dec 2017 00:49 #2

There are several points to consider:

1. Make sure to adjust the near and far clipping planes of your camera.

camera->setClippingPlanes(0.01, 10.0);

2. Are there any transparent objects in the scene? If yes, make sure to enable multipass transparency.
camera->setUseMultipassTransparency(true);

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.
myObject->setUseCulling(false);

Please Log in or Create an account to join the conversation.