Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How do I get UVs to texture cube sphere?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Temeez   Members   

108
Like
0Likes
Like

Posted 26 August 2014 - 03:58 AM

Hello,

 

I am trying to put textures on my cube which I have turned into a sphere, but alas the only thing I have gotten is a headache (I can't math).

 

Cube sphere code: http://pastebin.com/B6ijfdbf

 

I am fairly sure that I could apply my textures to the sphere following this tutorial: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/ but I have absolutely no idea how to get those UV coords.

 

It could be that this: http://iquilezles.org/www/articles/patchedsphere/patchedsphere.htm explains it, but as I said, can't math.

 

I have searched all around the google and gamedev for a solution a long time and its starting to wear me thin, so I hope that someone can help me with this.

 

 - Temeez






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.