Changing the Shape of Saturn Ring Details
We're working on a lecture with Carolyn Porco, and she mentioned the look of the Saturn rings details wasn't right--they should be fluffy snowballs, instead of rigid faceted blocks of ice. I assume this might be adjustable, but I'm curious for pointers as to where. Is it all done from the fragment shader or the .raw file in there?
Служба підтримки клієнтів працює на UserEcho
I will get the engineers to get back to you on this Dan!
Hi Dan,
I looked at the effect. Here is how broadly it breaks down.
The effect file: SaturnRingDetailsMesh.conf has two passes. The first one draws the volumetric effect on a fullscreen quad. You can turn it off by changing the line: 'passEnable true' to false for that pass to see the difference it makes.
The second pass draws the data points as bunch of triangles. The .raw file has one triangle per line. That data is really not triangular data but is then interpreted in the 'ice.gs' geometry shader to construct a billboarded quad. Finally in the 'ice.fs' fragment shader, there is logic to make the shape you see. So, effectively, .raw file has only position data of the points and if you want to make your own shape, you can modify the fragment shader. As a simple test replace all the lines in the main() function of the 'ice.fs' as just one line: 'FragColor = vec4(1,0,0,1);'
If you then type the command: system.reloadallshaders in uniview, then you will see all the data points to be red squares.
This person is responsible for the 'shadertoy' website and his personal website contains plenty of other useful tricks and tips for shaders.
The link I am giving you can be applied to make your own shapes in the fragment shader which might be very useful for now and future. You can even see his implementation of these shapes on the shadertoy website at: https://www.shadertoy.com/view/Xds3zN
Let us know how that goes. Maybe we will end up using your finished version as a default module :)
Best Regards,
Jawad
Thanks, I'll play around with this!