Click here to Skip to main content
15,896,365 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: Is it possible to compute the blue channel? Pin
Chris Losinger15-Nov-09 6:33
professionalChris Losinger15-Nov-09 6:33 
GeneralRe: Is it possible to compute the blue channel? Pin
Sonhospa19-Nov-09 21:16
Sonhospa19-Nov-09 21:16 
GeneralRe: Is it possible to compute the blue channel? Pin
Chris Losinger20-Nov-09 4:26
professionalChris Losinger20-Nov-09 4:26 
QuestionHow to draw cross hair cursor in opengl while rotating camera ?? Pin
maheshbhoir.home30-Oct-09 20:25
maheshbhoir.home30-Oct-09 20:25 
AnswerRe: How to draw cross hair cursor in opengl while rotating camera ?? Pin
ARon_2-Nov-09 9:31
ARon_2-Nov-09 9:31 
GeneralRe: How to draw cross hair cursor in opengl while rotating camera ?? Pin
maheshbhoir.home2-Nov-09 18:17
maheshbhoir.home2-Nov-09 18:17 
GeneralRe: How to draw cross hair cursor in opengl while rotating camera ?? Pin
ARon_3-Nov-09 4:36
ARon_3-Nov-09 4:36 
GeneralRe: How to draw cross hair cursor in opengl while rotating camera ?? Pin
maheshbhoir.home3-Nov-09 17:50
maheshbhoir.home3-Nov-09 17:50 
Thanks for ur reply.
I have tried to reset the modelview matrix and projection matrix and I am successful to display axes 90 percent, the remaining problem is that while rotating the 3d model flickers (at start zoom - in and at end at normal size and position).

I have tried this code after finishing of rest 3d model drawing :

glMatrixMode(GL_PROJECTION);
glGetDoublev (GL_PROJECTION_MATRIX, projMatrix);
glLoadIdentity(); // reset projection matrix

GLdouble gldAspectRatio = (GLdouble) ViewportSize.right/(GLdouble) ViewportSize.bottom;

glOrtho ( pViewVolumeAxe[0], pViewVolumeAxe[1], 
	  pViewVolumeAxe[2]/gldAspectRatio,
	  pViewVolumeAxe[3]/gldAspectRatio, 
	  pViewVolumeAxe[4], pViewVolumeAxe[5] );

glMultMatrixd(projMatrix);

glMatrixMode(GL_MODELVIEW);
glGetDoublev (GL_MODELVIEW_MATRIX ,modelMatrix);
glLoadIdentity(); // reset model view matrix

// do reverse translation as to keep axes at same position
glTranslated(-modelMatrix[12], -modelMatrix[13], -modelMatrix[13]);

glMultMatrixd(modelMatrix);

// translate whole setup to model center currently I am     // displaying at origin(0,0,0) 
glPushMatrix();
glTranslatef(fXTrans, fYTrans, fZTrans);    

// then all axes draw stuff

Questioncollapsible regions ! Pin
amir-haghighi30-Oct-09 6:11
amir-haghighi30-Oct-09 6:11 
AnswerRe: collapsible regions ! Pin
enhzflep3-Nov-09 6:25
enhzflep3-Nov-09 6:25 
Questionplease Pin
Archy_Yu25-Oct-09 4:44
Archy_Yu25-Oct-09 4:44 
AnswerRe: please Pin
RichardM128-Oct-09 8:44
RichardM128-Oct-09 8:44 
AnswerRe: please Pin
Tim Craig29-Oct-09 15:35
Tim Craig29-Oct-09 15:35 
GeneralRe: please Pin
Archy_Yu29-Oct-09 16:50
Archy_Yu29-Oct-09 16:50 
GeneralRe: please Pin
Luc Pattyn29-Oct-09 17:38
sitebuilderLuc Pattyn29-Oct-09 17:38 
QuestionDirectx Pin
messages25-Oct-09 3:30
messages25-Oct-09 3:30 
AnswerRe: Directx Pin
Baltoro29-Oct-09 11:13
Baltoro29-Oct-09 11:13 
GeneralRe: Directx Pin
messages31-Oct-09 4:02
messages31-Oct-09 4:02 
GeneralRe: Directx Pin
Baltoro1-Nov-09 11:29
Baltoro1-Nov-09 11:29 
QuestionMy texture just didnot work! Anyone give a hand? Pin
Archy_Yu24-Oct-09 1:41
Archy_Yu24-Oct-09 1:41 
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
IdUnknown26-Oct-09 3:22
IdUnknown26-Oct-09 3:22 
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
Archy_Yu26-Oct-09 4:49
Archy_Yu26-Oct-09 4:49 
AnswerRe: My texture just didnot work! Anyone give a hand? Pin
Tim Craig26-Oct-09 7:41
Tim Craig26-Oct-09 7:41 
GeneralRe: My texture just didnot work! Anyone give a hand? Pin
Archy_Yu26-Oct-09 20:11
Archy_Yu26-Oct-09 20:11 
QuestionGrayscale values Pin
econner21-Oct-09 20:32
econner21-Oct-09 20:32 

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.