WorldViz User Forum

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

stefs 04-23-2008 01:33 AM

3D Texture Mapping - gluBuild3DMipmaps not supported
 
Hi,
I am running into problems when trying the 3D texture mapping functionality in the latest Vizard release. I am drawing a cube using a specific fragment shader which is supposed to do volume ray-casting. The uvt-texture coordinates arrive correctly at the fragment shader. My problem occurs when generating the 3D texture. To that end, I built a Image Generator plugin, based on the 2D version provided with the SDK. Changing all image and texture OSG functions to their equivalent 3D versions works fine and everything compiles nicely.
When running the application, however, it prompts

”Error: gluBuild3DMipmaps not supported by OpenGL driver”

I am using a nVidia Quadro FX4600, with the most recent driver (april 2008) updated.
Has anyone tried successfully building/loading/using 3D textures?

stefs

farshizzo 04-23-2008 11:00 AM

There is a bug in the OSG library that doesn't allow generating mipmaps for 3D textures. There are 2 workarounds for this:

1) Don't use mipmapping by setting the min filter of your texture to LINEAR.

2) Email me at lashkari@worldviz.com and I will provide you with a patched version of osg.dll that should support 3D mipmapping.


All times are GMT -7. The time now is 11:06 AM.

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