WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   3D Texture Mapping in Vizard? (https://forum.worldviz.com/showthread.php?t=1415)

stefs 03-20-2008 02:51 AM

3D Texture Mapping in Vizard?
 
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

3D Texture Mapping in Vizard?
 
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.


All times are GMT -7. The time now is 04:51 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC