Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Does that look right?

[DiscordArchive] Does that look right?

[DiscordArchive] Does that look right?

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
11-13-2022, 08:47 PM
#1
Archived author: Kaev • Posted: 2022-11-13T20:47:45.056000+00:00
Original source

Does that look right?
rektbyfaith
11-13-2022, 08:47 PM #1

Archived author: Kaev • Posted: 2022-11-13T20:47:45.056000+00:00
Original source

Does that look right?

rektbyfaith
Administrator
0
11-13-2022, 08:48 PM
#2
Archived author: Kaev • Posted: 2022-11-13T20:48:17.011000+00:00
Original source

```
224496 - (World.cpp:3014): [Error] x: 30225.58789 z: 31737.96875 y: -0.00000
224496 - (World.cpp:3015): [Error] screen pos x: -0.90100 z: 0.85718 y: -0.97335
```
[Image: image.png?ex=690c60d0&is=690b0f50&hm=7e7...4ccfc5df9&]
rektbyfaith
11-13-2022, 08:48 PM #2

Archived author: Kaev • Posted: 2022-11-13T20:48:17.011000+00:00
Original source

```
224496 - (World.cpp:3014): [Error] x: 30225.58789 z: 31737.96875 y: -0.00000
224496 - (World.cpp:3015): [Error] screen pos x: -0.90100 z: 0.85718 y: -0.97335
```
[Image: image.png?ex=690c60d0&is=690b0f50&hm=7e7...4ccfc5df9&]

rektbyfaith
Administrator
0
11-13-2022, 08:48 PM
#3
Archived author: Foe • Posted: 2022-11-13T20:48:22.424000+00:00
Original source

The horrors of blizz interface coordinates
rektbyfaith
11-13-2022, 08:48 PM #3

Archived author: Foe • Posted: 2022-11-13T20:48:22.424000+00:00
Original source

The horrors of blizz interface coordinates

rektbyfaith
Administrator
0
11-13-2022, 08:54 PM
#4
Archived author: Pursche • Posted: 2022-11-13T20:54:39.970000+00:00
Original source

Yes I think this looks more or less correct, at least on my small phone screen
rektbyfaith
11-13-2022, 08:54 PM #4

Archived author: Pursche • Posted: 2022-11-13T20:54:39.970000+00:00
Original source

Yes I think this looks more or less correct, at least on my small phone screen

rektbyfaith
Administrator
0
11-13-2022, 08:55 PM
#5
Archived author: Kaev • Posted: 2022-11-13T20:55:03.270000+00:00
Original source

nice
rektbyfaith
11-13-2022, 08:55 PM #5

Archived author: Kaev • Posted: 2022-11-13T20:55:03.270000+00:00
Original source

nice

rektbyfaith
Administrator
0
11-13-2022, 08:55 PM
#6
Archived author: Pursche • Posted: 2022-11-13T20:55:06.440000+00:00
Original source

So now we have a screenpos between -1 and 1 on both axises.
rektbyfaith
11-13-2022, 08:55 PM #6

Archived author: Pursche • Posted: 2022-11-13T20:55:06.440000+00:00
Original source

So now we have a screenpos between -1 and 1 on both axises.

rektbyfaith
Administrator
0
11-13-2022, 08:56 PM
#7
Archived author: Pursche • Posted: 2022-11-13T20:56:07.648000+00:00
Original source

We do (x+1.0f)/2.0f to convert it to 0 to 1, and then we want to multiply it with the resolution of the viewport to get the pixel coordinate
rektbyfaith
11-13-2022, 08:56 PM #7

Archived author: Pursche • Posted: 2022-11-13T20:56:07.648000+00:00
Original source

We do (x+1.0f)/2.0f to convert it to 0 to 1, and then we want to multiply it with the resolution of the viewport to get the pixel coordinate

rektbyfaith
Administrator
0
11-13-2022, 08:57 PM
#8
Archived author: Kaev • Posted: 2022-11-13T20:57:35.401000+00:00
Original source

screenPos.x = (screenPos.x + 1.0f) / 2.0f;
screenPos.y = (screenPos.y + 1.0f) / 2.0f;
screenPos.z = (screenPos.z + 1.0f) / 2.0f;
like that?
rektbyfaith
11-13-2022, 08:57 PM #8

Archived author: Kaev • Posted: 2022-11-13T20:57:35.401000+00:00
Original source

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

rektbyfaith
Administrator
0
11-13-2022, 08:59 PM
#9
Archived author: Pursche • Posted: 2022-11-13T20:59:12.709000+00:00
Original source

Yes, that converts from -1 .. 1 to 0 .. 1.
rektbyfaith
11-13-2022, 08:59 PM #9

Archived author: Pursche • Posted: 2022-11-13T20:59:12.709000+00:00
Original source

Yes, that converts from -1 .. 1 to 0 .. 1.

rektbyfaith
Administrator
0
11-13-2022, 08:59 PM
#10
Archived author: Pursche • Posted: 2022-11-13T20:59:13.524000+00:00
Original source

Then multiply by the resolution of the viewport, for example 1920x1080
rektbyfaith
11-13-2022, 08:59 PM #10

Archived author: Pursche • Posted: 2022-11-13T20:59:13.524000+00:00
Original source

Then multiply by the resolution of the viewport, for example 1920x1080

Pages (3): 1 2 3 Next
Recently Browsing
 
Recently Browsing