Advertisement

Per pixel light attenuation and bump mapping

Started by June 21, 2004 05:48 PM
36 comments, last by vincoof 20 years, 5 months ago
I believe that if your card doesn't support 3D textures, you can compute the attenuation from a 2D + 1D textures.. like in the ron frazier's article (r^2 = x^2 + y^2 + z^2).
I'm not totally sure, i implemented that a long time ago..
Quote: Original post by b3rs3rk
hmm... and so? how should i do to have a coloured light?


i mean, what's the other method to obtain coloured lights without creating many 3d textures :P
Advertisement
Quote: Original post by b3rs3rk
Quote: Original post by b3rs3rk
hmm... and so? how should i do to have a coloured light?


i mean, what's the other method to obtain coloured lights without creating many 3d textures :P

Using the end of the post I edited. I'm sorry I shouldn't edit post while you're replying, I know it's pretty confusing ^^'
@vincoof (or anyone else): i've found that on geforces my demo is very dark.instead, on my ati it works perfectly, everything is visible.

how can i do?
There should not be any reason that makes rendering look different in GeForce and Radeon, except if you're going over the GeForce's texture unit limit (which is lower than Radeon's).

How many texture units are you using ?
When you use GL_TEXTUREi_ARB, what is the highest 'i' in your code ?
GL_TEXTURE3_ARB is the max texture unit i use
Advertisement
Alright, there should be definately no problem then. Could you post screenshots ?

BTW, I assume you mean NVIDIA GeForce3 or GeForce4Ti (not GeForce4MX), and you mean ATi Radeon 8500 or higher, is that right ?
i've an ati 9000 and a gefo3 ti. i made 2 screenshots but if i see them both on the monitor connected to the ati card i see like if they were ugual.. the strange thing is that i've sent the demo to a pair of my friends (who got a geforce) and they told that everything is too dark o_O

anyway, there's a way to make the scene less dark?
You can add some ambient lighting.
Or you can simply set a lower light attenuation.
How are generated the lightmaps ? They are the first one to improve IMHO.
i don't use lightmaps anymore. adding some ambient light? using another texture unit?

This topic is closed to new replies.

Advertisement