Lightmapped .ase models created in Blender show black faces

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
DaEngineer
Posts: 210
Joined: Fri May 28, 2010 2:30 pm

Lightmapped .ase models created in Blender show black faces

Post by DaEngineer »

I created a low poly stack of wood in Blender 2.49b and exported the model with Goofos ASE export v0.6.10 for Blender 2.44. The model looks fine in 3D viewport or when rendered as well as in Radiant and in-game when compiled with -meta only. Once I compile light (the model has the forcemeta flag ticked) I get these nasty black faces:

Image

I've removed doubles and recalculated the normals outside. I don't use any smoothing groups. Any ideas?
[url=http://www.victorkarp.com]Portfolio[/url] - [url=https://victorkarp.com/tutorials/quake-3-mapping-tutorials/]My Quake 3 mapping tutorials[/url] - [url=http://www.lvlworld.com/author/DaEngineer]My Quake 3 maps[/url]
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by obsidian »

In general, it's a good idea to make use of smoothing groups. Lightmaps on a model such as this well probably look worse than if it were vertex lit. Lightmaps are axially projected so they'll look funny on non-planar shapes.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Kat
Posts: 952
Joined: Tue Nov 14, 2000 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by Kat »

Yah, agreed with what obsidian said, you need to use mesh smoothing (mark your edges) otherwise you'll end up with the problems your having. Also agreee about leaving this type of thing vertex lit... if you really wanted to you could do some vertex painting in Blender and export (although I can't remember if the scripts exports that data with the mesh)
[url=https://www.katsbits.com/tutorials#q3w]Tutorials, tools and resources[/url]
DaEngineer
Posts: 210
Joined: Fri May 28, 2010 2:30 pm

Re: Lightmapped .ase models created in Blender show black faces

Post by DaEngineer »

You're right, I use vertex lighting for this model now and it looks totally acceptable. But I still wonder why there were these black faces. I tried smoothing all faces with the bark texture assigned to it, added phong shading and q3map_nonplanar to the shader, but they still look odd. If all faces with an angle similar to the dark ones would be black I'd understand the "lightmaps are projected axially" point. But the lighmap of this model seems to be very specific which faces to light and which not :disgust:
[url=http://www.victorkarp.com]Portfolio[/url] - [url=https://victorkarp.com/tutorials/quake-3-mapping-tutorials/]My Quake 3 mapping tutorials[/url] - [url=http://www.lvlworld.com/author/DaEngineer]My Quake 3 maps[/url]
User avatar
Theftbot
Posts: 483
Joined: Thu Oct 08, 2009 4:03 am

Re: Lightmapped .ase models created in Blender show black faces

Post by Theftbot »

Do you have the blend file to offer?
DaEngineer
Posts: 210
Joined: Fri May 28, 2010 2:30 pm

Re: Lightmapped .ase models created in Blender show black faces

Post by DaEngineer »

Grab it here.
[url=http://www.victorkarp.com]Portfolio[/url] - [url=https://victorkarp.com/tutorials/quake-3-mapping-tutorials/]My Quake 3 mapping tutorials[/url] - [url=http://www.lvlworld.com/author/DaEngineer]My Quake 3 maps[/url]
o'dium
Posts: 11712
Joined: Sun Mar 25, 2001 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by o'dium »

This thread is less racist than I predicted :(
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by obsidian »

:mad:
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Kat
Posts: 952
Joined: Tue Nov 14, 2000 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by Kat »

When you're doing something like this try and avoid really long thin triangles, especially at awkward angles like you have on the sides you originally did. Instead block out your protrusions and then fill in the major gaps. Also I'd recommend either mirroring the sides or at least closing the mesh properly to balance it otherwise you'll be increasing the potential for issues generally. I'd also think about reducing the polycount a little bit, you've got a number of curves on there you could reduce without noticing too much.
[url=https://www.katsbits.com/tutorials#q3w]Tutorials, tools and resources[/url]
User avatar
Eraser
Posts: 19177
Joined: Fri Dec 01, 2000 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by Eraser »

The past few days I was just considering trying a hand at modeling myself, but it just sounds like a real pain in the ass :(
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Lightmapped .ase models created in Blender show black faces

Post by obsidian »

Not really. Modelling isn't "hard" it just needs a few tricks, particularly with older engines like id Tech 3.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Ouija
Posts: 55
Joined: Tue Aug 16, 2011 9:11 pm

Re: Lightmapped .ase models created in Blender show black faces

Post by Ouija »

Having experience with software like Radiant is enough to have you prepared for "serious" 3D. Took me a day to switch, really. (that's after months of doing complex models using brushwork though)
Post Reply