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.

DLL Talk / Dark Lights and shader

Author
Message
SirLeon
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location: Greece
Posted: 9th Jan 2007 21:02
Hello,

I would like to know if anyone actually achieved to apply shaders to objects that were lightmapped with DarkLights without loosing the lightmap textures.

I know that there is a command (LM ADD SHADED LIGHT MAP OBJECT ) specifically to solve this problem but I can't get it to work. Because as it says in the documentation of Dark Lights the shader needs to be adjusted to handle lightmaps.

Quote: "As such you can specify which stage you want the lightmap to be placed and the other stages will not be touched. If the light map stage does not exist and attempt will be made to create it. The blend modes are not changed in the light map stage since it is assumed that a shader will take control of drawing the object, and it will not display correctly without a shader applied that takes the lightmap into account. If the object does not have a shader use LM Add Light Map Object instead. "


So, as there is no example included with Dark Lights showing an actually working shader applied to a lightmapped object, if anyone can supply some ideas or examples I would be grateful as I'm not experienced in programming shaders (although I can read/modify shader code).

Best regards,
SirLeon
17
Years of Service
User Offline
Joined: 6th Jan 2007
Location: Greece
Posted: 12th Jan 2007 10:58
OK, problem solved without using the "buggy" command (LM ADD SHADED LIGHT MAP OBJECT)

For anyone interested I attach an example (it requires ofcourse the Dark Lights pluging).

Best regards,

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-03-19 02:13:10
Your offset time is: 2024-03-19 02:13:10