CLEO Help Need get3DCoordsFrom2DScreenXY

CLEO related
Status
Not open for further replies.

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
I can only found getScreenXYFrom3DCoords, is there such a thing which can allow me to convert 2DScreenXY to 3D Coordinates of the game, even if there is no snippet or code, just tell me how would I convert or what to do to convert.

and, no, I havent used search button.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
0B55: convert_3D_coords 1@ 2@ 3@ to_screen 4@ 5@
0B8F: convert_screen_coords 1@ 2@ depth 3@ to_world_3d 4@ 5@ 6@

cpp impl which you can adapt to cleo if you don't want to use sf.
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
springfield said:
0B55: convert_3D_coords 1@ 2@ 3@ to_screen 4@ 5@
0B8F: convert_screen_coords 1@ 2@ depth 3@ to_world_3d 4@ 5@ 6@

cpp impl which you can adapt to cleo if you don't want to use sf.

Woah, thanks.
never knew such a opcode existed, next time I'll try searching in opcode list too.


anyways whats about the "depth" parameter in 0B8F: convert_screen_coords 1@ 2@ depth 3@ to_world_3d 4@ 5@ 6@
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
0x32789 said:
anyways whats about the "depth" parameter in 0B8F: convert_screen_coords 1@ 2@ depth 3@ to_world_3d 4@ 5@ 6@

Sf wiki only says it's a float value, I guess it has something to do with the angle
 
Status
Not open for further replies.
Top