Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: GluPerspective vs. GlOrtho  (Read 11216 times)

0 Members and 1 Guest are viewing this topic.

Fierce_Dutch

  • Full Member
  • ***
  • Posts: 138
    • View Profile
GluPerspective vs. GlOrtho
« Reply #15 on: December 23, 2010, 01:35:16 am »
Quote from: "tntexplosivesltd"
Where from? The .zip from the HTML link has everything, except a glossary.


Oh wait 1 sec.

Uhh I will just use my pdf.. lol

Fierce_Dutch

  • Full Member
  • ***
  • Posts: 138
    • View Profile
GluPerspective vs. GlOrtho
« Reply #16 on: December 25, 2010, 09:14:02 am »
Quote from: "tntexplosivesltd"
Where from? The .zip from the HTML link has everything, except a glossary.


IDK what I am doing wrong but I cant see anything.. Help?
I think its has to do with my gluPerspective function or something
Here is my main code,
http://pastebin.com/9Qy8vkft

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
GluPerspective vs. GlOrtho
« Reply #17 on: December 26, 2010, 09:14:21 am »
For a start, it is a bad idea to use a negative number in gluPerspective() for zNear. I find gluPerspective annoying to use personally.

Fierce_Dutch

  • Full Member
  • ***
  • Posts: 138
    • View Profile
GluPerspective vs. GlOrtho
« Reply #18 on: December 26, 2010, 09:50:59 am »
Quote from: "tntexplosivesltd"
For a start, it is a bad idea to use a negative number in gluPerspective() for zNear. I find gluPerspective annoying to use personally.


Well I got it too work but I had to use sfml's example, so should I use glFrustrum? BTW, can you help me out with mouse look, like when the mouse is centering it turns your guy.

tntexplosivesltd

  • Full Member
  • ***
  • Posts: 163
    • View Profile
GluPerspective vs. GlOrtho
« Reply #19 on: December 27, 2010, 05:45:20 am »
Well, at the moment, moving the mouse moves the blocks. This is a bad idea. Why not just rotate everything based on the mouse movement? This is a lot faster, and easier to understand.

Fierce_Dutch

  • Full Member
  • ***
  • Posts: 138
    • View Profile
GluPerspective vs. GlOrtho
« Reply #20 on: December 27, 2010, 08:38:38 am »
Quote from: "tntexplosivesltd"
Well, at the moment, moving the mouse moves the blocks. This is a bad idea. Why not just rotate everything based on the mouse movement? This is a lot faster, and easier to understand.


Well how would I go about this? Would it be like where ever the mouse's x position / y position is the angle of the rotation? I was just moving with the mouse for some tests and it looks like it screwed up my other tests, whoops! Btw I cant seem to figure out glFrustum, I only have gluPerspective working.