Click here to Skip to main content
15,914,895 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: openGL SwapBuffers Pin
Dan14-Jan-09 9:07
Dan14-Jan-09 9:07 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 17:41
Nishad S14-Jan-09 17:41 
GeneralRe: openGL SwapBuffers Pin
Dan14-Jan-09 20:40
Dan14-Jan-09 20:40 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 21:03
Nishad S14-Jan-09 21:03 
GeneralRe: openGL SwapBuffers Pin
Nishad S14-Jan-09 23:49
Nishad S14-Jan-09 23:49 
GeneralRe: openGL SwapBuffers Pin
Dan15-Jan-09 9:27
Dan15-Jan-09 9:27 
GeneralRe: openGL SwapBuffers Pin
Nishad S18-Jan-09 17:24
Nishad S18-Jan-09 17:24 
QuestionHaving trouble with transformations [Christian Graus please save me] Pin
gantww12-Jan-09 16:35
gantww12-Jan-09 16:35 
I'm working with a file format that outputs graphics (in line segments only, no polygons, no points), but has a very screwy way of doing so. Without giving too much away, I'm able to retrieve the list of points from the file with some fairly straightforward calls. However, I need to transform these points and store them (they'll later be used to draw, but I need the points for further manipulation). The problem is that the way the points are currently stored is as follows:

A) The origin (0,0) is in the middle of the drawing, like you would have on a piece of graph paper. I need to transform it so that it will look right on the screen.
B) The image is centered on the origin.
C) The image is inverted along the Y axis.
D) The points in question are already in a nice data structure that includes color and other information.

How can I quickly transform all these points such that if I just used DrawLines, that they would come out correctly? All the matrix code I can find is based around applying transforms to the graphics object, which I don't need to do at the moment. Also, in what order should I do the relevant transforms? I'm thinking that I should flip it first, then shift it (+width, +height). Is that the correct approach?

Performance is not an issue, as users won't be waiting on this operation to complete (or if they are, I can revisit the issue with the intent of collecting more money from them).

Thanks in advance,

Will
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn12-Jan-09 18:39
sitebuilderLuc Pattyn12-Jan-09 18:39 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Mark Churchill13-Jan-09 17:46
Mark Churchill13-Jan-09 17:46 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn13-Jan-09 18:08
sitebuilderLuc Pattyn13-Jan-09 18:08 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
gantww29-Jan-09 11:14
gantww29-Jan-09 11:14 
GeneralRe: Having trouble with transformations [Christian Graus please save me] Pin
Luc Pattyn29-Jan-09 11:30
sitebuilderLuc Pattyn29-Jan-09 11:30 
QuestionOpenGL Bitmap fonts not being displayed on some hardware Pin
McDave12-Jan-09 13:16
McDave12-Jan-09 13:16 
AnswerRe: OpenGL Bitmap fonts not being displayed on some hardware Pin
McDave13-Jan-09 0:13
McDave13-Jan-09 0:13 
QuestionProblem in GDI+ Pin
vinay_K12-Jan-09 2:04
vinay_K12-Jan-09 2:04 
AnswerRe: Problem in GDI+ Pin
Henry Minute12-Jan-09 2:16
Henry Minute12-Jan-09 2:16 
QuestionGDI+ refresh image (C++) Pin
Valdyr11-Jan-09 9:14
Valdyr11-Jan-09 9:14 
AnswerRe: GDI+ refresh image (C++) Pin
Tim Craig11-Jan-09 17:03
Tim Craig11-Jan-09 17:03 
GeneralRe: GDI+ refresh image (C++) [modified] Pin
Valdyr11-Jan-09 23:25
Valdyr11-Jan-09 23:25 
GeneralRe: GDI+ refresh image (C++) Pin
Tim Craig12-Jan-09 9:53
Tim Craig12-Jan-09 9:53 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr12-Jan-09 13:46
Valdyr12-Jan-09 13:46 
QuestionRe: GDI+ refresh image (C++) [modified] Pin
Valdyr13-Jan-09 1:46
Valdyr13-Jan-09 1:46 
AnswerRe: GDI+ refresh image (C++) Pin
Mark Salsbery13-Jan-09 6:38
Mark Salsbery13-Jan-09 6:38 
GeneralRe: GDI+ refresh image (C++) Pin
Valdyr13-Jan-09 9:07
Valdyr13-Jan-09 9:07 

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.