[Solved] Creating a textured sphere in QtOpenGL ES 2.0.
-
I am totaly new to shader programming, but I spent the last few days trying to port this example: http://learningwebgl.com/blog/?p=1253 to Qt. It has resulted in a bunch of jagged spinning triangles with a view that is not the correct size. Part of my port uses code from opengl_es2 Qt example.
Is there any examples like this out there that works with QtOpenGL ?
"Here":https://sites.google.com/site/tmshag1/GLES2.zip?attredirects=0 is my source if anyone wants a stab at it.
-
I managed to create something like that some time ago. You can download the source here: "globe.tar.gz":http://ucomesdag.googlecode.com/files/globe.tar.gz Hope it is of some help.
-
Thank you so much for sharing that ucomesdag! :)
I tried to run it on my N900, but all I get is the sliders, the title and the fps numbers. There is no globe :( "Show outline" does nothing too.. Have I done something wrong, or is this expected? Again, thank you for sharing! :D -
Sorry forgot to down size the earth.png. Just resize it to 1024 or lower. (Fixed the archive "globe.tar.gz":http://ucomesdag.googlecode.com/files/globe.tar.gz)
-
[quote author="sleam" date="1294671258"]Oh, I see! Thank you for locating that error :) It runs great now :) This was just what I was looking for. I cannot thank you enough, you saved me a lot of headache with that code :) Great work, thanks for sharing![/quote]
No problem the headaches where all mine ;) It took me quite some time to get it working. Keep me updated if you get something more fancy done!