这是一个简单的问题。如何在x3dom形状上放置渐变?我有这个:
<shape>
<appearance>
<material diffuseColor='green'></material>
</appearance>
<box height="1" />
</shape>
答案 0 :(得分:1)
不幸的是,在大多数原始形状上都不可能 我在x3d列表中找到了这个帖子 http://www.web3d.org/x3d/publiclists/x3dpublic_list_archives/0504/msg00104.html
这里是你如何在气缸上注意像素纹理,即肉和土豆:
<X3D>
<Scene>
<NavigationInfo headlight='FALSE' type='"EXAMINE" "ANY"' />
<DirectionalLight ambientIntensity='0.5' direction='1 -0.5 -1' />
<Viewpoint DEF='VP1' position='0 0 10' orientation='0 1 0 0' fieldOfView='0.785398' description = "Front" />
<Transform translation='0 0 0'>
<Shape>
<Appearance>
<Material/>
<PixelTexture image='1 2 3 0xFF0000 0x0000FF' repeatS='FALSE' repeatT='FALSE' />
</Appearance>
<Cylinder height='4' />
</Shape>
</Transform>
</Scene>
</X3D>