X

Hey! We highly recommend you launch this experiment in Google Chrome. It may run slower, or not at all, in other browsers.

Okay, I'll download Google Chrome I'm willing to risk it
X

Report This Experiment

X

Share with a friend

An e-mail has been sent. Thank you for sharing this Experiment!

Close

Back to All

Javascript Voxel Spacing

July 28, 2009
Author:

Selim Arsever

http://onaluf.org
Location:
Zürich, Switzerland
Rate Experiment (195 ratings):
1 2 3 4 5  
From the Author:

It's a simple demo that uses canvas and ImageData to draw a landscape using the voxel spacing technique. An image is read with the getImageData method and used as a heightmap. The landscape is then rendered column after column using the voxel spacing method. The image is then copied to the canvas with a scale factor.

Technology:

canvas, ImageData

Comments

By Spencer Tipping on August 24, 2010

Very nice! The effect is great -- very realistic!

Reply to this comment
By vera l. mariano da costa on July 25, 2010

lindooooooooo!!

Reply to this comment
By regina on June 04, 2010

.....

Reply to this comment
By vandana on April 07, 2010

freind

Reply to this comment
By fff on March 18, 2010

yu

Reply to this comment
By meeee on November 04, 2009

this experiment is good but is pixely good try@! keep it up and make a better 1!!!!!!

Reply to this comment
By Mien Kogoya on October 27, 2009

Dicari dengan tangapan yang positif

Reply to this comment
By chrelad on September 26, 2009

Can you add the tag to this so it works with Google Chrome Frame? Thanks :)

Reply to this comment
By gurjit on September 12, 2009

sdhfkj;ash

Reply to this comment
By zan on September 09, 2009

video

Reply to this comment
By prosenjit das on August 30, 2009

gift

Reply to this comment
By Grz- on August 26, 2009

Great! I tried to optimize it to what i can, here is the result if you are interested:

http://garzul.tonsite.biz/javascript/voxel/voxel_landscape.htm

This is like 2x faster but however less accurate. :)

Reply to this comment
By Selim Arsever on August 27, 2009

Cool, nice work, this is quite faster indeed!

(In Firefox the anti-aliasing part show some strange artifacts.)

Reply to this comment
By Grz- on September 02, 2009

fixed and added the fps counter

Reply to this comment
By chrome on August 22, 2009

It is slow on google chrome v4.0.202.0 (DEV Release)

Reply to this comment
By Selim Arsever on August 31, 2009

I've just tested it on Chromium 4.0.204.0 and it's as fast as before (~10fps in high res ~18fps for low). What OS/machine are you running Chromium on ?

Reply to this comment
By ktopera on August 18, 2009

Very cool idea, Selim! ;)

Quite slow in Opera v10b3 for Mac, though, for some reason. Maybe you can tweak it.

Reply to this comment
By satinyou on October 13, 2009

It is designed to run well on chrome, not opera. That is why it is called chrome experiments, not javascript experiments.

Reply to this comment
By john on August 16, 2009

it looks gud

Reply to this comment
By TTSin on August 11, 2009

I sarch

Reply to this comment
By Rick on August 02, 2009

Very interesting, congratulations. Worked very fast with Chrome here.

Reply to this comment
By shivali on July 31, 2009

i didn't really understand this experiment. >_<

Reply to this comment
By amit sen on July 31, 2009

amit

Reply to this comment
By Selim Arsever on July 29, 2009

Since this is a variant of ray tracing It's rather easy to do. If you look at the source code you will see on the 18th line:

verticalOpening: 0.4

If you reduce this value you zoom in, if you increase it you zoom out. However you are limited in the detail that you'll get by the quality of the texture I used: no interpolation is done yet.

How and by the way I added a resolution switch: if you push the 'q' key you will alternate between the standard resolution and an higher one.

Reply to this comment
By Chris Birkholm on July 29, 2009

What would zooming in and out look like for pictures created like this?

Reply to this comment

Add a comment

All fields are required to prevent spam.