Skip to main content
gamedev.net
🔒 Locked

Source for D3DXVec3Unproject

Started by Lyve Jul 14, 2004 at 3:45 AM 0 replies 1.7k views
Original Post
Lyve
Lyve
Hello users, I'm porting D3D code to Windows CE, where the function D3DXVec3Unproject doesnt exist. But I need it, it's very important. Does anyone have an idea where I can find the source code for this function? Regards, Lyve
_____________________________________http://www.winmaze.de, a 3D shoot em up in OpenGL, nice graphics, multiplayer, chat rooms, a nice community, worth visiting! ;)http://www.spheretris.tk, an upcoming Tetrisphere clone for windows, a 3D tetris game on a sphere with powerful graphics for Geforce FX and similar graphics cards.
Trip99
Trip99
They do not give out the source as far as I know so you will need to recreate it yourself. When projecting normally a point is transformed firstly by the world matrix so it goes into world space from model space, then by the view matrix so the world is seen from the point of view of the camera and then by the projection matrix that applies perspective etc. So you will need to do the reverse by taking the inverse matrix.
------------------------See my games programming site at: www.toymaker.info

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.