Pablo Carneiro Elias wrote:
> Hi all, I'm trying to use a 3D texture but I'm getting gl errors printed 
> by OpenSG rendering system. After debugging the problem I've found out 
> that somehow OpenSG is using my 3D texture as a cube texture, even if I 
> set the target for GL_TEXTURE_3D. Is there any example on how to use 3D 
> texture with OpenSG 2.0?

I just used an Image with a depth in addition to with and height. That 
worked straightaway.

Note that OpenGL and thus OpenSG still draws 2d-polygons by default, 
even if they're textured from a 3d-texture. If you want volume 
rendering, you should look at that. I don't know if the volume rendering 
system has been ported to 2.0.

(I wrote my own shader to render a semi-transparent volume from the 3d 
texture, but it's potentially a bit tricky.)

Cheers,
/Marcus


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to