Hi,
I have an Arrow made in 3ds, I really need to indicate how much power is the user placing in to the flight of the Arrow.
I want to do this by giving the Arrow a glow and the more it glows, the more power the user is putting in the flight of the Arrow.
So yeah, anyone know how to made a 3ds Model glow in OpenGl?..or like point me in the right direction...i been goolge-in for a week now
I'm coding in C++.
Comments
:
: I have an Arrow made in 3ds, I really need to indicate how much
: power is the user placing in to the flight of the Arrow.
:
: I want to do this by giving the Arrow a glow and the more it glows,
: the more power the user is putting in the flight of the Arrow.
:
: So yeah, anyone know how to made a 3ds Model glow in OpenGl?..or
: like point me in the right direction...i been goolge-in for a week
: now
:
: I'm coding in C++.
:
It's harder than it sounds. If you simply saturate the colour of your object you will get a bit of a "self-lit" effect, but it won't really glow.
To make it really glow you have to specify it as a light source. However to do things properly will be too expensive, unless your scene is very simple. So the best way is to light every vertex within a certain distance of your arrow, fading out by distance squared. It's not correct and it might be hard to make work with the rest of your scene, but it is relatively fast and effective.