OpenGL

HOWTO handle mouse position to world coordinate in OpenGL?

again for CSC3260
if i follow the guideline in tuto notes
to handle the mouse projection from screen
to real OpenGL world coordinate
I WILL DIED Orz

this is a MUST in programming OpenGL's game
how come i need to build the function from seatch ??

so what you think as what you have
GLU already provide the buildin function for you...
before i know how to use it
i spend for more the one day to recall my pure maths...
AND STILL FAULT TO DO SO Orz

so... show time !!


HOWTO handle collision of circle in OpenGL?

in assignment 2 of CSC3260
we need to handle the collision of

  1. puck to wall,
  2. puck to mallet

it is quite simple for puck with wall
but for puck to mallet is a bit different
i use the following code to handle the real collision

p.s.

  1. i count angle as E = 0, N = 90, etc
  2. i use velocity, which along the angle

so... show time !!


Syndicate content