Report any bugs here and we'll post fixes
Moderators: Sascha Willems, Thomas
by Esharc » Tue Apr 05, 2022 8:20 am
Hi Julio,
Why is the m_elevationMap limited to elevation values of ndInt16? I do not get enough precision from the height field with 16 bit integer.
If I use a vertical scale of 1.0/100.0, this only gives me 2 decimal places precision on a float value that gets converted to an int, and then my heights are limited to +-327.68.
Will it be possible to add a 32 bit integer instead?
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
by Julio Jerez » Tue Apr 05, 2022 8:40 am
It is an interger instead of a float because for traditional reasons. the float32 could be a 64 bit when compiling in double.
Now we have a type real which is a 32 float in all modes. I can change it to a real.
That will removed the need for vertical scale as well.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Esharc » Tue Apr 05, 2022 9:40 am
Thank you
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
by Julio Jerez » Tue Apr 05, 2022 10:15 am
Sync.
-
Julio Jerez
- Moderator
-
- Posts: 12249
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by Esharc » Tue Apr 05, 2022 10:51 am
Thank you for the quick fix. That solved my problem.
-
Esharc
-
- Posts: 120
- Joined: Tue Jan 10, 2017 5:23 am
- Location: South Africa
Return to Bugs and Fixes
Who is online
Users browsing this forum: No registered users and 2 guests