code logs -> 2020 -> Fri, 12 Jun 2020< code.20200611.log - code.20200613.log >
--- Log opened Fri Jun 12 00:00:03 2020
00:00 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection reset by peer]
00:00 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
00:09
<~Vornicus>
1. in up right, as unit vectors, given yaw and pitch. 2. scale up and right according to zoom value and aspect ratio. 3. scale in according to the top and bottom of the world bounding box, so that (world_from_camera * (0,0,0) - world_from_camera * (0,0,1)).z = the height of the world bounding box
00:15
<~Vornicus>
4. finally, place the camera, such that camera_from_world * (look_point - up/2 - right/2) = (0,0,something)
00:18 Kindamoody is now known as Kindamoody[zZz]
00:19
<~Vornicus>
4a. oh and camera.z itself is world_height
00:23
<~Vornicus>
3 I guess is to say that in.z = world_height
00:27
<~Vornicus>
wait that's wrong
00:27
<~Vornicus>
(world_from_camera * (0,0,0) - world_from_camera * (0,1,1)).z
00:41
<~Vornicus>
unit_right = (-cos(yaw), sin(yaw), 0); unit_up = (sin(pitch) * sin(yaw), sin(pitch) * cos(yaw), cos(pitch)); unit_in = (cos(pitch) * sin(yaw), sin(pitch) * cos(yaw), -sin(pitch)). up = unit_up * zoom; right = unit_right * zoom * aspect; in = unit_in * (up.z + world_height) / unit_in.z.
00:43 mac [macdjord@Nightstar-rslo4b.mc.videotron.ca] has joined #code
00:43 mode/#code [+o mac] by ChanServ
00:45 macdjord [macdjord@Nightstar-rslo4b.mc.videotron.ca] has quit [Operation timed out]
01:20
<~Vornicus>
and finally: focus_plane_corner = look_at - up/2 - right/2; camera_location = focus_plane_corner + (unit_in * (focus_plane_corner.z - world_height) / unit_in.z)
01:20
<~Vornicus>
way less awful when I'm not trying to one-shot it.
01:52 * Vornicus makes some minor corrections because of typos and sign errors, throws some numbers through the resulting matrix and its inverse, is satisfied with the results.
02:16 jeroud [sid10043@Nightstar-ks9.9ff.184.192.IP] has quit [Ping timeout: 121 seconds]
02:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
02:22 jeroud [sid10043@Nightstar-h2b233.irccloud.com] has joined #code
02:22 mode/#code [+ao jeroud jeroud] by ChanServ
02:41 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection closed]
02:44 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
03:28 Degi [Degi@Nightstar-36u11j.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
03:29 Degi [Degi@Nightstar-f0ia0d.dyn.telefonica.de] has joined #code
04:16 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [[NS] Quit: bbl]
04:18 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
04:18 mode/#code [+o Alek] by ChanServ
04:56 celticminstrel [celticminst@Nightstar-ovl74f.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
04:57 celticminstrel [celticminst@Nightstar-ovl74f.dsl.bell.ca] has joined #code
04:57 mode/#code [+o celticminstrel] by ChanServ
05:00 celticminstrel [celticminst@Nightstar-ovl74f.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:02 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds]
05:05 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
05:05 mode/#code [+o Alek] by ChanServ
05:15 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds]
05:18 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
05:18 mode/#code [+o Alek] by ChanServ
05:54 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [[NS] Quit: grr]
05:56 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
05:56 mode/#code [+o Alek] by ChanServ
06:10 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
06:10 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
06:10 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
07:01 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has joined #code
07:01 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
08:48
<~Vorntastic>
--there's a reason the thing I looked at trying to figure out camera used -1 and 1 as the bounding box for the camera frustum: so in perspective cameras, the forward vector is the actual direction that the camera points at, so the object looked at is at the center and not the corner. Okay, have to adjust for that because otherwise spluh
08:49
<&McMartin>
At least it's a pretty good reason
09:31 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection closed]
09:31 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
09:39 Kindamoody[zZz] is now known as Kindamoody
09:45
<~Vorntastic>
Yeah it occurred to me as I was going to sleep and I felt that it was obvious that this was the point
10:24 Kindamoody is now known as Kindamoody|afk
10:40 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Ping timeout: 121 seconds]
10:44 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
10:44 mode/#code [+o Alek] by ChanServ
11:43 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds]
11:44
<&Reiver>
Okay, the Itch Bundle is just about worth it just for the Hex Kit. Not something I expected to admit.
11:44
<&Reiver>
I suspect Vorn could have fun with it, along with anyone wanting to do an Explore-o-RPG.
11:45 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has quit [Operation timed out]
11:50 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code
11:50 mode/#code [+ao McMartin McMartin] by ChanServ
11:50 catalyst [catalyst@Nightstar-g3phuj.dab.02.net] has joined #code
11:53
<~Vorntastic>
I shall examine
12:00
<&Reiver>
It's nothing /fancy/
12:01
<&Reiver>
But 'have a hexgrid map generator with graphical layers and ability to automatically randomise tiles within a set (eg, 'forest trees')' seems... valuable
12:02 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has quit [Connection closed]
13:57 catalyst` [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
14:06
< Kizor>
I'm trying to learn Eclipse. I'm failing the Hello World tutorial.
14:10
< Kizor>
Can someone please tell me why I can create a class, write a bunch of song lyrics from the Finnish translation of The Sound Of Music, save it, run it, and get not a single error, just a polite indication that the application has terminated? https://i.imgur.com/pJaNwr5.png
14:14
< Kizor>
Whereas when I make another class, identical - to my amateur eyes - save for the name, copy-paste in the same code, and run that, /then/ I get the proper errors and not only that, the GUI adds in the red xes that indicate errors in the workspace? https://i.imgur.com/Nx6DWIK.png
14:15
< Kizor>
This is going to be something pathetically easy, something so basic that the tutorial writer never thought of having to mention that, and I'll have humiliated myself. It pisses me off.
14:18 celticminstrel [celticminst@Nightstar-ovl74f.dsl.bell.ca] has joined #code
14:19 mode/#code [+o celticminstrel] by ChanServ
14:32
<~Vorntastic>
This is... A thing with java
14:32
<~Vorntastic>
The only class in a file that counts is the one that's named the same as the file
14:33
<~Vorntastic>
Or something; that's how it was back in the day, though I never actually pushed that wall
14:34
< Kizor>
I tried changing the class names to match the file names. No luck.
14:35
< Kizor>
However, when I tried to close the offending class, Eclipse informed me of an identical one being open elsewhere, though heck if I know where.
14:36
< Kizor>
I shut down everything and reopened the offending class, and now it works perfectly.
14:36
< Kizor>
It's just
14:37
< Kizor>
How do people know all this? How do you cram all the information about program minutiae and language quirks and teeny-tiny little details that'll bring the whole thing down into your head, and keep it there for long enough to do something useful?
14:45
< Kizor>
There's a tab called "Declaration" in the bottom of those screenshots. I can't get it to show up again but I think that's where there was a different copy of the same class with no statements in it. What even is that, and how do I avoid in the future?
14:46
< Kizor>
This has gone from a legitimate technical question to dwelling in self-pity, so I'll go eat. However, I'll note that we can't blame people for not wanting to learn computers if this is what computers make them feel all the time.
15:00 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:00 mode/#code [+qo Vornicus Vornicus] by ChanServ
15:08
<~Vornicus>
ok I was poking at that but didn't finish let's see here.
15:14
<~Vornicus>
Okay! Matrix managed.
15:38
< catalyst>
nyaa
15:38
< catalyst>
my library had 101 downloads yesterday :o
15:39
< catalyst>
Kizor: learning what is relevant and programming to reduce the relevant set of things in any given context is a big part of being an effective coder
15:40
< catalyst>
some of it is practise with syntax to make it subconscious
15:40
< catalyst>
some of it is figuring out how to subdivide problems into smaller problems and solve those, then solve the bigger problems in terms of those
15:41
< catalyst>
in some sense the main through skill in programming as an engineering discipline is logistical management of data
15:42 * Vornicus hatalyst
15:59 * catalyst behatted
16:17 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
16:41 Vorntastic [uid293981@Nightstar-ks9.9ff.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
17:25 catalyst_ [catalyst@Nightstar-1esqbi.dab.02.net] has joined #code
17:26 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:27 catalyst [catalyst@Nightstar-g3phuj.dab.02.net] has quit [Ping timeout: 121 seconds]
18:54 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [Connection reset by peer]
18:54 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
18:55 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
19:04 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
19:04 mode/#code [+o Alek] by ChanServ
19:59 Kindamoody|afk is now known as Kindamoody
20:50 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code
20:51 mode/#code [+ao McMartin McMartin] by ChanServ
21:28 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
21:28 mode/#code [+qo Vornicus Vornicus] by ChanServ
22:07 Kindamoody is now known as Kindamoody[zZz]
23:09 Omega [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
23:09 mode/#code [+o Omega] by ChanServ
23:09 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has quit [NickServ (RECOVER command used by Omega)]
23:09 Omega is now known as Alek
23:32 Pinkhair [user1@Nightstar-g7hdo5.dyn.optonline.net] has quit [Connection reset by peer]
23:32 Pink [user1@Nightstar-g7hdo5.dyn.optonline.net] has joined #code
23:55 catalyst [catalyst@Nightstar-vfrq2q.dab.02.net] has joined #code
23:57 catalyst_ [catalyst@Nightstar-1esqbi.dab.02.net] has quit [Ping timeout: 121 seconds]
--- Log closed Sat Jun 13 00:00:04 2020
code logs -> 2020 -> Fri, 12 Jun 2020< code.20200611.log - code.20200613.log >

[ Latest log file ]