*** tpb has joined #tp | 00:00 | |
*** ChanServ sets mode: +o tpb | 00:00 | |
*** bddebian has quit IRC | 00:28 | |
* llnz wander off | 00:31 | |
llnz | later all | 00:31 |
---|---|---|
*** llnz has quit IRC | 00:31 | |
*** JLafont has quit IRC | 00:47 | |
*** tansell__ has joined #tp | 01:30 | |
*** tansell__ is now known as tansell | 01:37 | |
*** Alklomion has joined #tp | 01:41 | |
Alklomion | hey mithro: are you busy? | 01:42 |
mithro | Alklomion: i'm around | 01:46 |
Alklomion | mithro: do you know of any methods for translating the coordinate on a screen? if that makes sense | 01:47 |
*** tansell_ has quit IRC | 01:47 | |
mithro | Alklomion: what do you mean? | 01:47 |
Alklomion | essentially, if the map is currently between 50 and 150, the coordinate would be drawn at 25 if the real coordinate was 75 | 01:47 |
mithro | it's pretty simple maths | 01:48 |
Alklomion | but 0 to 100, it would be 75 | 01:48 |
mithro | hrm? | 01:49 |
Alklomion | not sure what I mean still? | 01:50 |
mithro | yes | 01:50 |
mithro | draw a picture and upload it somewhere :) | 01:50 |
Alklomion | As the starmap moves, the coordinates need to be translated, I'm not aware of how to work out they should be translated. | 01:51 |
mithro | yes | 01:51 |
mithro | so you have an "offset" | 01:51 |
mithro | IE you might be at | 01:51 |
mithro | +20, -10 | 01:51 |
mithro | and you just add them to the coordinates | 01:51 |
Alklomion | aah | 01:52 |
mithro | so 50, 10 becomes 80, 0 | 01:52 |
*** Greywhind has joined #tp | 01:52 | |
mithro | hey Greywhind | 01:53 |
Alklomion | So for every object that i'm planning to draw to a map, i'd need to assign them an x,y offset value? | 01:53 |
Greywhind | hi mithro | 01:53 |
Greywhind | i'm about to go to sleep | 01:53 |
mithro | no | 01:53 |
mithro | you have a global offset for the view port | 01:53 |
mithro | which you add to the coordinates as you draw them | 01:54 |
Alklomion | ok, because 1 dimension is easy. If we had a line and our viewport is from 0 to 100 | 02:00 |
Alklomion | our offset would be 0, and if it was 50 to 150, the offset would now be 50? or -50 | 02:01 |
*** tansell has quit IRC | 02:03 | |
*** tansell has joined #tp | 02:05 | |
mithro | Alklomion: -50 | 02:09 |
mithro | 50+-50 = 0 | 02:09 |
mithro | if our viewport was 21 to 121, our offset would be -21 | 02:10 |
Alklomion | cheers for that mithro: i now have white square planets! | 02:20 |
*** nash has quit IRC | 02:31 | |
mithro | yay! | 02:36 |
*** DTRemenak|RDP has joined #tp | 03:21 | |
*** DTRemenak has quit IRC | 03:39 | |
*** tuna has quit IRC | 04:08 | |
mithro | Alklomion: so where are you at? | 04:11 |
Alklomion | Well, i've started the star map, it has navigation and paints some pretend planets that I created | 04:13 |
mithro | okay cool | 04:13 |
mithro | put you are still stuck on the pipeline connection? | 04:13 |
mithro | you going to be around on the weekend? | 04:13 |
Alklomion | i should be around | 04:23 |
Alklomion | and i'm still stuck on pipeline connection | 04:23 |
*** mithro has quit IRC | 04:33 | |
*** Alklomion has quit IRC | 04:54 | |
*** zzorn has quit IRC | 07:11 | |
*** JLP has quit IRC | 07:50 | |
*** bddebian has joined #tp | 09:45 | |
bddebian | heya | 09:46 |
*** JLafont has joined #tp | 10:14 | |
*** Greywhind has quit IRC | 11:14 | |
*** Erroneous has joined #tp | 12:36 | |
*** Erroneous has quit IRC | 12:44 | |
*** Erroneous has joined #tp | 12:49 | |
*** Greywhind has joined #tp | 13:23 | |
*** Greywhind has quit IRC | 14:05 | |
*** zzorn has joined #tp | 14:15 | |
*** JLafont has quit IRC | 14:52 | |
*** JLafont has joined #tp | 14:55 | |
*** bddebian has quit IRC | 17:00 | |
*** Greywhind has joined #tp | 18:14 | |
*** Erroneous has quit IRC | 18:19 | |
*** bddebian has joined #tp | 21:10 | |
*** Greywhind has quit IRC | 23:57 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!