Click here to Skip to main content
16,008,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Moving object (cube) along given points. Pin
RohitBapat12-Jun-10 17:21
RohitBapat12-Jun-10 17:21 
QuestionCode Review Tool Pin
john563210-Jun-10 2:21
john563210-Jun-10 2:21 
AnswerRe: Code Review Tool [modified] Pin
Aescleal10-Jun-10 2:28
Aescleal10-Jun-10 2:28 
AnswerRe: Code Review Tool Pin
Chris Losinger10-Jun-10 2:53
professionalChris Losinger10-Jun-10 2:53 
AnswerRe: Code Review Tool [modified] Pin
rp_suman10-Jun-10 6:07
rp_suman10-Jun-10 6:07 
AnswerRe: Code Review Tool Pin
molesworth10-Jun-10 7:27
molesworth10-Jun-10 7:27 
Questionhow to load texture on ball Pin
nearest10-Jun-10 2:04
nearest10-Jun-10 2:04 
AnswerRe: how to load texture on ball Pin
Rick York11-Jun-10 16:06
mveRick York11-Jun-10 16:06 
It appears that you are setting the color of every vertex of the triangle fan and letting OpenGL determine the colors of the pixels inside the triangles. I think that's the right way to do it but you probably don't want to use white for the color. You will be unable to see most shading effects if you do.

For texture mapping you define the [u,v] coordinates on the texture that each vertex maps to and this requires some computation on your part. There are many different algorithms for this and the one to use depends on how the texture image was "unwrapped" from the sphere. This is the same problem faced by cartographers when they draw maps of planets. They have to unwrap the surface of the sphere onto a 2D image. In your case you need to know how that was done so that you can reverse the process.

BTW - [u,v] refers to the (x,y) coordinate in the image that is used for a pixel's color.
Questiondisplay unicode text from into text box from utf database record Pin
Jayapal Chandran10-Jun-10 1:39
Jayapal Chandran10-Jun-10 1:39 
AnswerRe: display unicode text from into text box from utf database record Pin
Richard MacCutchan10-Jun-10 5:52
mveRichard MacCutchan10-Jun-10 5:52 
GeneralRe: display unicode text from into text box from utf database record Pin
Jayapal Chandran21-Jun-10 6:50
Jayapal Chandran21-Jun-10 6:50 
GeneralRe: display unicode text from into text box from utf database record Pin
Richard MacCutchan21-Jun-10 7:29
mveRichard MacCutchan21-Jun-10 7:29 
GeneralRe: display unicode text from into text box from utf database record Pin
Jayapal Chandran22-Jun-10 3:07
Jayapal Chandran22-Jun-10 3:07 
GeneralRe: display unicode text from into text box from utf database record Pin
Richard MacCutchan22-Jun-10 4:14
mveRichard MacCutchan22-Jun-10 4:14 
GeneralRe: display unicode text from into text box from utf database record Pin
Jayapal Chandran22-Jun-10 5:11
Jayapal Chandran22-Jun-10 5:11 
GeneralRe: display unicode text from into text box from utf database record Pin
Richard MacCutchan22-Jun-10 5:59
mveRichard MacCutchan22-Jun-10 5:59 
QuestionMigration from VC 6.0 to Visual studio 2005 Pin
VC_RYK10-Jun-10 1:20
VC_RYK10-Jun-10 1:20 
AnswerRe: Migration from VC 6.0 to Visual studio 2005 Pin
Chris Losinger10-Jun-10 1:30
professionalChris Losinger10-Jun-10 1:30 
AnswerRe: Migration from VC 6.0 to Visual studio 2005 Pin
David Crow10-Jun-10 2:59
David Crow10-Jun-10 2:59 
AnswerRe: Migration from VC 6.0 to Visual studio 2005 Pin
peterchen10-Jun-10 3:29
peterchen10-Jun-10 3:29 
QuestionCall an .NET CF application with CreateProcess() under WinCE5.0 Pin
stefanu2110-Jun-10 0:54
stefanu2110-Jun-10 0:54 
GeneralMessage Removed Pin
10-Jun-10 0:20
Alex@9C10-Jun-10 0:20 
GeneralRe: Important Points for KT Pin
Cedric Moonen10-Jun-10 1:30
Cedric Moonen10-Jun-10 1:30 
GeneralRe: Important Points for KT Pin
Richard MacCutchan10-Jun-10 2:28
mveRichard MacCutchan10-Jun-10 2:28 
GeneralRe: Important Points for KT Pin
Cedric Moonen10-Jun-10 2:47
Cedric Moonen10-Jun-10 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.