Lighing a cube

Blitz3D Forums/Blitz3D Programming/Lighing a cube

Boiled Sweets(Posted 2003) [#1]
Why is it when I light a cube it lights either triangle?

Is there a nicer way to get it to light the cube face in realtime, more sort of dithered lighting?


Perturbatio(Posted 2003) [#2]
As far as I know, you would need to increase the polycount of the cube.


Ross C(Posted 2003) [#3]
It's because the real time lights in blitz only light on a triangle (or vertex??) basis. If the light is a static one and the model will never model, you can apply a lightmap to it. Basically a texture that has light and dark parts on it to represent the light. There are quite a few lightmappers around. Gile[s] is one. Check the User Creations Forum :)


Boiled Sweets(Posted 2003) [#4]
I want my player to be holding a torch.

I don't think a light mapper will work there will it?


Ross C(Posted 2003) [#5]
Well, Halo (intercept), was using lightmaps to light is levels in real-time. Pretty complicated me thinks tho :) Best just upping the poly-count a bit on the things you wanna light :D