[X3D-Public] TextureCoordinateGenerator

JOHN COADY johncoady at shaw.ca
Sat Feb 12 12:15:40 PST 2011


Are there any test cases for TextureCoordinateGenerator node. What is the difference between the field mode='SPHERE' and mode='SPHERE-LOCAL'. I tried running this on a few X3D players and they all behave differently. (Xj3D, Flux, BS Contact) . The file

http://dl.dropbox.com/u/5095342/spheretex.x3d

contains a sphere shape using IndexedFaceSet with the field
 
<TextureCoordinateGenerator DEF="my_texGen" mode='SPHERE' />

I think if you rotate the sphere, the does texture does not rotate.

The File

http://dl.dropbox.com/u/5095342/spheretex.x3d

contains a sphere shape using IndexedFaceSet with the field
 
<TextureCoordinateGenerator DEF="my_texGen" mode='SPHERE-LOCAL' />

and if you rotate the sphere in this case, I think the texture is supposed to rotate with it.

However, the look and behaviour of these examples is different on the above 3 X3D players. I haven't tried it on other browsers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20110212/24fc38b3/attachment.html>


More information about the X3D-Public mailing list