avatar
java3d question# Java - 爪哇娇娃
c*t
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.
avatar
g*g
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.

avatar
c*t
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.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。