Game Development Community

Using Script to project world to screen coordiantes

by Owen Ortmayer · in Torque Game Engine · 12/12/2003 (10:35 am) · 4 replies

I'm trying to project a point in the world to screen coordinates. I was wondering if anyone knew of a function available to the scripts that can accomplish this. The platform has a function dglPointToScreen() that can do this but i was hoping to simply do it in a script.

Thanks,
-Owen

#1
12/12/2003 (10:40 am)
You can expose this function to the script :)
#2
12/12/2003 (10:40 am)
Check this resource out. You should be able to determine the function and how it is used via script

-Ron
#3
12/12/2003 (10:47 am)
Ron the only trouble there, is he needs to cast a ray into an object to get the point.

I dont know if that is the case, but if it isnt then that will not work.
#4
12/12/2003 (1:47 pm)
Thanks Guys. Ill see what I can do.