|
|
I was working on creating a displacement map for a globe, using a function to
vary the radius of a spherical isosurface.
I got bogged down in a bit of math to convert x,y,z into a latitude/longitude
map in the 0-1 range, but then when I thought I had that fixed, I started
getting:
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:15:58.834] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:18:28.307] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)
Segmentation fault (core dumped)
oem@oem-Inspiron-N5110 ~/Desktop $ qtpovray
[17:27:29.126] WARN QTextCursor::setPosition: Position '3012' out of range
((null):0)
I posted the code in the text files section:
http://news.povray.org/povray.text.scene-files/message/%3Cweb.5f0a367094a0d6d2fb0b41570%40news.povray.org%3E/#%3Cweb.5f
0a367094a0d6d2fb0b41570%40news.povray.org%3E
You can likely use any image map you have lying around.
I used:
https://holtz.org/Library/Images/Natural%20Science/Astronomy/Earth/Maps/NOAA%20Globe%20topo%20shaded.gif
Perhaps someone can play with it a bit and see what triggers the core dump, and
maybe also come up with some better equations for converting cartesian to lat /
long and then to 0-1
Post a reply to this message
|
|
|
|
I have tracked it down to the acos term in the Lat function.
#declare E = 0.000001;
acos (Y/Length(X, 0, Z)) crashes
acos (Y/Length(X, E, Z)) crashes
acos (Y/Length(X, 1, Z)) works
Post a reply to this message
|
|