Shadows

Posted by Scott_AW on Oct. 6, 2010, 9:45 p.m.

Shadows now are working. Its based on the current light sources, light sources mark an array in its range(every 16pix/units) and the shadow reads it for its coords.

The array is also used to see if the player is in a shadowed area. The bottom of the shadow is randomized to create a flicker of blackness and a slightly grainy texture is used, attempting to look like darkness to your eyes when your adjusting….maybe, let me know.

Although the player isn't in the game, I've already started his/her basic commands, like opening up a locked locker.

More to come as time permits.

Demo w/ shadows

Comments

Cesque 14 years, 1 month ago

God damn you, Scott, don't you ever have moments where you simply fail and can't get a thing to work? I mean, you probably do, but still, your work always seems like a continuous streak of success.

Castypher 14 years, 1 month ago

Just last night I was having a problem with embedded for loops and arrays. I swore I'd have it done by midnight, but it just wasn't worth it. Working with an inventory system in the past halted progress too (though I did get it finished eventually).

So my point is…

Screw you, Scott. Screw you and your success. Try joining the rest of us in trial and failure one day. We have root beer.

Scott_AW 14 years, 1 month ago

It took me two hours to get it working right, so don't feel too bad.

That and have I finished anything yet? ;) I have road blocks in two of my other projects, like Shield Breaker and The Crawl(voxel) projects are currently sitting idle so I don't kill them.

Otherwise be thankful you're all still free of married life, thats one thing that drags developement down. I'll have an idea to fix a problem, but it'll get delayed indefinatly due to one of the following: Have to watch kids, have to appease wife, have to actually get rest….

noshenim 14 years, 1 month ago

Why does the stuff in the window appear to move faster than the window when the view moves…? Everything else looks great.

Juju 14 years, 1 month ago

I would do away with the shadow flickering thing, it looks like a glitch rather than a feature.

_Player_ - Perspective. It does feel a little off though, are you sure you've done your maths right?

Scott_AW 14 years, 1 month ago

Perhaps I'll try something different then with the shadows.

Math? I just put some numbers in there. I tweak with it some more.