View/Projection Matrix in Crossfire

Posts 14 of 4 · Page 1 of 1
View/Projection Matrix in Crossfire
I am writing my own WorldToScreen function that works with Crossfire. The only thing that I have left to do is to find the address/pointer of the 4x4 View matrix. Can somebody please help me with this?

Edit: I can't use the open source method that uses the directx device, because I am doing this externally and i don't know how to use the d3d9 device externally in that way.
you need only, View, Projection and ViewPort, because the World matrix is a matrix identity, its very easy get the addresses .

Code:
//World Matrix:

1.000000 , 0.000000 , 0.000000 , 0.000000
0.000000 , 1.000000 , 0.000000 , 0.000000
0.000000 , 0.000000 , 1.000000 , 0.000000
0.000000 , 0.000000 , 0.000000 , 1.000000
Bro how do I get addresses though?
Just remember that the first value of view matrix is between 1 and -1.
Posts 14 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?