## Skiing combines outdoor fun with knocking down tre

posted in Lame? Where?!
Published August 04, 2005
Advertisement
So last night I amazingly, accidently stumbled upon what was making my game not work in full screen mode (and windowed mode, for some people). What I'm doing is projecting the player's 3D position to 2D window coordinates, and getting the vector between the player and the cursor. Well, here's the culprit:

Quote:
UpdatePosition2D();ShipToCursor.x = input->GetCursor()->x - fPosition2D.x;ShipToCursor.y = -(input->GetCursor()->y - fPosition2D.y);ShipToCursor.z = 0;Vec3f NewRight = ShipToCursor.cross(matrix.GetZ());


For some reason, whenever the cursor and the ship are at the *EXACT* same window coordinates in full screen mode (windowed for some people, too), my cross product gives me garbage. Now, I don't know how to fix it, but at least I know where to start looking.

I apologize for the boring post, just wanted to share my findings. Maybe one of my two readers will know of a solution I can start looking into.

Quote:
"Skiing combines outdoor fun with knocking down trees with your face."
- Dave Barry
Previous Entry ## More coding
Next Entry ## stop that.
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Math is hard

1471 views

## uhh

1655 views

## lol

1415 views

## new gaem?!

1343 views

## GH Tourney

1481 views

## Guitar Hero

1446 views

## Beyond Hell

1409 views
Advertisement
Advertisement