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 / Light mapped object affected by dynamic lights

Author
Message
Olby
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 18th Jul 2011 02:00
Which one of the 26 blend modes will allow my light mapped objects to be affected by dynamic lights in the scene? I believe it is possible just not sure which 'set blend mapping' mode does this.

Thanks!

ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP1, DBPro 7.5 + PureGDK 2.0b
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 18th Jul 2011 12:27
Try this:



You may need to switch the roles of the texture stages depending which stages have the lightmap and main texture in your object.

In my demo the first blending command "modulates" the lighting value with the lightmap and the result is then "modulated" with the main texture using the second blending command. Here "modulate" simply means multiply.
Olby
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 18th Jul 2011 20:56
Thank you Gandalf, this is just what I needed. By the way do you have any other examples of blend mapping command? It would be nice if you could post something because I recently decided to return to DarkBasic and would like to use FFP as much as I can before sailing off into developing an engine that uses only custom hlsl shader effects. Thanks!

ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP1, DBPro 7.5 + PureGDK 2.0b
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Jul 2011 01:06
Quote: "By the way do you have any other examples of blend mapping command?"


Yes I do. I'll try to dig out a few and edit this post.
Olby
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location:
Posted: 19th Jul 2011 01:07
Quote: "Yes I do. I'll try to dig out a few and edit this post. "


I would really appreciate that!

ACER Aspire 5920G: Core2Duo 2.2GHZ, 2GB, GeForce 8600M GT 1280MB, Windows Vista Ultimate SP1, DBPro 7.5 + PureGDK 2.0b
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 19th Jul 2011 01:17
Here's a link to two using Advanced Terrain:

blend mapped advanced terrain

Login to post a reply

Server time is: 2026-07-10 15:31:09
Your offset time is: 2026-07-10 15:31:09