reading colour from lightmap for lighting entity?

Blitz3D Forums/Blitz3D Programming/reading colour from lightmap for lighting entity?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


for some reason reading the pixel colour from the lightmap is very very slow - even a single read every render loop drops the framerate, and I've tried using lockbuffer and readpixelfast - I must be doing something wrong somewhere - any ideas anyone?


The size of the lightmap matters greatly - make it as small as you can bear to see. (EDIT: I'm basing this advice on my experience with kusanagi's technique.)