Exporting Light in B3D file

BlitzMax Forums/MiniB3D Module/Exporting Light in B3D file

verfum(Posted 2007) [#1]
Hi there, just a quick question, is it possible to export lights with the b3d file and use within MiniB3D ? Thanks.


bradford6(Posted 2007) [#2]
the .b3d file describes a single mesh or an animated boned mesh.

i think you are better off creating a light at runtime (or loading them via a level file)

lights are somewhat computationally expensive. you can achieve lighting/shadow effects by baking a lightmap (maplet does this for level files)

keep in mind that this might not work on the system you list in your signature. you might have to bump up the RAM to 8MB.


verfum(Posted 2007) [#3]
Okay that's understandable, my last game was written in B3D and I had a light on each bullet fired, I was using the Extensions library to load the lights in for the bullets. Guess I'll just have to do like you say. Thanks for your help.


Mustang(Posted 2007) [#4]

light on each bullet fired



? Are you sure you don't mix particles and lights here? Usually more than just a few (like 3-4 max) lights in the scene would kill the framerate totally.