Page 1 of 1

Advanced Lightning Shader in a MapScape map with Lightmap?

PostPosted: Sat Nov 22, 2014 4:36 pm
by Madthod
Hi,

i want to import a map i created in MapScape into DBPro, while I am also using the Advanced Lightning Shader in my Program.

The problem is, that I can't add Lightmap (created in MapScape) to the Map after i used Object_add() on it, and after i used one of the Shaders from ADVLightning (diffuse.x/NormalMap.fx/EnvironmentMap.fx... ==>Effect_add()).

Unfortunately the "LightMap.fx" Shader (used to implement the LightMap from MapScape into DBPRO) doesn't seem to be compatible with AdvancedLightning.

Honestly I don't know very much about shader programming and i'm using the ADVLightning without understanding how it really works.


I hope you understood my problem and that there's a solution for it.

Thanks for the help.

Re: Advanced Lightning Shader in a MapScape map with Lightma

PostPosted: Sun Jan 04, 2015 6:17 pm
by christianclavet
From what I know shaders are used as materials. If you change the material from Lightmap to Environment map, it won't support lightmaps.

You would need to find a way to combine the material or to combine the shaders to it support both types of maps.