[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [www-vrml] combining textures and materials



Following code produces a blue surface on a 8bit-greyscale-jpg image

...code snippet...
...
Shape { 
 appearance Appearance { 
   material Material { diffuseColor 0 0 1.0 }
   texture ImageTexture { url ["image.jpg"] } 
   textureTransform TextureTransform {  } }
 geometry IndexedFaceSet { 
  ccw TRUE solid FALSE coord Coordinate { point [
  1 1 0, 1 -1 0, -1 -1 0,  -1 1 0
  ] } coordIndex [ 0, 1, 3, -1, 1, 2, 3, -1 ] 
 texCoord TextureCoordinate { point [ 1 1, 1 0, 0 0, 0 1 ] }
...
...end of code snippet...

Inspire and Best Regards!

Kay Melzer

www.3d-node.com


-------------------------------------------------------------------------
for list subscription/unsubscription,
go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html