Old 20th January 2009, 21:05   #41
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
what is this r2 variable? - must be something like my mask_apex.

i have derived the formulas on my own from the section of a straight line and a (unit) circle.
the calculation of the latitude is then the applied law of sines.
that's truly a simplification. and i must admit i have not thought of a use of the dot product, maybe i will have a look at it for another implementation including free positioning
Flexi is offline   Reply With Quote
Old 20th January 2009, 22:14   #42
Cope
Senior Member
 
Cope's Avatar
 
Join Date: Jul 2008
Location: Germany
Posts: 149
the r^2 is the radius of the sphere. actually I've gotten it to do something similar to what your mask does but two things are confusing me. (see preset attached)

first the cen variable doesn't do what I'm thinking it should. changing its coordinates doesn't change the center of the circle, in fact changing cen.x doesn't do anything at all as far as I can tell. second I'm not sure how to change this to use 3D coordinates, right now it's only generating a 2D circle.

one interesting thing, if you change the line

if (d>0) {ret = 1;} else {ret = 0;}

to

if (d>0) {ret = d*10;} else {ret = 0;}

it gives you a radial gradient that gets darker as you move toward the edge of the circle, so d must get smaller as you move from the center of the circle to the edges. which makes sense, because d becomes negative once you cross the outer edge of the circle.
Attached Files
File Type: milk xx - sphere intersect test.milk (5.6 KB, 375 views)

Murphey's fighting Occam, and I'm in the stands.
Cope is offline   Reply With Quote
Old 20th January 2009, 23:56   #43
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
first - call me paranoid but after a pause of two days i switched on the IndiePopRocks stream and they played "You can't go home" by the Stereofans and after that now it's see the sun

okay, my attempt was a quite primitive one, because it only considers the case that the spheres center is directly on the viewing vector.
and actually the camera is looking at one of the poles, so the longitude is just the angle of the pixel to the screens center. the trick was to calculate the latitude.
I can give you my sketches, but now it's bedtime. good night
Flexi is offline   Reply With Quote
Old 21st January 2009, 15:09   #44
Cope
Senior Member
 
Cope's Avatar
 
Join Date: Jul 2008
Location: Germany
Posts: 149
Quote:
Originally posted by Flexi

and actually the camera is looking at one of the poles, so the longitude is just the angle of the pixel to the screens center. [/B]
ahhhh that's one piece of the puzzle then, I thought the camera was looking at the equator and that's been tripping me up.

Murphey's fighting Occam, and I'm in the stands.
Cope is offline   Reply With Quote
Old 21st January 2009, 16:36   #45
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
it's a hack sorry for confusion

but i can't stop having doable ideas: what about using the land/water separation texture to allow the water surface reflecting some sunlight? think of a Phong shading with a little random scattering. this would be independent from the spheres orientation. just take the original polar coordniates.
Maybe if you get into it, you can try - but i think i won't find the time soon. I've been lazy and I have to work a lot now.
Flexi is offline   Reply With Quote
Old 22nd January 2009, 21:54   #46
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
Attached Files
File Type: milk flexi - shelter in infinity.milk (10.4 KB, 418 views)
Flexi is offline   Reply With Quote
Old 23rd January 2009, 02:29   #47
Cope
Senior Member
 
Cope's Avatar
 
Join Date: Jul 2008
Location: Germany
Posts: 149


I don't have much time right now, but I've worked up a basic specular effect for the water. Could use some random scattering or something to give it a more natural look, but at least this gives us a base to start with. Also made a few other minor adjustments to rotations and lighting effects, the shadow moves now (though it's not a natural movement )

This one needs the following texture named as pano_earth_spec

http://oera.net/How2/PlanetTexs/EarthMask_2500x1250.jpg

Murphey's fighting Occam, and I'm in the stands.
Cope is offline   Reply With Quote
Old 23rd January 2009, 07:45   #48
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
nice one.
...slowly it grows...

Last edited by Flexi; 23rd January 2009 at 08:21.
Flexi is offline   Reply With Quote
Old 27th January 2009, 11:52   #49
Amandio C
Senior Member
 
Join Date: Dec 2008
Posts: 400
Hi. These thread presets (blue marble, alienation, etc) don't seem to be working here. There are jpgs (smaller then the original) with the correct name in the same folder though.
Amandio C is offline   Reply With Quote
Old 27th January 2009, 12:27   #50
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
They're all Pixelshader3.0 presets. Either your graphics card is too old or if you use an ATi card you'll need the Milkdrop2.1 Beta
Flexi is offline   Reply With Quote
Old 27th January 2009, 15:17   #51
Amandio C
Senior Member
 
Join Date: Dec 2008
Posts: 400
It's a Gforce 8700 GTS. I presume the presets run with any jpg provided the name is correct. It could be the drivers's fault, nvidia made the last version for this board more than a year ago.
Amandio C is offline   Reply With Quote
Old 27th January 2009, 17:38   #52
Nitorami
Major Dude
 
Join Date: Mar 2008
Location: Erlangen
Posts: 860
Note that the jpgs should not go with the presets but into the \textures folder.
Nitorami is offline   Reply With Quote
Old 27th January 2009, 19:11   #53
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
that should not matter with the current version - textures can also be placed in the folder with the preset.

though they're globally available when they are placed in the textures folder
Flexi is offline   Reply With Quote
Old 29th January 2009, 13:45   #54
Cope
Senior Member
 
Cope's Avatar
 
Join Date: Jul 2008
Location: Germany
Posts: 149
Could try updating your video drivers, but honestly I'm not sure why they're not working on your card. It should support PS 3.0, or at least 2.X. What happens when you try to load one of the blue marble presets?

Here's how it should look,

Murphey's fighting Occam, and I'm in the stands.
Cope is offline   Reply With Quote
Old 31st January 2009, 18:02   #55
Amandio C
Senior Member
 
Join Date: Dec 2008
Posts: 400
Hi Cope. I get a blank screen, and the same happens with almost all the presets of this thread. The screen capture looks gorgeous thanks I'll try to shake the head in front of the screen to simulate the movement.
Amandio C is offline   Reply With Quote
Old 23rd January 2018, 13:08   #56
xmuzack
Senior Member
 
xmuzack's Avatar
 
Join Date: Sep 2016
Posts: 113
Blue Marble remix

Hello Winampers, sorry I dug up this post from 2009, but I wanted to share a remix of the amazing 3D Blue Marble preset. Always wanted to remix it into something that better reacted to music and I think it turned out pretty well. I love having it set in desktop mode on a second monitor.

My internet was too slow to upload the zip here, so I have to host it on mediafire. 2.6mb file.

Five files in the zip:
xmuzack + flexi + cope + martin + amandio c + yin - Blue Marble (E mc2 remix).milk
pano_earth.jpg
pano_earth_clouds.jpg
pano_earth_night.jpg
pano_earth_spec.jpg

xmuzack + flexi + cope + martin + amandio c + yin - Blue Marble (E mc2 remix)

Happy Winamping!
xmuzack is offline   Reply With Quote
Old 9th February 2018, 10:01   #57
Flexi
wellspring of milk
Major Dude
 
Flexi's Avatar
 
Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Send a message via ICQ to Flexi
Hah, thanks for bumping this up again. And that's a cool remix!

By the way, I've made a good bunch of spherical panorama selfies with my silver-coated lightbulb in the meantime. Fun times:
http://www.cake23.de/pano/fitc-amsterdam-2015/
http://www.cake23.de/pano/simsalaboom2015/
http://www.cake23.de/pano/polarlapse/
Feel free to explore the images in the other directories too.

The WebGL viewers are only broken due to a browser update after which the other uninitialized images were not loadable anymore, and I was too lazy to go and change every html page. I really should do a a tiny content management system for a gallery...
Flexi is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > MilkDrop > MilkDrop Presets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump