c*****t 发帖数: 1879 | 1 I load a set of triangle points, normals, etc and display it.
For some reason, it seemed to me that the default CULL_BACK will not
display the object correctly and I have to use CULL_NONE or CULL_FRONT
in order to display the object. The problem is that I wasn't able
to see any shade on the object. The entire object is one color...
Any suggestions?
Thanks. | g*****g 发帖数: 34805 | 2 culling has nothing to do with shading.
it's to not display the half of the object away to you and speed rendering.
For shading, you need to turn on lighting.
Make sure you add light in the scene first.
【在 c*****t 的大作中提到】 : I load a set of triangle points, normals, etc and display it. : For some reason, it seemed to me that the default CULL_BACK will not : display the object correctly and I have to use CULL_NONE or CULL_FRONT : in order to display the object. The problem is that I wasn't able : to see any shade on the object. The entire object is one color... : Any suggestions? : Thanks.
| c*****t 发帖数: 1879 | 3 I added a red colored directional light to the root branchgroup and I
still don't see any effects. That's why I was worried if the normals
were bad.
【在 g*****g 的大作中提到】 : culling has nothing to do with shading. : it's to not display the half of the object away to you and speed rendering. : For shading, you need to turn on lighting. : Make sure you add light in the scene first.
|
|