raptop changed the topic of #principia to: READ THE FAQ: http://goo.gl/gMZF9H; The current version is Galileo. We currently target 1.5.1, 1.6.1, 1.7.x, 1.8.1, and 1.9.1. <scott_manley> anyone that doubts the wisdom of retrograde bop needs to get the hell out | https://xkcd.com/323/ | <egg> calculating the influence of lamont on Pluto is a bit silly… | <egg> also 4e16 m * 2^-52 is uncomfortably large
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #principia
<_whitenotifier-9244>
[Principia] amicloud forked the repository - https://git.io/JUB4r
Jesin has joined #principia
egg|laptop|egg has quit [Remote host closed the connection]
<discord->
Standecco. — @egg I need to get the color of a pixel from lat/lon coordinates, and from your pluto texture orientation info and a bit of interpolation I gathered this:
<discord->
Standecco. — ``` // GetPixelColor(int x, int y) returns the color of the pixel of coordinates (x,y),
<discord->
Standecco. — // where (0,0) identifies the bottom right corner and (width, height) matches the top left corner;
<discord->
Standecco. — // KSP maps are both horizontally and vertically flipped, and longitude has a 1/4 width offset;
<discord->
Standecco. — // therefore:
<discord->
Standecco. — // latitude = +90 => y = 0
<discord->
Standecco. — // latitude = 0 => y = height/2
<discord->
Standecco. — // latitude = -90 => y = height
<discord->
Standecco. — @egg I need to get the color of a pixel from lat/lon coordinates, and from your pluto texture orientation info and a bit of interpolation I gathered this:
<discord->
Standecco. — ``` // GetPixelColor(int x, int y) returns the color of the pixel of coordinates (x,y),
<discord->
Standecco. — // where (0,0) identifies the bottom right corner and (width, height) matches the top left corner;
<discord->
Standecco. — // KSP maps are both horizontally and vertically flipped, and longitude has a 1/4 width offset;
<discord->
Standecco. — // therefore:
<discord->
Standecco. — // latitude = +90 => y = 0
<discord->
Standecco. — // latitude = 0 => y = height/2
<discord->
Standecco. — // latitude = -90 => y = height
<discord->
Standecco. — nice, have fun with the pigeons! (and also the other stuff)
raptop changed the topic of #principia to: READ THE FAQ: http://goo.gl/gMZF9H; The current version is Galois. We currently target 1.8.1, and 1.9.1. <scott_manley> anyone that doubts the wisdom of retrograde bop needs to get the hell out | https://xkcd.com/323/ | <egg> calculating the influence of lamont on Pluto is a bit silly… | <egg> also 4e16 m * 2^-52 is uncomfortably large
<discord->
Standecco. — for posterity, this is the code that works:
<discord->
Standecco. — ```Cs
<discord->
Standecco. — // GetPixelColor(int x, int y) returns the color of the pixel of coordinates (x,y),
<discord->
Standecco. — // where (0,0) identifies the bottom right corner and (width, height) matches the top left corner;
<discord->
Standecco. — // KSP maps are both horizontally and vertically flipped, and longitude has a 1/4 width offset;
<discord->
Standecco. — // maps are flipped vertically again when stored in MAPSO;
<discord->
Standecco. — // therefore:
<discord->
Standecco. — // latitude = +90 => y = height
<discord->
Standecco. — // latitude = 0 => y = height/2
<discord->
Standecco. — // latitude = -90 => y = 0
<discord->
egg. — @Standecco saw a seagull eating a pigeon so I guess that is one way to have fun with the pigeons
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #principia
<discord->
Kitten Dispenser. — does upgrading to the latest version of Principia necessitate a restart?
<discord->
egg. — Of KSP? Yes. Of your computer? No. Of your game? No, we are save-compatible from one version to the next, and we mention it in the change log when we drop compatibility with truly ancient versions. Of the universe? Not that I kn—
<raptop>
You fool, you've doomed us all!
<discord->
lpg. — a new principia release obviously necessitates a restart of egg