Winamp & Shoutcast Forums panorama sphere preset

 20th January 2009, 20:05 #41 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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
20th January 2009, 21:14   #42
Cope
Senior Member

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
 xx - sphere intersect test.milk (5.6 KB, 373 views)

Murphey's fighting Occam, and I'm in the stands.

 20th January 2009, 22:56 #43 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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
21st January 2009, 14:09   #44
Cope
Senior Member

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.

 21st January 2009, 15:36 #45 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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.
22nd January 2009, 20:54   #46
Flexi
wellspring of milk
Major Dude

Join Date: Apr 2007
Location: 54.089866,12.11168,18.75
Posts: 2,058
Attached Files
 flexi - shelter in infinity.milk (10.4 KB, 417 views)

23rd January 2009, 01:29   #47
Cope
Senior Member

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

Attached Files
 flexi + cope + martin - blue marble (specular version) .milk (24.3 KB, 407 views)

Murphey's fighting Occam, and I'm in the stands.

 23rd January 2009, 06:45 #48 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 nice one. ...slowly it grows... Last edited by Flexi; 23rd January 2009 at 07:21.
 27th January 2009, 10: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.
 27th January 2009, 11:27 #50 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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
 27th January 2009, 14: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.
 27th January 2009, 16:38 #52 Nitorami Major Dude   Join Date: Mar 2008 Location: Erlangen Posts: 857 Note that the jpgs should not go with the presets but into the \textures folder.
 27th January 2009, 18:11 #53 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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
 29th January 2009, 12:45 #54 Cope Senior Member     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.
 31st January 2009, 17: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.
 23rd January 2018, 12:08 #56 xmuzack Senior Member     Join Date: Sep 2016 Posts: 110 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!
 9th February 2018, 09:01 #57 Flexi wellspring of milkMajor Dude     Join Date: Apr 2007 Location: 54.089866,12.11168,18.75 Posts: 2,058 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...
 Winamp & Shoutcast Forums panorama sphere preset