Topic: Menger Sponge raymarching in 512b using Canvas. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31411" title="Pages that link to Topic: Menger Sponge raymarching in 512b using Canvas. (Page 1 of 1)" rel="nofollow" >Topic: Menger Sponge raymarching in 512b using Canvas. <span class="small">(Page 1 of 1)</span>\

 
poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-23-2009 22:33

Some of you might have seen Spongy, the 128b DOS intro raymarching a Menger Sponge. Well, once I picked my jaw from the floor I wondered how big/small such effect could be in JavaScript. My gut feeling was saying 512 bytes but aiming for a very small footprint dictated to go brute force and I wasn't sure how to get a decent framerate for something actually working in base 3 ( in a Menger Sponge you divide the current cube in 3x3x3 and recurse ).

So, without further ado, here comes JSpongy a level 5 Menger Sponge raymarcher in 512 bytes.

Hope you like it.

PS: it works best in Chrome and Firefox.
PS2: I have to get my hands on build of Opera with Carakan to see how it goes.

SleepingWolf
Paranoid (IV) Inmate

From:
Insane since: Jul 2006

posted posted 10-24-2009 21:17

very very cool P01

..and the site has a fresh/clean look to it..good work!

Nature & Travel Photography
Main Entrance

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 10-25-2009 22:42

saw this on pouet!
awesome job again po1!

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-27-2009 11:25

Thanks

Tao
Maniac (V) Inmate

From: The Pool Of Life
Insane since: Nov 2003

posted posted 10-27-2009 22:16

Great stuff

White Hawk
Maniac (V) Inmate

From: zero divided.
Insane since: May 2004

posted posted 10-28-2009 01:08

Mesmerising!

Arthurio
Paranoid (IV) Inmate

From: cell 3736
Insane since: Jul 2003

posted posted 10-28-2009 14:55

Awesome. Can you make it zoom?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-28-2009 16:08

What do you mean by zoom ?

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-29-2009 01:33

I've been lookng at the mostly unstyled version and got it down to 379 bytes.

Arthurio
Paranoid (IV) Inmate

From: cell 3736
Insane since: Jul 2003

posted posted 10-29-2009 09:45

I mean it's a fractal ... but atm looks like it only follows one big tunnel ... the camera could fly into a smaller 'hole' every once in a while

edit: well actually it's not a fractal ... but it could be

(Edited by Arthurio on 10-29-2009 09:52)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 10-29-2009 14:01

Ah like that. Well, the Menger Spong IS a fractal, and I compute it as such.

The only limit to flying inside 'holes' is the number of bytes it would take to implement such camera path, and I really wanted to fit in 512 bytes or less. However the calculation of the fractal supports that. No problem.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 11-03-2009 20:46

well i actually expected the camera path to be of fractal calculation too

coach
Nervous Wreck (II) Inmate

From:
Insane since: May 2011

posted posted 05-31-2011 11:04
Edit TP: spam removed


Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu