WorldToScreen 함수보니까
class Function Local.WorldToScreen(VectorWorld : D3DXVECTOR3; Out Screen : D3DXVECTOR3) : BOOL;
Var
ProjectionRead, ViewRead : Array [0..15] of Single;
Projection, View, World : TD3DXMatrix;
Viewport_ : TD3DViewport9;
Begin
Try
Result := False;
ReadProcessMemory(mem.GetHandle, Pointer(Local_View - $80), @ViewRead, SizeOf(ViewRead), PNativeUInt(nil)^);
View := _D3DMATRIX(ViewRead);
ReadProcessMemory(mem.GetHandle, Pointer(Local_View - $40), @ProjectionRead, SizeOf(ProjectionRead), PNativeUInt(nil)^);
Projection := _D3DMATRIX(ProjectionRead);
ReadProcessMemory(mem.GetHandle, Pointer(Local_View), @Viewport_, SizeOf(Viewport_), PNativeUInt(nil)^);
D3DXMatrixIdentity(World);
D3DXVec3Project(Screen, VectorWorld, Viewport_, Projection, View, World);
if Screen.Z < 1 then
Result := True;
Except
End;
End;
월드내에 캐릭터 좌표를 화면 좌표로 변환할려면 이 함수를 거쳐야한다고 하는데
변환할때 필요한 Viewport_, Projection, View, World 이값을 얻는방법 Local_View < 이 값을 찾는방법좀 알려주세요 화면상으로 내 카메라 X,Y 조절 가능한 앵글 값인지 무슨값인지 영문을 모르겠는데 이런질문 해도되는진 모르겠는데 혹시 활정대상이면 글 내릴테니 알려주세요
제목 | 작성자 | 작성일 | 조회 | |
---|---|---|---|---|
공지 | 게시판 이용 안내+62 | 10-20 | 6267 | |
8545 | 19:47 | 20 | ||
8544 | 10-22 | 115 | ||
8543 | 10-22 | 47 | ||
8542 | 10-22 | 60 | ||
8541 | 10-22 | 122 | ||
8540 | 10-21 | 64 | ||
8539 | 10-21 | 98 | ||
8538 | 랭커용 판매+3 | 10-20 | 292 | |
8537 | 10-20 | 123 | ||
8536 | 10-20 | 69 | ||
8535 | 비매 피@@+3 | 10-20 | 227 | |
8534 | 비매샵 피아형오+3 | 10-20 | 261 | |
8533 | 비매 피@+2 | 10-19 | 183 | |
8532 | 10-19 | 105 | ||
8531 | 유도삽니다+3 | 10-18 | 156 | |
8530 | 10-18 | 78 | ||
8529 | 10-18 | 133 | ||
8528 | 오@ 바@ 판매+2 | 10-18 | 208 | |
8527 | 10-18 | 69 |
댓글3
[view_angle]
48 8B 0D BB 7C 7C 00 48 8B 05 6C 9A 70 00 48 8B 89 E8
cshell + 1718530
F5086E
11좀 걸어주세연