View Full Version : 3D Textures and Multitexturing...
07-25-2002, 02:46 PM
Has anyone of you gotten 3d textures and multitexturing to work? In 2d it's fine, in 3d it doesn't work. :-(
Anyone any idea? Thanks so much!
07-27-2002, 02:06 AM
In 2d it's fine, in 3d it doesn't work
You mean ARB_multitexture works with 2d textures but not 3d right ?
First of....this is more a generic ogl question - not linux one.
Second. What gfx board.
I heard that ATI boards use two texturing units for a 3d texture, and nvidia boards ( that support it ) use only one ( as it should be ).
And in what way are you using 3d textures ? Core ogl1.2 or EXT_texture_3d extension ?
If you're using the core ogl1.2 functionality check if your gfx board has HW 3d textures ... if not then thiss will be done in software and then there could be problems.
07-27-2002, 08:40 AM
Thanks for your answer. My system is Suse8 with a GeForce4TI 4600 and with the newest driver frim nvidia. And yes it works with the multitexture extensions in 2d but not in 3D. I can load both textures, but after enabling the second texture unit, the screen is black... :-(
I use opengl 1.3 with the 3d texture extension and the board supprts HW 3d textures. It's pretty fast with one...
07-27-2002, 08:31 PM
How big are the textures you are loading?
07-27-2002, 08:56 PM
The two textures I want to use with multitexturing have always the same size, but I use different data sets like 64^3 or 256x256x128...
I load them all using glTexImage3D and there are all GL_RGBA...
07-28-2002, 02:27 AM
Hmm.....does 3d texture works coectly without multitexturing ? Maybe it's loaded incorectly ?
Does gl gives any error messages ?
07-28-2002, 08:32 AM
Nope. No error messages and it works perfectly with one 3d texture....
07-29-2002, 02:27 AM
There are no problems with using multiple 3D textures on NVIDIA hardware (GeForce3+). Perhaps you could send a code snip so that we can have a look at your code...
07-29-2002, 05:43 PM
Sorry, was pretty busy today...
I've setup a small webpage with the code on it. It might not have all fit in here...
Here it is: http://www.cs.sfu.ca/~niklas/personal/tex3d.html
If you have any idea what I am doing wrong...that would be great. Thanks for your time!
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.