Texture3D support added

Hi,

After some delay, I am coming back with some additions to Xith3D core.

I added preliminary support for Texture3D as a response to Issue #76 (thanks borgknight for Java3D example and images).
Note that this is very early version of this code (Mip-Mapped 3D textures were not tested at all).
Two examples (Xith3DTexture3DTest and Xith3DTexture3DCoordTest) added
to demonstrate loading and use of 3D textures.

Test launchers and neccessary data for Texture3D tests added to demo folder - check Xith3DTexture3DTest.bat and Xith3DTexture3DCoordTest.bat.
Note that these two demos are not JavaWebStart-friendly because of the way how they load textures, so you are welcome to modify them to be runnable with JWS.

Also if you have better idea on how to demonstrate possible uses of 3D textures, let me know.

Another important note is compatibility. Current implementation uses glTexImage3D as defined in OpenGL 1.2 spec, and does not check for presence of EXT_texture3D extension. This causes some cards to silently ignore 3D textures (at least one of by GeF 440 Go on Toshiba notebook with very old drivers does that).

I am looking for better idea how to handle this situation, so maybe I will add fallback to 2D textures or warning message, as it is done for vertex and fragment shaders.

Yuri

Thanks Yuri, look forward to trying it out!

1 - But I’ve looked in the Xith.org download section and a june 27 build doesn’t seem to be there ? Is that the right place ?

2 - Thanks for the precious tidbit about EXT_texture3D extension, I’ve been struggling with that for a long time, wondering why graphic cards reporting 3d texture support were ignoring them ! Is there an place/book where I can be up-to-date on all this kind of info GL issues and compatibility across drivers/graphic cards configs ?

BK

Hi,

[quote]1 - But I’ve looked in the Xith.org download section and a june 27 build doesn’t seem to be there ? Is that the right place ?
[/quote]
You should use CVS. Typically William Dennis maintains community builds, so I believe the community build will appear very soon.

[quote]Is there an place/book where I can be up-to-date on all this kind of info GL issues and compatibility across drivers/graphic cards configs ?
[/quote]
Would be really happy to have this as well… but as for now, testing, testing, testing and once more testing.

Yuri