Giawa
01-08-2009 02:20:07
Hi everyone,
I saw some videos of Caelum in action and loved it. I've written another port of Caelum to C#. Instead of using Mogre I'm using a custom graphics engine that I've developed. I'll be releasing the source code back to the project as soon as I get the quirks worked out. Anyways, everything has gone swimmingly except for the clouds. I've converted the cg shader code into equivalent (to the best of my knowledge) GLSL code. I've also made some small optimizations (eliminating the need for a world matrix by deriving the world co-ordinates using layerHeight and the vertex positions, etc). The vertex and fragment shader are posted on pastebin:
Fragment Shader: http://giawa.pastebin.com/m3a29b57e
Vertex Shader: http://giawa.pastebin.com/m4c55ff69
YouTube Video: http://www.youtube.com/watch?v=yA-FYvQWpnM
'Fixed' YouTube video: http://www.youtube.com/watch?v=5YljIL9N_sU
I've made a youtube video of what I'm experiencing (the youtube video is HD, but is still processing, so HD may take some time to become available). Can anyone make any suggestions as to what might be happening? Specifically I'm confused about the snapping cloud textures and bright clouds during night time. Thanks in advance, and thanks for the great plug-in!
Edit: I've uploaded a new youtube video that only exhibits the issue I am having with the clouds blending at night. I'm using a cheap hack at the moment, but if anyone has comments or suggestions, please let me know.
Edit: I think I'm okay with how it looks now. I'm basically only using the cloudColour value, and not using 'thickness', 'sunGlow', etc as defined in the fragment program. I'm not sure what is causing thickness to error and cause mix to fail, but perhaps I'll look into it in the future. For now, this is good enough I've uploaded another youtube video showcasing the 'fixes'.
Giawa
I saw some videos of Caelum in action and loved it. I've written another port of Caelum to C#. Instead of using Mogre I'm using a custom graphics engine that I've developed. I'll be releasing the source code back to the project as soon as I get the quirks worked out. Anyways, everything has gone swimmingly except for the clouds. I've converted the cg shader code into equivalent (to the best of my knowledge) GLSL code. I've also made some small optimizations (eliminating the need for a world matrix by deriving the world co-ordinates using layerHeight and the vertex positions, etc). The vertex and fragment shader are posted on pastebin:
Fragment Shader: http://giawa.pastebin.com/m3a29b57e
Vertex Shader: http://giawa.pastebin.com/m4c55ff69
YouTube Video: http://www.youtube.com/watch?v=yA-FYvQWpnM
'Fixed' YouTube video: http://www.youtube.com/watch?v=5YljIL9N_sU
I've made a youtube video of what I'm experiencing (the youtube video is HD, but is still processing, so HD may take some time to become available). Can anyone make any suggestions as to what might be happening? Specifically I'm confused about the snapping cloud textures and bright clouds during night time. Thanks in advance, and thanks for the great plug-in!
Edit: I've uploaded a new youtube video that only exhibits the issue I am having with the clouds blending at night. I'm using a cheap hack at the moment, but if anyone has comments or suggestions, please let me know.
Edit: I think I'm okay with how it looks now. I'm basically only using the cloudColour value, and not using 'thickness', 'sunGlow', etc as defined in the fragment program. I'm not sure what is causing thickness to error and cause mix to fail, but perhaps I'll look into it in the future. For now, this is good enough I've uploaded another youtube video showcasing the 'fixes'.
Giawa