Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Add a glowing texture over model

Author
Message
Davey B
21
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 22nd Aug 2010 17:37
Hi, I've tried searching for this but cant find anything similar. I'm basically trying to add another texture layered on top of the original model texture to make some windows on the model glow (i.e emissive). Tried light maps but this just seems to darken my model and make the light areas barely visible. Am I going about this the wrong way? Any help is appreciated.

Cheers.
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 22nd Aug 2010 22:21
Try the set blend mapping on command.
Davey B
21
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 22nd Aug 2010 22:51
cheers gandalf, I'm trying this option now. what setting mode would be needed for this? theres a lot listed and I have no idea what one would make a texture self illuminating...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 23rd Aug 2010 01:58
You could start by trying these:



The first will multiply two texture arguments together but this tends to darken the object because colour values are coded in the range 0 to 1 in this case, so the result can never be brighter than the original. The next two compensate for this by multiplying the result by 2 or 4 respectively. The fourth just adds the two textures together which generally gives a bright, over-saturated result.

You might some of the examples posted on this thread helpful:

set blend mapping on
Davey B
21
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 23rd Aug 2010 20:31
Fantastic! Thanks gandalf that solved it for me. I used tex level 0 as d2d_modulate and tex level 1 as d3d_add which acts as my lightmap!



Just gotta improve the texture and scale the windows down a bit but its looking much better than it did before.

Login to post a reply

Server time is: 2026-07-23 12:10:44
Your offset time is: 2026-07-23 12:10:44