Topic: Mandelbrot Rotozoom in 256b (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28377" title="Pages that link to Topic: Mandelbrot Rotozoom in 256b (Page 1 of 1)" rel="nofollow" >Topic: Mandelbrot Rotozoom in 256b <span class="small">(Page 1 of 1)</span>\

 
poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-01-2006 08:44

This hallway has been silent for too long.
As you might know I'm a freak when it comes to size optimization. A few people made some Mandelbrot fractals renderer in 256b, but till this day no one managed to squeeze a Mandelbrot renderer and a rotozoom in 256b of javascript.



Do you see any improvement or have some other ridiculous challenges to give me ?

ps: This quickie works best in Opera and IE. Firefox chokes on it



(Edited by poi on 09-01-2006 08:46)

_Mauro
Maniac (V) Inmate

From:
Insane since: Jul 2005

posted posted 09-01-2006 09:58

Stunning. Now make it zoom in, instead of zooming out, and infinitely, please.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 09-01-2006 10:19

replace n%3 by 4/n

_Mauro
Maniac (V) Inmate

From:
Insane since: Jul 2005

posted posted 09-01-2006 10:48

Ok. Divs and colors? 256b.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-23-2007 00:32

FWIW, I improved the script. Now it zoom in and out and features some nice circular patterns at high zoom levels. Although it's possible to gain 7 bytes in Firefox and Opera, and 5 more bytes in Opera, I didn't manage to add color.

reisio
Paranoid (IV) Inmate

From: Florida
Insane since: Mar 2005

posted posted 01-23-2007 06:42

I dare you to make one using CSS border slants.

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 01-23-2007 08:56

Even though I only have a vague idea about what this is supposed to do, I'm pretty sure it's not working for me. In FF I get nothing (it does seem to be running, since everything else in FF slows down to a crawl, but I get a blank page) and in IE I get very spastic behavior. I think IE is closer to what it is supposed to do, but it seems to be flipping out.


___________________________
Suho: www.liminality.org | Cell 270 | Sig Rotator | the Fellowship of Sup

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-23-2007 09:21

reisio: I might have to average the number of iterations first then use something like marching square/cube to generate the markup with the correct borders. It should take about 1kB.

Suho1004: Sorry. The versions I linked to above work in OP and IE. To see the Firefox friendly versions, add _firefox_friendly just before .htm in the URLs. And yes this is quite CPU intensive.

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 01-23-2007 13:14

Ah, much better--at least in Firefox. For some reason, in IE the lines seem to wrap-around, making the image grow and shrink vertically. And this obviously messes up the image itself. Does that make sense? (This is in IE7, by the way.)

It's quite cool in Firefox, though.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-23-2007 13:38

Yep in IE6/7 the lines don't wrap with the "firefox friendly" versions. The other version works fine though.

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 01-23-2007 15:51

Erm... that's not what I meant... this is really hard to explain. When I open the link above (not the FF friendly link) in IE7, it displays, but the lines seem to wrap randomly in the middle, making the image grow and shrink vertically. In other words, the lines don't go all the way to the end to form a nice box, they seem to wrap at varying points so that one line becomes two (or more, maybe, I don't know) lines. Sometimes the image grows so much vertically that a vertical scrollbar appears. Also, there seem to be a lot of question marks... I don't remember seeing question marks in the FF version, but I could be wrong.

Anyway, I'm probably the only person having this problem. Computers hate me for some reason.

Gotta get to bed. Too tired to think.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-25-2007 00:06

that is absolutely amazing!
way to go poi!

rukuartic
Bipolar (III) Inmate

From: Underneath a mountain of blankets.
Insane since: Jan 2007

posted posted 01-25-2007 06:20

I wanna be amazed too! D:

Firefox 2.0.0.1, Ubuntu Edgy.

rukuartic@halflght:~/$ whatis life
life: nothing appropriate.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-25-2007 09:17

thanks,

rukuartic: See my first reply to Suho1004

Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 01-25-2007 09:39

So I guess the original version works for everyone else in IE7, huh? I wonder why it doesn't work for me. With the exception of the problem I described above, it seems to run a lot smoother than the FF version.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-25-2007 09:53

Btw the problem you described happen every time there is one interation too many, a \n is added, making the lines wrap like at unexpected place. But that doesn't explain why you have that.

note to self: I should really make some sort of browser sniffer ( *shudder* ) for that kind of scripts. Every time, someone complain it doesn't work and fail to read the comments pointing to the version they should use.

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 01-25-2007 23:32

well, there is your next challenge: "Mandelbrot Rotozoom in 256b for all Browsers"


Suho1004
Maniac (V) Mad Librarian

From: Seoul, Korea
Insane since: Apr 2002

posted posted 01-26-2007 07:46

poi: I am using the IE7 version... this is the one you originally linked to, right? Why do you keep insinuating that I'm using the wrong version?

But whatever. I'm not trying to bust your balls over this. I'm just saying.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-26-2007 09:21

Suho1004: Sorry my previous comment was poorly worded. I wasn't blaming or insinuating anything about you, but noticing out loud that rukuartic missed the post mentioning the firefox friendly versions. The exact same thing happen on Pouet.net ( a demo scene portal ). There, people didn't read the technical discussion and one even thumbed down ( a brilliant c64 coder btw ) the prod directly without giving any chance to solve the problem.



(Edited by poi on 01-26-2007 09:22)

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-27-2007 22:00

Grumble: Well, I've been in an assembly mood recently. Last WE I made:


Asahikawa - a 64b voxel city landscape
.

And this WE I improved my 32b "fire" effect.


32b fire effect .v2 - now without <3 padding, glitches and border



Due to the ridiculous size of these effects, there is no room to add ESC support to exit. You'll have to 'end the task' manually, sorry


Damn, I should really get started on a new JavaScript demo instead.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 01-29-2007 01:07

Grumble: done

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 02-02-2007 22:45

niceee....
poi you are truly the master of javascript!!!

those assemblies arent workin for me, btw. just giving me a black screen. you should put them up on pouet if you havent done so already.

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 02-03-2007 04:01

Thanks.

I've already submitted the 256b JS Mandelbrot rotozoom and 64b assembly Asahikawa to pouet

Also on my laptop, most DOS prod shows a black screen at first, but if I switch task then switch back to the DOS task and make it fullscreen, it works. Sorry about that. I honestly have no idea why. Add to that that these prods works fine on my work PC. Go figure



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


« BackwardsOnwards »

Show Forum Drop Down Menu