Topic: Valentine's coming - a js special (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=29960" title="Pages that link to Topic: Valentine&amp;#039;s coming - a js special (Page 1 of 1)" rel="nofollow" >Topic: Valentine&#039;s coming - a js special <span class="small">(Page 1 of 1)</span>\

 
argo navis
Paranoid (IV) Inmate

From: Switzerland
Insane since: Jul 2007

posted posted 02-05-2008 00:32

...And it's a good opportunity to do something special.
Some people hate doing things a "planned" date, I can relate to that - some other people love to mark special occasions.

I did it "webdesign stylee" a couple of times myself : for one of my former girlfriends, I put up a (not too good, not too bad)
3d applet that looked a bit like a rose (and the web can still read "Livia" in dark red letters at the bottom left of the said applet).
http://www.beyondwonderland.com/old/data/java/starcube/flower.html

For another special time and special girl, I did something more spectacular - an opengl program - which is a great flower effect (have to test the compatibility
before integrating in any official app, may distribute it in a form or another).

Probably the best one I pulled off was for that girl, who loved Hello Kitty : I built up a whole website with a file sharing space,
an encrypted notepad to exchange words of passion, a google calendar, personal webmail, and an interactive Hello Kitty - which read
"to enlight your boring daylong meetings" - all this was up and shining pink within two days.

This time around, as I am frequenting once again a hot - I mean VOLCANO HOT - latin babe,
I have some more kinky suprise up my sleeve (paper card which reads "you do something to me", don't ask).

Iron Wallaby did that too, with a nifty panda, and some meta-hearts.

I just figured : what about a js quickie on the theme? No special constraints (well, we can abide to the 20 lines), just
those funny valentine ideas getting live (which would be a great excuse for me to stray from my duties, while we're at it).

poi
Paranoid (IV) Inmate

From: Norway
Insane since: Jun 2002

posted posted 02-05-2008 00:44

Who could resist a quickie for Valentine ?

argo navis
Paranoid (IV) Inmate

From: Switzerland
Insane since: Jul 2007

posted posted 02-05-2008 00:57

Aaaaaaah! That's our poi talking.

Btw, I found that sunflower again - uses glut32 (included in the download), and some very special trickery to get a very fluid effect/high fps -
it may not work at all on some gpus (blank or black screen).

Basically, it uses no backbuffer, and no clearing of the buffer, everything is drawn directly to the screen :
OpenGL Sunflower

(to throw in ideas, it's the first time I pull this one out of the vault in - ages)

argo navis
Paranoid (IV) Inmate

From: Switzerland
Insane since: Jul 2007

posted posted 02-07-2008 01:26

Finally managed to cram this heart shape in the entry And to change the shading/tint to what I wanted.
On to removing those "artifacts" by clipping the interval of the function.

http://www.beyondwonderland.com/knowledge/javascript/Valentine_special/isoheart.html

Poi, as much as we still ARE freaks, now with many friends of the same breed... we were total freaks back then too.

argo navis
Paranoid (IV) Inmate

From: Switzerland
Insane since: Jul 2007

posted posted 02-07-2008 15:52

It's cleaner, but I seem to be looking for the zero of a function I don't understand fully The math bit behind this puzzles me -
for a sphere we were using a "packed" version of the "delta x ^2 + delta y ^2 + delta z ^2" function, where only variables for x and y are declared.

But the maths behind the sphere isosurface, according to the above page, mention an equation along the lines of 1 - sqr(x) + sqr(y) + sqr(y) -
pretty much the opposite. So to "guess" the heart equation, I reversed the above heart function (in the pov ray tuts), in the same vein,
and ended up with the right thing. Only issue : the artefacts, now reduced, don't depend on a linear interval.

They seem to depend on sign variations of the function : so what I am looking for are the zeros. And honestly, zeros of a sixth grade function....

Anyway, *clap take two*, Argo's valentine scriptlet



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


« BackwardsOnwards »

Show Forum Drop Down Menu