It's almost voxel, but still 2d

Posted by Scott_AW on Sept. 9, 2010, 11:16 p.m.

So a little bit more time in playing around with Desertfox's voxel algorithm and I have managed some nice results.

First few tests were just a small box of colored pixels, proving that the rays were hitting and returning colors of the object.

Next, which is were I'm currently at, I started rendering with squares what the ray's scan. Its in no ways centered so you'll see the squares to move diagonal to the bottom right, but it exposes the whats behind them, which is nothing and should be nothing.

So I'm pretty happy with this, although the hard part will be affixing this to a camera, but I have some examples to work by.

This doesn't have pretty random colors, just a solid color that gets darker based on the distance from the camera, or in this case the depth of the pixel with in the model itself.

Currently this is acting more like a simple scanner for now.

However I thought this could also make for an interesting graphic engine for 2d styles, like side scrolling or isometric.

Like this GM project I did simulating voxels with tile layers and darkening them the deeper they are.

Which is open source at my gamejolt account.

Direct link.

Comments

Ferret 14 years, 2 months ago

Are you running in windows 98?

Scott_AW 14 years, 2 months ago

deja vu…

Actually no, I still like classic mode in XP because it doesn't distract. Actually, I use 2000 more often on my desktop.

DesertFox 14 years, 2 months ago

Nice to know this is working!

I just lurve voxels :3

Scott_AW 14 years, 2 months ago

Nice that you made the alogrithm functional in the first place!

DesertFox 14 years, 2 months ago

Well, I wouldn't have been using it/have given it to you otherwise :P

flip 14 years, 2 months ago

looks awesome