PDA

View Full Version : 3D Texture Mapping in Vizard?


stefs
03-20-2008, 02:51 AM
Hello,
has anyone tried 3D texture mapping in Vizard? viz.texCoord() doesn´t complain when handing over three texture coordinates e.g. (1,1,1). Apparently, however, only the first two texture coordinates are fed into the rendering pipeline (I tried a fragment shader to render the third texture coordinate).
The documentation of viz.addTexture() speaks about 3D textures (type = viz.TEX_3D) but they are obviously not supported throughout the Vizard toolkit. Is consistent 3D TM support to appear in new upgrades of Vizard?
/stefs

farshizzo
03-20-2008, 10:07 PM
The next release of Vizard will support using 3D texture coordinates, along with generating 3D texture data at run-time. Vizard has a quarterly release schedule, so the next release is planned for the beginning of April.

A current workaround would be to specify the 3d texture coordinates using the vertex color, then create a vertex shader that copies the color data into the texture coordinate data of the vertex. Let me know if you need any help with this.

stefs
03-25-2008, 03:34 AM
That´s really excellent news!
Yes, the use of color as texture coords works as a temporary hack. I will await the next release of WorldViz and look forward to the possibility of creating 3D textures on the fly. Thanks again,
stefs.