Click here to Skip to main content
15,912,329 members
Home / Discussions / Graphics
   

Graphics

 
AnswerRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon24-Feb-08 10:11
mvePete O'Hanlon24-Feb-08 10:11 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Saqib Yaqub24-Feb-08 11:19
Saqib Yaqub24-Feb-08 11:19 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Tim Craig24-Feb-08 12:47
Tim Craig24-Feb-08 12:47 
GeneralRe: How i can improve this website http://www.whites-stationery.co.uk/ Pin
Pete O'Hanlon25-Feb-08 0:49
mvePete O'Hanlon25-Feb-08 0:49 
AnswerRe: How i can improve this website Pin
Christian Graus25-Feb-08 9:42
protectorChristian Graus25-Feb-08 9:42 
GeneralRe: How i can improve this website Pin
Pete O'Hanlon25-Feb-08 9:56
mvePete O'Hanlon25-Feb-08 9:56 
GeneralOpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 4:11
braveheartkenya24-Feb-08 4:11 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom [modified] Pin
Christoph Menge24-Feb-08 10:14
Christoph Menge24-Feb-08 10:14 
Hi,


do you invalidate the control somehow when changing yTrans? Otherwise, you won't notice any change. Check whether the Paint method is called at all using the debugger.

EDIT:
2 more things:

1.) Handle the Resize-Event and do the following:
Sorry, this is C#, but I don't really have an idea about VB. I guess this will help anyway:
<br />
// Some private variable that stores initialization status.<br />
// Set this to true after InitializeContexts();<br />
private bool initialized = false;<br />
<br />
protected override void OnResize(EventArgs e)<br />
{<br />
    if (initialized)<br />
    {<br />
        MakeCurrent();<br />
<br />
        Gl.glViewport(0, 0, Width, Height);<br />
        Gl.glMatrixMode(Gl.GL_PROJECTION);<br />
        Gl.glLoadIdentity();<br />
        Gl.glOrtho(0.0, 10.0, 0.0, 10.0, -10.0, 10.0);<br />
        Gl.glMatrixMode(Gl.GL_MODELVIEW);<br />
        Gl.glLoadIdentity();<br />
    }<br />
}<br />


Also, make sure xTrans is not negative.

Last, why do you call SwapBuffers(), although you set AutoSwapBuffers to true before?


Hope this helps,

Chris

"Obstacles are those frightening things you see when you take your Eyes off your aim"
- Henry Ford

Articles 
Blog

modified on Sunday, February 24, 2008 4:35 PM

GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya24-Feb-08 11:13
braveheartkenya24-Feb-08 11:13 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge24-Feb-08 13:01
Christoph Menge24-Feb-08 13:01 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
braveheartkenya29-Feb-08 10:26
braveheartkenya29-Feb-08 10:26 
GeneralRe: OpenGL- Tao- VB.Net simulating motion and zoom Pin
Christoph Menge3-Mar-08 1:14
Christoph Menge3-Mar-08 1:14 
QuestionWhere did my "dshow.h" go? Pin
Jun Du23-Feb-08 3:53
Jun Du23-Feb-08 3:53 
AnswerRe: Where did my "dshow.h" go? Pin
Jun Du23-Feb-08 5:57
Jun Du23-Feb-08 5:57 
QuestionDoes Vista support managed DirectX out of the box? Pin
Dmitri Nеstеruk22-Feb-08 6:58
Dmitri Nеstеruk22-Feb-08 6:58 
QuestionSkin Detection Algorithm??? Pin
jamilkhan00721-Feb-08 18:13
jamilkhan00721-Feb-08 18:13 
GeneralMPEG Video file Pin
roshihans20-Feb-08 18:11
roshihans20-Feb-08 18:11 
QuestionDirectX Wrapper DXSmith Pin
Dave Kent Bell19-Feb-08 11:29
Dave Kent Bell19-Feb-08 11:29 
Generalpleaseee help (texture mapping) Pin
naroqueen17-Feb-08 7:41
naroqueen17-Feb-08 7:41 
GeneralRe: pleaseee help (texture mapping) Pin
Gavin Williams18-Feb-08 5:14
Gavin Williams18-Feb-08 5:14 
GeneralRe: pleaseee help (texture mapping) Pin
naroqueen18-Feb-08 6:40
naroqueen18-Feb-08 6:40 
GeneralRe: pleaseee help (texture mapping) Pin
Pete O'Hanlon18-Feb-08 8:49
mvePete O'Hanlon18-Feb-08 8:49 
GeneralRe: pleaseee help (texture mapping) Pin
Chris Austin19-Feb-08 10:20
Chris Austin19-Feb-08 10:20 
Questionmesh picking using directx and c# .net Pin
selvarajanlatha13-Feb-08 2:53
selvarajanlatha13-Feb-08 2:53 
GeneralRe: mesh picking using directx and c# .net Pin
Gavin Williams13-Feb-08 14:33
Gavin Williams13-Feb-08 14:33 

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.