Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] XZY first is for what ? model position ?

[DiscordArchive] XZY first is for what ? model position ?

[DiscordArchive] XZY first is for what ? model position ?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
11-13-2022, 09:28 PM
#11
Archived author: Foe • Posted: 2022-11-13T21:28:16.709000+00:00
Original source

yep
rektbyfaith
11-13-2022, 09:28 PM #11

Archived author: Foe • Posted: 2022-11-13T21:28:16.709000+00:00
Original source

yep

rektbyfaith
Administrator
0
11-13-2022, 09:28 PM
#12
Archived author: Intemporel • Posted: 2022-11-13T21:28:23.920000+00:00
Original source

But wait
rektbyfaith
11-13-2022, 09:28 PM #12

Archived author: Intemporel • Posted: 2022-11-13T21:28:23.920000+00:00
Original source

But wait

rektbyfaith
Administrator
0
11-13-2022, 09:28 PM
#13
Archived author: Intemporel • Posted: 2022-11-13T21:28:27.434000+00:00
Original source

There is a problem
rektbyfaith
11-13-2022, 09:28 PM #13

Archived author: Intemporel • Posted: 2022-11-13T21:28:27.434000+00:00
Original source

There is a problem

rektbyfaith
Administrator
0
11-13-2022, 09:28 PM
#14
Archived author: Intemporel • Posted: 2022-11-13T21:28:44.889000+00:00
Original source

QMouseEvent->pos() is (0;0) at top left not bottom left
rektbyfaith
11-13-2022, 09:28 PM #14

Archived author: Intemporel • Posted: 2022-11-13T21:28:44.889000+00:00
Original source

QMouseEvent->pos() is (0;0) at top left not bottom left

rektbyfaith
Administrator
0
11-13-2022, 09:28 PM
#15
Archived author: Intemporel • Posted: 2022-11-13T21:28:56.386000+00:00
Original source

you must reverse the screen pos y i think
rektbyfaith
11-13-2022, 09:28 PM #15

Archived author: Intemporel • Posted: 2022-11-13T21:28:56.386000+00:00
Original source

you must reverse the screen pos y i think

rektbyfaith
Administrator
0
11-13-2022, 09:29 PM
#16
Archived author: bandysc • Posted: 2022-11-13T21:29:02.124000+00:00
Original source

yup
rektbyfaith
11-13-2022, 09:29 PM #16

Archived author: bandysc • Posted: 2022-11-13T21:29:02.124000+00:00
Original source

yup

rektbyfaith
Administrator
0
11-13-2022, 09:29 PM
#17
Archived author: Kaev • Posted: 2022-11-13T21:29:09.370000+00:00
Original source

yeah bandysc mentioned that somewhere above
rektbyfaith
11-13-2022, 09:29 PM #17

Archived author: Kaev • Posted: 2022-11-13T21:29:09.370000+00:00
Original source

yeah bandysc mentioned that somewhere above

rektbyfaith
Administrator
0
11-13-2022, 09:29 PM
#18
Archived author: Intemporel • Posted: 2022-11-13T21:29:35.592000+00:00
Original source

after that, this is looking good
rektbyfaith
11-13-2022, 09:29 PM #18

Archived author: Intemporel • Posted: 2022-11-13T21:29:35.592000+00:00
Original source

after that, this is looking good

rektbyfaith
Administrator
0
11-13-2022, 09:32 PM
#19
Archived author: Kaev • Posted: 2022-11-13T21:32:01.393000+00:00
Original source

when do i need to do screenPos.y = 1 - screenPos.y;?
This is my calculation rn:
```c++
glm::mat4 VPmatrix = projection * view;
glm::vec4 screenPos = VPmatrix * glm::vec4(instance->pos, 1.0f);
screenPos.x /= screenPos.w;
screenPos.y /= screenPos.w;
screenPos.z /= screenPos.w;

screenPos.x = (screenPos.x + 1.0f) / 2.0f;
screenPos.y = (screenPos.y + 1.0f) / 2.0f;
screenPos.z = (screenPos.z + 1.0f) / 2.0f;

screenPos.x *= viewportWidth;
screenPos.y *= viewportHeight;
```
rektbyfaith
11-13-2022, 09:32 PM #19

Archived author: Kaev • Posted: 2022-11-13T21:32:01.393000+00:00
Original source

when do i need to do screenPos.y = 1 - screenPos.y;?
This is my calculation rn:
```c++
glm::mat4 VPmatrix = projection * view;
glm::vec4 screenPos = VPmatrix * glm::vec4(instance->pos, 1.0f);
screenPos.x /= screenPos.w;
screenPos.y /= screenPos.w;
screenPos.z /= screenPos.w;

screenPos.x = (screenPos.x + 1.0f) / 2.0f;
screenPos.y = (screenPos.y + 1.0f) / 2.0f;
screenPos.z = (screenPos.z + 1.0f) / 2.0f;

screenPos.x *= viewportWidth;
screenPos.y *= viewportHeight;
```

rektbyfaith
Administrator
0
11-13-2022, 09:32 PM
#20
Archived author: Foe • Posted: 2022-11-13T21:32:40.836000+00:00
Original source

screenPos.y = (screenPos.y + 1.0f) / 2.0f; after this
rektbyfaith
11-13-2022, 09:32 PM #20

Archived author: Foe • Posted: 2022-11-13T21:32:40.836000+00:00
Original source

screenPos.y = (screenPos.y + 1.0f) / 2.0f; after this

Pages (3): Previous 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)