i don't know what I'm missing. My shaders all show up pitch black in Sapien. The tutorial doesn't mention anything about the lightmap_alphatest_map field, anyone know what I am supposed to put there? I assume that is the problem.
The lightmap_alphatest_map is basically just a mask, or a texture with an alpha channel that will be processed by the lightmapper to allow light to pass through the masked regions in the texture. For example, with large tree leaves textures in the canopy of a forest map, you set the alpha map texture to that field so when running lightmaps, you can see the shadows from the leaves instead of just polygons for shadows.
Also, if your shaders show up black, make sure you have a base map bitmap with no alpha channel. If it does need an alpha channel, and its a opaque shader, make sure what needs to be shown is white on the alpha channel of the texture. Make sure you set the bitmap compression type for a texture with an alpha to "compressed with interpolated alpha". There is a bug that causes the "compressed with explicit alpha" to compile as dxt1 with color key transperency which causes any non white areas of the alpha map to show up black on the color portion of the texture. Also, make sure you uncheck the unused flag in the bitmap tag as that might also cause bitmaps to not show up.
Last edited by jahrain; July 10th, 2007 at 07:30 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks