Talk About Network

Google





Graphics > OpenGL 3D API > Re: How do I ti...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 4772 of 5061
Post > Topic >>

Re: How do I tile a sphere ?

by Chris Forone <4one@[EMAIL PROTECTED] > Jun 4, 2008 at 07:48 AM

Lynton Towler schrieb:
> Hello,
>    Thanks for reading.
> In the past I have received help from you guys on this NG and am hoping 
> once again you could be so kind.
> I've been working on a 3D Earth type program using OpenGL with GLUT.
> Currently I load a rather large single texture of the earth and cover 
> the sphere with it, this works OK but is a bit slow at loading.
> I think I need to convert to a tiles approach where I divide the sphere 
> into say 512x512 tiles then texture each tile individually to speed 
> things up a little and make future zooming in easier.
> I could then of course load/cache each tile on demand when its within
view.
> These ideas are nothing new I know but I could really do with a small 
> skeleton tutorial or whatever on how to do this so if you know of one 
> I'd really appreciate it.
> I have Googled around a bit and found stuff talking of "Quad Tiles" etc 
> but no decent example code.
> 
> Thanks in advance
> 
> Lynton, England UK
> 

some ideas:

to tile the sphere you can use gluSphere() (www.delphigl.com) or some 
more native approach subdivide icosahedron (20 triangles). gluSphere() 
does the texture-vecs for you.

to speed up texturing check resident textures (glAreTexturesResident(), 
glPrioritizeTextures()). you can load (all/part) of the textures in the 
fast graphics buffer.

use only a half-sphere and only rotate the texture(s), maybe via your 
own pixel-shader. but i think this is advanced stuff.

cheers, chris
 




 7 Posts in Topic:
How do I tile a sphere ?
"Lynton Towler"  2008-06-01 13:29:38 
Re: How do I tile a sphere ?
"jbwest" <jb  2008-06-01 18:24:39 
Re: How do I tile a sphere ?
fungus <openglMYSOCKS@  2008-06-02 05:07:29 
Re: How do I tile a sphere ?
"jbwest" <jb  2008-06-02 19:17:46 
Re: How do I tile a sphere ?
"Lynton Towler"  2008-06-03 18:42:33 
Re: How do I tile a sphere ?
Chris Forone <4one@[EM  2008-06-04 07:48:29 
Re: How do I tile a sphere ?
"Lynton Towler"  2008-06-07 08:29:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 14:57:44 PST 2009.