Lighting

Blitz3D Forums/Blitz3D Programming/Lighting

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.

Use the above mentioned source found in the archives.

http://www.blitzbasic.com/codearcs/codearcs.php?code=515

You need to perform a line pick straight down from the entity that you want to color. Shadow Turtle was saying to make it a long pick, IE the distance goes way down on the Y from your entity.

Use this pick and the function from that code to get the color value on the light map baked into your level.

Use the entitycolor() command in blitz to set the color of the entity to whatever color value you retrieved from that function above.

Keep looking around the forums, there was some demo source a long time ago that does just what you are asking and its commented very well.

Good luck,
Scott