Lighting Problem --- SOLVED

Discuss HaloCE modding with the HEK tools here. For help, go to the Help Desk forum above.
Post Reply
UberNube





Posts: 61
Joined: Tue Oct 04, 2005 12:43 pm
Location: Flyin my hog on coagulation
Contact:

Lighting Problem --- SOLVED

Post by UberNube »

***SOLVED***

I have been working on my first proper map using 3DS MAX 7. It is entirely indoors so I need lighting. I have followed a few tutorials and managed to get the lights working, but they still refuse to become invisible. Please help me with this as I have tried everything I can think of.

at the moment I have:

a bitmap for the lights which is all white with no alpha
a shader for that bitmap
the light texture called "light!%" (! = no-collide, % = double sided)
several planes set to this texture placed around the map

I have tried:

adding "*" or "%" to the texture name to make them no-render (they produced no light)
not assigning a bitmap to them
setting that bitmap to have no alpha channel
setting that bitmap to have a black alpha
messing with shader settings

Also of interest may be the fact that tool refuses to save the bitmap with explicit-alpha.

screenshot:

Image
Last edited by UberNube on Sat Mar 10, 2007 10:59 am, edited 2 times in total.
p0lar_bear




Articulatist 250

Posts: 365
Joined: Wed Apr 20, 2005 8:17 am

Post by p0lar_bear »

Can you upload or take screenshots of your shader_environment and your bitmap tags, and post them so we can have a look?
UberNube





Posts: 61
Joined: Tue Oct 04, 2005 12:43 pm
Location: Flyin my hog on coagulation
Contact:

Post by UberNube »

light.shader_environment

The bitmap is just a white square (64x64) with no alpha.
The bitmap tag for it is set to compress it with explicit alpha, but it refuses, probably because it has no alpha to compress.
User avatar
Malolo420
Readers Club





Posts: 231
Joined: Sun Feb 25, 2007 4:52 pm
Location: Joined: 24 May 2006
Contact:

Post by Malolo420 »

If it doesn't have an alpha compress it with colour key, not explicit.
UberNube





Posts: 61
Joined: Tue Oct 04, 2005 12:43 pm
Location: Flyin my hog on coagulation
Contact:

Post by UberNube »

It did compress with colour-key, but even when I had it set with a pure black alpha it would not save with explicit alpha.
UberNube





Posts: 61
Joined: Tue Oct 04, 2005 12:43 pm
Location: Flyin my hog on coagulation
Contact:

Post by UberNube »

I have found a solution now. After quite a bit of fiddling with settings and shaders, I found that if you use a Shader_Transparent_Generic with only the top section filled in, then it works. Sapien gave me some errors about an unsupported shader type, but overall the lights worked and were invisible.

When I have more time (after my art GCSE) then I will write up a more complete tutorial on indoor lighting.
Post Reply