由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - java3d question
相关主题
Re: 有人玩java3D么?Java sucks big time!
How about Swing?CookXml 简介
It's open source!Re: COOL JAVA IDEJava3D or JOGL?
Java能帮我做这个project吗?what's inside an java object?
how to improve java programming abilityHow to know the size of a java object ?
java3d ModelClip questionMaven shade plugin question
Java做界面能做成这样吗?Re: 初级问题
[转载] opengl/java3d programming question折腾了一天,实在是绝望了,请教请教
相关话题的讨论汇总
话题: cull话题: object话题: display话题: java3d话题: any
进入Java版参与讨论
1 (共1页)
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.

1 (共1页)
进入Java版参与讨论
相关主题
折腾了一天,实在是绝望了,请教请教how to improve java programming ability
这道题该走什么路java3d ModelClip question
Re: 谁有Java或Oracle的毒招 ?Java做界面能做成这样吗?
Java中如何动态生成对象[转载] opengl/java3d programming question
Re: 有人玩java3D么?Java sucks big time!
How about Swing?CookXml 简介
It's open source!Re: COOL JAVA IDEJava3D or JOGL?
Java能帮我做这个project吗?what's inside an java object?
相关话题的讨论汇总
话题: cull话题: object话题: display话题: java3d话题: any