ID:113807
 


Can you spot the flaw?

So close, yet so far away.

Checklist so far:

Static Lighting Generator 3
- Transfer to libpng √
- Support for southward-facing walls √
- Support for rectangular icon_sizes √
- Upgrade to planar mapping filter strip method √ (renamed! :)
- Support for perspective-skewed icon_sizes ~
- Semi-transparent walls (optional) ~
- Update map-encode format for new features
- Arbitrarily shaped (convex) and sized "shadow shapes" (optional)

(√ means done, ~ means almost done)

So, it looks like I'm on track. I even added a fancy help page and progress bar to the generator. What I'm happy with most is how fast it can chug along now--I guess the new method is both more accurate and a bit faster!

Once I track down the cause of that flaw, I'll finish up perspective and transparency. Of course, I marked transparency as almost done, and I haven't even tested a transparent wall.

Oh, Idea! I'll just make them all transparent really quick:



Huh. I... think.. that's right? At least it looks cool. It'll probably look better when they aren't all considered separate objects...

Anywho, thought I'd share a stupid mistake that had me scratching my head for half a night:
darkness -= light->intensity-dist, 0.0f * options->falloff * filter;


No error or nut'in. I couldn't for the life of me figure out why everything was hard-edged, and spent a while walking through all the new code for the new generation method, and that's sitting in my old code. Gah. This is why people need sleep, otherwise they just delete max( ) and leave the arguments behind!
no i could not spot the flaw?
The top right of the first picture.
F0lak wrote:
The top right of the first picture.

Are you talking about the weird bend in the shadow? That wasn't what I was thinking of. I'll admit it doesn't look right, but I think it's actually accurate.

I was talking about the two light dots directly behind the single wall north of the big light. They're easier to see at full size.
DarkCampainger wrote:
Are you talking about the weird bend in the shadow?
I was

I was talking about the two light dots directly behind the single wall north of the big light.
I see them now. Little lines above the block. Any idea on what's causing them?
lololololololol

DarkCampainger, you're making me drool. :[
F0lak wrote:
I see them now. Little lines above the block. Any idea on what's causing them?


Not yet, but the fact that their symmetrical about the center of the light should be a good hint. One thing I love about Visual Studio is the debugger, which lets met step through the code one line at a time--this would be a pain in the butt to figure out with test message outputs.

D4RK3 54B3R wrote:
lololololololol

DarkCampainger, you're making me drool. :[

You'll be able to play with it soon enough ;)

Your levels are always like the "ultimate" test case :P