Hye

Firstly, I beg of you pardon for my bad english

My problem is that I have got a plane equation in World space and I Want it in Viewport Space. I thought it was very easy…

Edit : … but my only idea was stupid :rolleyes:

Hye

Firstly, I beg of you pardon for my bad english

My problem is that I have got a plane equation in World space and I Want it in Viewport Space. I thought it was very easy…

Edit : … but my only idea was stupid :rolleyes:

to be perfectly honest, i don’t know whether to laugh or cry.

You can transform a 4D plane directly from world space to viewport space by multiplying by the inverse transpose of the 4x4 matrix that maps points from world space to viewport space. This 4x4 matrix is the concatenation of the view transform V, the projection matrix P, and the viewport transform W (that maps normalized device coordinates to screen coordinates). You don’t need to perform any perspective division by w.

to be perfectly honest, i don’t know whether to laugh or cry

Oupss… My idea was so stupid!!! :eek: I must to think a lot of more before writing something… Sorry I’m going to erase this Big mistake…

You can transform a 4D plane directly from world space to viewport space by multiplying by the inverse transpose of the 4x4 matrix that maps points from world space to viewport space. This 4x4 matrix is the concatenation of the view transform V, the projection matrix P, and the viewport transform W (that maps normalized device coordinates to screen coordinates). You don’t need to perform any perspective division by w.

Thanks a lot

hehe… it wasn’t stupid, a heck of alot better than i did my first time around. i’m glad to see you have a sense of humor.

remember, i’m the one with the boney head