Page 10 of 11

Re: About planets

Posted: Sun Jul 08, 2012 8:22 am
by Eric Walch
submersible wrote:
I've put the source parts of that oxp in the branch feel free to copy over top and commit.
I now committed changes to 4 files that gave errors on my card. The nice thing of having it now in source is that you easy can see my changes.

Most errors were implicit use of an integer were you needed a float. The other errors are not that clear to me and you might want to use an other change.
Most of the other errors were about storage directives like "attribute", "varying" etc. I now left them out completely. The code runs, but is probably not optimised now.

Re: About planets

Posted: Tue Jul 10, 2012 11:50 am
by submersible
Eric Walch wrote:
submersible wrote:
I've put the source parts of that oxp in the branch feel free to copy over top and commit.
I now committed changes to 4 files that gave errors on my card. The nice thing of having it now in source is that you easy can see my changes.

Most errors were implicit use of an integer were you needed a float. The other errors are not that clear to me and you might want to use an other change.
Most of the other errors were about storage directives like "attribute", "varying" etc. I now left them out completely. The code runs, but is probably not optimised now.
Thank you. Can I ask that we co-ordinate the merging on that branch though please. I prefer to wholesale merge trunk up to the branch every so often and deal with the carnage , rather than cherry pick fixes from trunk.

Re: About planets

Posted: Wed Jul 11, 2012 5:31 am
by Wildeblood
Eric Walch wrote:
After these changes to the atmos shader, the atmosphere no longer lays a black layer over the planet, but a nice rim arond the planet at the sunny side. :lol:
Thank you, Eric. This is what it looks like here.
Image

Re: About planets

Posted: Sat Jul 14, 2012 9:21 pm
by Griff
I put the atmos.fragment and atmos.vertex from the shady-planets-test.oxp into rendermonkey and fixed a few things to make the openGl warnings go away
(the stuff about finding an 'int' when it wanted a 'float', and another warning about the vec4 to vec3 that was happening to vColor in the vertex shader. updated files are here
https://www.box.com/s/350fe9ece9b847cfaeb2


I've had a bash at a toxic dump planet, the oxp modifies Orerve
https://www.box.com/s/1d2929425eab3716fc84
Image

Re: About planets

Posted: Sun Jul 15, 2012 5:34 pm
by Griff
Image
Here's a variation on the toxic planet shader, this one modifies Quator in Galaxy 1 into an inferno planet.
I can't get the scrolling lava river textures working on the cubemap version at the moment, so here's the Lat/Long 2d texture version. If i can get the cubemap version working i'll replace this upload with it, or maybe just do away with the scrolling and have some sort of bubbly goo thing going on instead

https://www.box.com/s/f9a7b58a50940ee17393

I wonder if we could make an entire planet into a disco mirror ball with the 'fake enviroment map' shader :lol:

Re: About planets

Posted: Tue Jul 17, 2012 12:24 pm
by Shipbuilder
Griff - These look fantastic.

I really like the inferno planet.

Re: About planets

Posted: Sat Oct 27, 2012 12:08 pm
by submersible
More experiments from shady-planets branch , this time - atmosphere has additive alpha blending.

http://assets.povray-planets.org/static ... te-180.png
http://assets.povray-planets.org/static ... te-181.png

Re: About planets

Posted: Sat Oct 27, 2012 12:35 pm
by Diziet Sma
Wow.. those look fantastic! You've even got the yellowish atmosphere with the thin blue upper layer looking right! Colour me impressed!

8)


Edit: now.. I wonder if you can get the atmospheric luminescence on the night-side also looking correct.. See the video in this thread. :mrgreen:

Re: About planets

Posted: Sat Dec 29, 2012 1:41 am
by submersible
Just noting this while I think of it. Some of the things I have been trying with shady planet atmosphere have been stymied by (I think) the need to have inverse matrix transforms in order to do ray marching from eye through the vertex/fragment , then sample from positions along this ray back to the light position. Could it be possible to compute these with a JS frame callback and update a shader uniform ?

Re: About planets

Posted: Wed Feb 12, 2014 9:08 pm
by submersible
Quick update. I'm looking at an atmosphere shader at present. The last note I made to myself about this was "stop using pythagoras and do something clever with angles". Computes the maximum angle which the eye may pass through the atmos and still hit the planet rather than pass through to the other side. The shader switches how it draws based on which side of this angle the eye is intersecting with the surface.

Since there is no volume sampling , this falls down totally on the dark side of the planet.

Image

Image

Image

Image

Re: About planets

Posted: Fri Feb 14, 2014 12:31 pm
by submersible
And this is an encouraging one. Light ray distance through atmos to sample point on camera ray. 4 Samples.
Image

Re: About planets

Posted: Sat Feb 15, 2014 2:15 pm
by Griff
wow, that's looking really awesome, fantastic work submersible!

Re: About planets

Posted: Sun Feb 16, 2014 7:33 pm
by Zireael
This is brilliant!

Re: About planets

Posted: Mon Feb 17, 2014 12:08 am
by Lestradae
So, any chance of this making its way into trunk in the foreseeable future then?

Re: About planets

Posted: Wed Feb 19, 2014 10:28 am
by submersible
Lestradae wrote:
So, any chance of this making its way into trunk in the foreseeable future then?
Not yet - and I've been tinkering for a while. I think the approach is right - but the coordinate space it's being applied in is wrong. The geometry is doing my head in.