Rick Posted March 23, 2013 Share Posted March 23, 2013 I'm putting lights into this scene and I see the difference in the perspective view, but when I calc lights it says it finished in like 22 ms, and when I run the game the lights don't see to be there. It's really dark. Is there a known bug or am I missing something? This seems pretty basic, and it was working. At one point I added 2 directional lights so not sure if that screwed it up. I make a new map and it just doesn't seem to matter. It's like the lights are broken or something. Quote Link to comment Share on other sites More sharing options...
Rick Posted March 23, 2013 Author Share Posted March 23, 2013 If I make a csg box it lights up, but not my model. Quote Link to comment Share on other sites More sharing options...
shadmar Posted March 23, 2013 Share Posted March 23, 2013 Editor lightmapping is only supported by csg. I think you need to use dynamic shaders on your own models. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Rick Posted March 23, 2013 Author Share Posted March 23, 2013 What do you mean by dynamic shaders, and what does that do? Or how do you do it? Quote Link to comment Share on other sites More sharing options...
shadmar Posted March 23, 2013 Share Posted March 23, 2013 The default shaders come in 2 flavours, static and dynamic (which you can set in the material) Static means lightmapped, but only csg geometry can use these for lightmap (light and shadow) Custom geometry imported should ue dynamic since the lightmapper only cast light/shadow on csg geometry. But you could ofcource use an external lightmapper and a second UV channel. 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
YouGroove Posted March 23, 2013 Share Posted March 23, 2013 @Rick : Do you use BPS or models ? Caus Lightmapping will only work in BSP geometry. You put 2 directionnal lights, in the normal way of doing levels, one directionnal is enought. What are your texture sizes ? big ? and it is standard sizes (256,512,1024 etc ....) ? If it was BSP perhaps you had some problem like this one ? http://www.leadwerks.com/werkspace/topic/6220-lightmap-fails/ I also had some fast lightmap compute time once with BSP, i just remade another project. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted March 23, 2013 Author Share Posted March 23, 2013 They are normal models. So dynamic materials on these will treat the lights dynamically (like LE2?) instead of using the lightmap? I swear I selected dynamic when I made the materials. I'll have to try again I guess. I'll keep you updated. Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 23, 2013 Share Posted March 23, 2013 Yes models are not lightmaped, and you must choose a shader from the "dynamic folder" for them. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted March 23, 2013 Share Posted March 23, 2013 The lights you place in the levels affects BSP AND models. They affect BSP for lightmap making, and they affect models caus when the game runs they become dynamic lights. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rick Posted March 24, 2013 Author Share Posted March 24, 2013 Just wanted to update this. I was able to get this to work thanks to shadmar. I had to go into the model editor and calculate normals. Once I did that all lighting worked perfectly! Thanks shadmar! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.