Forums   Articles   Events
SEARCH:
LOGIN:
Register Register Register Contact Us
Go Back   Game Artist Forums > Game Art > Support and Tech Discussion
Register FAQForum Rules Members List Calendar Mark Forums Read
Reply
 
LinkBack Thread Tools Display Modes
Old 11-01-2011, 04:32 PM   #1 (permalink)
New Member
Dinky's Avatar
Dinky's User Activity: 0/10
23 - 15
UDK Mesh turns black after bake..

So I've got this static mesh and all seems fine with the geo and materials while setting up a scene in the editor. But the moment I bake my lights with the settings on High or Production, my object goes black.

The weird thing is that it's only making it 100% shadow. Because in-game, if I shoot it, the light emitting from the gun particles take away some of the black and I can see the material IS applied to the mesh, it's just very dark.

Basically, it looks like baking my lights for some reason causes that material to be in complete shadow. And I have 2 UV sets with 2 Materials applied to this mesh and only one of the materials seems to have this problem.

I've exhausted most of my ideas of how to fix this.. Can anyone help?

Before:


After:
Dinky is offline   Reply With Quote
The Following 5 Users Say Thank You to Dinky For This Useful Post:
Old 12-01-2011, 06:36 PM   #2 (permalink)
New Member
surfojaro's User Activity: 0/10
10 - 16
show us a screenshot of ur material node, and another one of ur meshes properties, how do u export ur meshes? FBX? ASE? maybe could u upload ur 3d file and ur texture, and i can test in my udk...
surfojaro is offline   Reply With Quote
The Following 6 Users Say Thank You to surfojaro For This Useful Post:
Old 12-01-2011, 07:04 PM   #3 (permalink)
Senior Member
mmcleo11's Avatar
mmcleo11's User Activity: 6/10
237 - 149
Could be an issue with the unwrap on the 2nd "light map" UV?

Another option perhaps could be to up the resolution of this map in engine. Think its default is only something like 32 pixels?
__________________
Mark McLeod | Environment Artist
Sketchbook:-http://www.game-artist.net/forums/sk...hbook-wip.html
Portfolio:-www.markmcleod.net
mmcleo11 is offline   Reply With Quote
The Following 8 Users Say Thank You to mmcleo11 For This Useful Post:
Old 12-01-2011, 07:24 PM   #4 (permalink)
New Member
surfojaro's User Activity: 0/10
10 - 16
yep, thats why ask for the screenshots, to see the id for the uvlightmap and the resolution, and for c if he has some uvcoordinate in the material node... try to put 256 resolution in the lightmap...
surfojaro is offline   Reply With Quote
The Following 8 Users Say Thank You to surfojaro For This Useful Post:
Old 25-04-2012, 08:17 AM   #5 (permalink)
New Member
OkaToka's User Activity: 0/10
3 - 16
Hello, guys!

This thread is pretty old, but I have the exact same problem. Maybe somebody found a solution for that...

After baking part of the model turns black:



No error massages. UV set for the lightmap is okay.

Material:



Mesh properties:





And another strange problem with other mesh... After baking it looks like that:



It's looks like problems with lighmaps UVs, but it's not.. UVs is okay.

Meshes imported from Maya as FBX.


I'll be really grateful for any help with that problems
OkaToka is offline   Reply With Quote
The Following 7 Users Say Thank You to OkaToka For This Useful Post:
Old 26-04-2012, 07:27 PM   #6 (permalink)
Senior Member
Benjammin's User Activity: 10/10
166 - 212
If its turning black AFTER baking your lights, the problem is most likely the lightmap resolution. Use the lightmap density display mode and check the size of the grid it shows. The default lightmap size is very small, and you can easily get to a point where a small part of a larger model is represented by a handful of pixels in the lightmap. Bump it up to something really high like 512 and see what happens when you bake.
That final image with the countertop thing - thats almost definitely a UV problem. Make sure both UV channels are visible inside UDK and that the mesh is using the correct one for lightmaps.
Edit: Check normals are pointing in the right direction, too.
__________________
Environment Art portfolio
LinkedIn
Benjammin is offline   Reply With Quote
The Following 10 Users Say Thank You to Benjammin For This Useful Post:
Old 27-04-2012, 06:49 AM   #7 (permalink)
New Member
OkaToka's User Activity: 0/10
3 - 16
Benjammin, thanks for the reply.

I dealt with second problem. I was a really because lightmap resolution. Just forget to enter it after importing mesh.

But the first problem is still actual. Lightmap resolution is 512, UV and normals is fine. Just for ensure what UVs is fine I relayout it again and it's not help
OkaToka is offline   Reply With Quote
The Following 9 Users Say Thank You to OkaToka For This Useful Post:
Old 27-04-2012, 06:20 PM   #8 (permalink)
Senior Member
Benjammin's User Activity: 10/10
166 - 212
Ok, well the best approach to any kind of 'wtf is going on' error is to break it down into its components and look at them separately:
Give the mesh a completely different material, bake lights again (can also try baking at different qualities).
Disconnect all maps from your shader and connect them back in one at a time (without any additional multiply/power nodes).
Make sure you have the right compression on all maps.
Move your lights around.

This is by no means a complete troubleshooting list, just all I can think of at the moment. Good luck, I know from experience how frustrating issues like this can be
__________________
Environment Art portfolio
LinkedIn
Benjammin is offline   Reply With Quote
The Following 7 Users Say Thank You to Benjammin For This Useful Post:
Old 29-04-2012, 10:22 AM   #9 (permalink)
Forum Leader
wolfsage's Avatar
wolfsage's User Activity: 10/10
680 - 1,194
I've had that problem exporting from Maya. Double check the normals are facing the right way in Maya before export. Then select the 'export smooth groups' option in the FBX settings. May help.
wolfsage is offline   Reply With Quote
The Following 8 Users Say Thank You to wolfsage For This Useful Post:
Reply

Bookmarks
Digg del.icio.us StumbleUpon Google
Thread Tools
Display Modes




All times are GMT -5. The time now is 03:15 PM.


Powered by vBulletin® Version 3.7.0 Beta 4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0
Copyright © 2006-2013 Game-Artist.Net