Archived

This topic is now archived and is closed to further replies.

robirt

3D Textures

Recommended Posts

Where can I get information about these? Like the ones used in Doom3. Google didnt give me any useful results.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Probably because ''3d textures'' doesn''t mean that you think it does. Try googling on ''bumpmap''

Share this post


Link to post
Share on other sites
I want to know about the 3d textures that opengl can load. ''GL_TEXTURE_3D''
Isnt that what doom3 uses? Even if it isnt I would like to know where i can find out about them. I already know about bumpmaps.

Share this post


Link to post
Share on other sites
siaspete, why would you assume that they are above my level? When have you seen anything I''ve ever done to know what my ''level'' is? I know what bump maps are and how to use them. I was told that Doom3 used 3d textures(i guess that was a bad source), so I wanted to support them in my engine but I couldnt find any information about them. If no one uses them in games right now, I dont really need to know about them, I just thought they might become a standard soon if doom3 had them and i didnt want to be behind. thanks

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by robirt
siaspete, why would you assume that they are above my level? When have you seen anything I''ve ever done to know what my ''level'' is? I know what bump maps are and how to use them. I was told that Doom3 used 3d textures(i guess that was a bad source), so I wanted to support them in my engine but I couldnt find any information about them. If no one uses them in games right now, I dont really need to know about them, I just thought they might become a standard soon if doom3 had them and i didnt want to be behind. thanks


Dude you were right it does use 3d textures, and its a way of achieving some nice ass lighting, there are a few discussions about it on these forums, so you could try checkin the search button out.

siaspete, shut the hell up man before you hurt yourself.

Share this post


Link to post
Share on other sites
Would you have said that if you had registered here? Even if you disagree with someone you shouldn''t resort to that kind of thing.

Anyway, if someone can''t find information on their own about 3D textures then I think it''s a fair assumption that they''re not at the level of using them yet, and If you can find info on bumpmapping you can find info on 3D textures.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions

Share this post


Link to post
Share on other sites
quote:
Original post by siaspete
Would you have said that if you had registered here? Even if you disagree with someone you shouldn''t resort to that kind of thing.

Anyway, if someone can''t find information on their own about 3D textures then I think it''s a fair assumption that they''re not at the level of using them yet, and If you can find info on bumpmapping you can find info on 3D textures.


Helpful links:
How To Ask Questions The Smart Way | Google can help with your question | Search MSDN for help with standard C or Windows functions



You''re still to offensive

Share this post


Link to post
Share on other sites
how does such and such opengl thing work? Try the spec it tells you everything, thats the point. Google is great if you''re not sure exactly what you''re after, but knowing GL_TEXTURE_3D is part of the spec you should start there.

I think thats what siaspete was trying to say about ''levels'' - if you can find the correct and primary source of info on OpenGL, then you already have the info on 3D textures.

Aside from that, they''ve been supported since gl1.1 I think, and so are probably described in your redbook.

And as an aside (just to make myself look stupid, most likely) I can''t see why you woukld use 3D textures for lighting / shading. Surely alpha blended geometry / fogcoords would give similar effects at much less storage and processing cost? Can anyone explain?

Share this post


Link to post
Share on other sites
3d textures are very often used for volume rendering (texture based volume rendering). the advantage is that you can save then lots of memory compared to the use of 2d textures and there are easier to use because some overhead drops out which is used for 2d textures. but this is the only usecase i now.

someone nows more usecases for 3d textures?

Share this post


Link to post
Share on other sites
quote:
Original post by siaspete
Anyway, if someone can''t find information on their own about 3D textures then I think it''s a fair assumption that they''re not at the level of using them yet, and If you can find info on bumpmapping you can find info on 3D textures.



In other words, "If you need to ask, you don''t need to know." God knows how many times I''ve heard that before. It''s a kind of accidental elitism that''s just all-too-prevalent among game-dev types (and even more so among "hackers"). I think you''re right about Doom3 not using 3d textures for lighting, but that''s no reason to disrespect robirt. Researching plausible disinformation does not make someone stupid.

With that said, robirt, developer.nvidia.com is a good resource, and should help you answer your questions. I do remember seeing a paper there about using 3d textures for lighting. However, I would take the advice of other people here: There are better ways to do lighting. Dot3 bumpmapping, for example, is excellent for doing per-pixel lighting, even on surfaces that aren''t bumpy. The NVidia developer site should help you with that too.

Share this post


Link to post
Share on other sites
and uses 3dtextures to look up some values specifically to the lighting as well.

little hint: if you know how to use 2dtextures, you know how 3dtextures work. its the same, just with 3 coordinates, and a 3darray of texels in, even the syntax is 99% the same.

so, how to use them is not the problem (if it is, you should learn till that, i agree with the others that its beyond your level then, but then i can just say _TRY_TO_GET_THERE_ just with this problem. try to solve all the problems then you get on your way just to solve that.. you learn that much with this way..)

so, what usage you can get from it.. well, if you know what a texture is, simply an Kd-lookuptable for a function, you can now think about usages.. you could for example pass in the point_to_light vector as 3dtexturecoordinates, and get back, stored in rgb, the normalized vector, and in a, the distanceattentuation. there are others.. its just if you have to calculate a function f(x,y,z) you can use a 3dtexture to lookup that values..

"take a look around" - limp bizkit
www.google.com

Share this post


Link to post
Share on other sites