I am very inexperienced with OpenGL and need help making my scene look more convincing.
In the attached image it shows a scene I made where there is a sphere surrounded by vertices that make a bunch of concentric rings (they are set to orbit the planet based on Newton’s equation for gravity).
I was hoping to make them look more connected and hazy (maybe some bloom and blur??)
Additionally I want to also plot vertices behind the tails of commets and was hoping to use the same effect for both situations.
[ATTACH=CONFIG]1464[/ATTACH]
I was hoping that the effect could be achieved using just the vertex_shader (similar to how I create the sphere effect below)?
Sphere effect (vertex shader):
//GLSL sphere point sprite effect
in vec4 _color;
out vec4 FragColor;
void main() {
//FragColor = vec4(_color, 1.0); //old way to just pass a color to the vertex (results in a rectangle)
//Calculate normal from texture coordinates
vec3 N;
N.xy = gl_PointCoord* 2.0 - vec2(1.0);
float mag = dot(N.xy, N.xy);
if (mag > 1.0) discard; // kill pixels outside circle
N.z = sqrt(1.0-mag);
// calculate lighting
float diffuse = max(0.0, dot(vec3(1.0,0.0,1.0), N));
FragColor = _color * diffuse;
}
I was hoping someone could help point me to a way to make my scene look better?
And also please be thorough in your response because as a new member to the forum I can not respond to anything (yet???)
Thanks!!