Jump to content
  • Advertisement
Sign in to follow this  
cueca

Problem about scaling GL window

This topic is 3605 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I modified the Lesson 5 (vB 6.0 code) to help me with my work. Simply i have added a mouseUp and mouseDown event. When mouseDown, x coordinate is recorded as xDown. When mouseUp it is recorded as xUp so dx = dx + xUp - xDown then i scale the window like ReSizeGLScene Me.ScaleWidth + dx, Me.ScaleHeight that is; Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) xDown = X End Sub Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) xUp = X dx = dx + xUp - xDown ReSizeGLScene Me.ScaleWidth + dx, Me.ScaleHeight End Sub but the screen is broken when dx is negative can anyone tell me what is the problem?

Share this post


Link to post
Share on other sites
Advertisement
if you scale a scene in negative values the result would be that you might end up with polygons facing away from the camera because of a reversed winding order,
either don't do it or flip the culling from back to front facing polygons.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!