PDA

View Full Version : May/June Build Custom Lighting Material Problem


mheyman
06-26-2010, 02:52 PM
So I've been using the November build of UDK for a while and everything has been working fine.

I recently tried updating to the May build and suddenly all of my static mesh with materials that used custom lighting were baking and coming out completely black.

There are no errors in the material editor, and when I move a light the materials look fine. The black mesh only happens when I bake lighting.

I'm not having any other trouble with any other mesh. This also happens in the June build of UDK. Any ideas?

Froyok
06-26-2010, 03:46 PM
What do you mean by "bake the lighting", did you speak about the lightmap on a static mesh ? I saw a lot of problem about lighting and shadow on the udk forum since the may beta.
I also had problems with terrains, I solved it all by changing the definition of the lightmap (by increase it).

Exemple :

(Lighting uncompiled)
http://uppix.net/1/5/5/679a899a2372b19395593e8708606t.jpg (http://uppix.net/1/5/5/679a899a2372b19395593e8708606.html)

(Lighting compiled)
http://uppix.net/d/2/4/961669d6368997230a48495d57269t.jpg (http://uppix.net/d/2/4/961669d6368997230a48495d57269.html)


So, I believe you lighting problem can come from the lightmap. Or maybe a drivers problem (the may beta was a lot of problems with nvidia cards).

mheyman
06-26-2010, 05:40 PM
By bake lighting I mean build lighting. As far as I know this is not a problem with lightmaps, as my other meshes (that work under normal phong lighting models in UDK) look fine. However meshes that are using custom lighting appear completely black.

Snight
06-26-2010, 07:17 PM
Can you post a screenshot?

mheyman
06-26-2010, 07:28 PM
http://i811.photobucket.com/albums/zz39/mheyman/blackandnon.gif
This is the exact same file being loaded in the old and new build. And I did try to rebuild the lighting, this did not help.

divi
06-27-2010, 02:26 AM
its a more or less common issue with the new build but i obviously forgot how to solve it. :-/
did you try reassembling the scene in a new level?

Snight
06-27-2010, 02:15 PM
skayne- if you bake your map without lightmass does it have the same issue?

Snight
06-27-2010, 02:33 PM
ah nvm about lightmass. Just saw your post about custom lighting not working. Try plugging a constant value into the customlighting diffuse slot in your material.

mheyman
06-27-2010, 04:40 PM
Ahha! Plugging in my shader network into the CustomLightingDiffuse node did work! Awesome suggestion, thanks for the help guys. Now I can move up to the new build of UDK!

Snight
06-27-2010, 04:49 PM
There ya go, glad that worked for you. Sweet scene btw. :)