View Single Post
  #1  
Old 01-03-2008, 08:14 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Overlapping polygons

So I started a lantern script. This works by drawing a circle with polygons around the player. Great! Problem is, I want to introduce multiple lightsources. When polygons overlap each other, it inverses the overlapping polygons. This means I simply can't just add each lightsource. Here's a screencap that shows what's going on:

How can I fix this? I know it's going to involved a bit of math... and I'm not that great at it, so go easy on me, please!
Reply With Quote