« first day (1231 days earlier)      last day (3731 days later) » 

user3010322
6:00 PM
I've done goofed something up. <_>
 
@R.MartinhoFernandes Ooh, I'm just reading a Kafka story about that right now…
 
@Borgleader Would everything else be right?
 
user3010322
 
user3010322
The direction is negative. :c
 
Oh. You're not using matrices.
 
user3010322
6:01 PM
Yeah, no matrixes just yet...
 
user3010322
matrices*
 
try swapping forward and right see what happens :v
 
@ThePhD position.unnormalized_direction_to(target); would be much clearer. Just a thought.
 
I'd think target - position is clear enough :P
 
user3010322
I had target - position before, but uh.
 
user3010322
6:02 PM
Was just making sure I wasn't crazy.
 
user3010322
Hm.
 
What is forwardisup?
 
check if camera is pointing up I guess. which is then never used :v
 
user3010322
It's a check to test whether the forward vector is equivalent to the reference up direction of the camera (i.e., you're staring straight down 0, 1, 0 or straight up 0, -1, 0). I think I was using the test for, uh, my regular 3d camera. And just never used it here fully. I could delete it, since the test case I'm working on right now has no such impact.
 
user3010322
(if the up vector == forward vector, the scene would go entirely black when using a traditional projection matrix).
 
user3010322
6:05 PM
( and the regular graphics pipeline ).
 
blargh, why are there suddenly so many things that are way more interesting than writing this stupid paper :E
 
Seems Borgleader was right, btw.
 
user3010322
My cross products are backwards?
 
user3010322
ijk, i = right, j = up, k = forward... I thought I had the right relationships?
 
@ThePhD but you're crossing forward, right :D
 
6:07 PM
Now what? My Lounge chat font has turned into 'dunno, but very, very small'.
 
user3010322
 
user3010322
Lol, fuck
 
user3010322
Better!
 
Eeww.. matrix/vector thingies.
 
6:09 PM
isn't this like the 5th or so time you've messed up cross product?
 
user3010322
I got it right, I swear!
 
@Rapptz lol
@MartinJames Zoom?
 
user3010322
@R.MartinhoFernandes I... uh. I can't truly read that. I'm sorry. :c
 
user3010322
Oh wait
 
@ThePhD Dotted circle is a common notation for a vector point towards the reader, and crossed circle for a vector pointing away from the reader.
 
user3010322
6:10 PM
You're just showing right and forward and up as compared to up.
 
@R.MartinhoFernandes I've never ever seen that before.
 
Yeah, but you guys are allergic to mathematics.
 
user3010322
I remember it from calc. The letters just confused me for a bit.
 
(Physics uses this too)
 
@DeadMG o.o really? ive learned that in high school =/
and ive used it in physics in CEGEP/uni afterwards
 
6:11 PM
@R.MartinhoFernandes Yeah, OK, but who infected my font in the first place. If they were obi-wan pixel, I would suspect robot attack.
 
@ThePhD Oh, sorry for the cursive.
 
@DeadMG If you had seen it but didn't recognize it, would you remember it now? ;)
I saw that notation just last week in my GF's chemistry book. Was confusing since I wasn't expecting to see it on a molecule stick diagram, but there it was.
 
user3010322
@R.MartinhoFernandes It's okay, I got it after a seecond.
 
The dotted circle is easy to remember as pointing towards you if you see it as a conic arrowhead viewed from the top.
 
user3010322
Uhm, but checking by the basis vectors and that, I've... got them in the right direction?
 
user3010322
6:12 PM
Maybe my actual cross product math is just wrong.
 
:v
 
@ThePhD Have you tried Eigen? Saves a lot of headaches…
 
user3010322
template <typename TVec, typename T>
typename RVector<TVec, T, 3>::cross_t cross( const RVector<TVec, T, 3>& left, const RVector<TVec, T, 3>& right ) {
	typedef typename RVector<TVec, T, 3>::cross_t cross_t;
	cross_t r;
	r[ 0 ] = left[ 1 ] * right[ 2 ] - right[ 1 ] * left[ 2 ];
	r[ 1 ] = left[ 2 ] * right[ 0 ] - right[ 2 ] * left[ 0 ];
	r[ 2 ] = left[ 0 ] * right[ 1 ] - right[ 0 ] * left[ 1 ];
	return r;
}
 
@Potatoswatter NOOOOOO, dependencies!
@ThePhD Ew.
 
user3010322
cross_t = Vector3
 
6:14 PM
why does cross_t exist
 
user3010322
@Potatoswatter I haven't tried it just yet.
 
when will the type ever be different
 
user3010322
@Rapptz For when I generalize the algorithm later so I don't have implementations for 2, 3, and 7 sizes.
 
@Rapptz Because of his pretend-generic RVector template.
 
@ThePhD >_>
 
user3010322
6:14 PM
Hey, it's not pretend-generic.
 
user3010322
It works, except for this case. =[
 
That's what I said.
 
user1804599
Dat typedef.
 
user1804599
Just do typename RVector<TVec, T, 3>::cross_t r; :v
 
why am I the only one who doesn't use arrays for vectors
 
6:15 PM
@R.MartinhoFernandes Yeah, it's like crack.
 
:(
 
You'll ask yourself how you ever lived without it.
 
user3010322
I just have array-like notation to make it easier to access things in a loop...
 
user1804599
Write free x, y and z functions!
 
properties!
oh wait
 
6:16 PM
@rightfold namespace coordinate_axis {
 
If I recall the right hand rule correctly, right = normalize(cross(referenceup, forward)); is inverted and so is up = normalize(cross(forward, right));` I THINK.
 
@ThePhD k is up.
 
user1804599
@Potatoswatter inb4 using namespace.
 
user3010322
@R.MartinhoFernandes k is up in the math notiation?
 
user3010322
Well, tits.
 
6:17 PM
No.
k is up in the model you picked.
 
btw have you considered reading a refresher in linear algebra
 
k can be forward if you make i up.
What Rapptz said.
 
user3010322
I don't have any of my linear algebra books here with me. =[
 
But "up" is only relative to gravity, and gravity is only realistically defined by a spherical coordinate system.
 
bah humbug, you don't need to know math to make a math library! :v
6
 
6:19 PM
@ThePhD it's the internet, you can find everything online!
 
user3010322
Sigh
 
@ThePhD IIRC iTunes (yes iTunes) has Linear Algebra courses from a University, for free. You can just watch them :)
 
user3010322
So if k is up, thne the cross products are indeed very wrong.
 
Just use the porn rule.
 
just document the odd behavior and move on. Note: This library works in Derpspace
 
6:20 PM
I think even KhanAcademy has linear algebra stuff up for free
 
Seriously, this sort of mistake is inadmissible after xkcd 199.
 
user3010322
Mmm.
 
user3010322
Forward is along the book spine (z),
 
user3010322
first vector is along the front cover (x)
 
user3010322
6:21 PM
Or... not?
 
user3010322
But that's the coordinate system I'm trying to accomplish?
 
Which do you want to calculate?
 
GIMME ACCESS TO CODES D:
 
> Then watch some porn.
 
user3010322
@R.MartinhoFernandes I have forward, which I know to be Z (target - position, normalized).
 
6:23 PM
@ThePhD That's not what I asked!
 
user3010322
I have a reference up (0, 1, 0). I want to calculate the proper up and the proper right.
 
user3010322
I was getting to it!
 
Then if you want to calculate "right", let's call "right" the "result vector".
Does that make sense?
 
user3010322
Okay. So to get the right result vector,it's first x second.
 
user1804599
@thecoshman guess what language I’m using right now.
 
6:24 PM
Right.
 
user3010322
first in this case would be up, second would be forward, then?
 
user3010322
Like
 
user3010322
Uhm
 
There is only one way to orientate an open book such that its spine points to the right, and its covers are along forward and up.
Under that orientation, forward is along the front cover, and up along the back cover.
(To be honest, of all those, I still prefer the right-hand rule)
 
I never used my hands
right hand rule sucked
it confused me more than anything
 
6:28 PM
I don't use any objects or body parts.
Just do it mentally, with imaginary hands.
 
user1804599
It would be worrying if a robot used real hands for this.
 
@R.MartinhoFernandes Complex hands?
 
user1804599
“Don’t worry, these are not my hands!”
 
@rightfold That's what Edward said.
Hmmm I left an extraneous "ate".
 
6:32 PM
@MartinJames Visualize ( 0, 1 + i, 1 - i )
 
user3010322
 
user3010322
That works, right?
 
@Borgleader Or, "Starbreeze stopped making shit games and suddenly has money".
 
@ThePhD Right.
Puns intended in the worst way possible.
 
6:34 PM
@EtiennedeMartel Still impressive turn around.
 
Looks like some sort of ray.
@ThePhD you should draw a couple of eyes on it.
 
user3010322
So them
 
user3010322
You also need, if the result vector is up,
 
user3010322
you're doing right x forward then?
 
@Borgleader Well, Brothers got a shitton of hype.
 
6:35 PM
@ThePhD Yes.
 
And hype, in this industry, can be cashed in for money.
 
@EtiennedeMartel Unlike buttcoins.
 
only for like a week tops
and that's if you have really really huge amounts of hype
 
@MartinJames "You can't spell bankruptcy without BTC."
 
@Rapptz Or Apple.
 
6:37 PM
@EtiennedeMartel :)
 
Can file-static functions be called safely from any translation unit through a function pointer?
 
Wots a file-static function?
 
Internal linkage.
 
6:39 PM
A not-class static?
 
Oh, OK.
 
TU-static would probably be more correct.
 
@R.MartinhoFernandes Apple is a HypeFactory.
 
Stupid static overloads..
 
user3010322
6:42 PM
AHAHAHAAAAAAAAAAAAAA
 
user3010322
Same problem. ._.
 
You're getting cross now?
 
user3010322
But the vector basii (?) are right..?
 
It's wrong cos you committed a sin.
 
user3010322
6:44 PM
 
user3010322
@MartinJames Clever.
 
user3010322
 
user3010322
Welp. It's still kind of... upside-down.
 
user3010322
Absolutely no change when switching the vector's crosses.
 
Maybe the background is green and the plane black.
 
user3010322
6:47 PM
Nah, the background is black and the plane is green.
 
Rotate the camera 180˚ about the x-axis! What could go wrong?
 
@EtiennedeMartel Was that game any good? Looks beautiful at least.
 
user3010322
You know what's strange
 
user3010322
right is -1.
 
user3010322
Right shouldn't be -1.
 
6:48 PM
you only switched one of the cross product, im pretty sure they were both inverted as per my earlier comment
 
@Borgleader Didn't play it.
 
user3010322
@Borgleader I switched both.
 
user3010322
But seriously.
 
user3010322
Right should be +1
 
oops my bad
 
user3010322
6:51 PM
0, 0, 1 x 0, 1, 0 should be...
1, 0, 0
 
Do you have that in a test?
 
user3010322
Not yet. I haven't finished filling the test folder of Furrovine with tests just yet.
 
user3010322
But yeah, that's kind of a problem.
 
user3010322
No, wait
 
user3010322
Wolfram alpha says it's -1 D:::::::::
 
user3010322
6:53 PM
q__q I'm so confused.
 
Something about linear algebra comes to mind.
Are you Crowz?
 
user3010322
Yes, I should study more linear algebra, but...
 
user3010322
sigh. I don't know anymore.
 
hmm, time to vacuum, bbl
 
@ThePhD 0,0,1 x 0,1,0 is Z x Y. Since Y x Z = X, then Z x Y = – X.
 
user3010322
6:55 PM
Then my math was correct BEFORE!
 
@Potatoswatter He has (x,y,z) as (right,up,forward).
 
user3010322
I wanted Y x Z, e.g. referenceup x forward!!!
 
It's like Twitch Plays Pokemon, except instead of Pokemon, it's Linear Algebra.
 
Screw it. I hate pointers to pointers.
 
@rubenvb What about a pointer to vector of pointers?
 
6:57 PM
@BoniTea That contradicts the right hand rule. Point your thumb right, and your fingers up, and your palm faces backward.
 
@Mysticial Now I hate you too.
 
@Potatoswatter Yea, just realised that after I hit enter.
 
ahahaha
 
user3010322
@Potatoswatter "Backwards" being "away from you" ?
 
user3010322
Because I have my right hand
 
user3010322
6:58 PM
with my thumb to the right
 
user1804599
Fucking MVP.
 
user3010322
Oh, no wrong hand.
 
user3010322
Hm.
 
user1804599
It’s most vexing.
 
user3010322
Maybe I don't want the right hand rule.
 
6:59 PM
lol
 
user3010322
Maybe I want the left hand rule.
 
user1804599
@ThePhD That’s what she said.
 
The IPs for FreeNode being 127.1.1.1?
 
@R.MartinhoFernandes oh hey, what do you know, VS2013 uses a different variable to control whether to use the 64-bit toolchain: connect.microsoft.com/VisualStudio/feedback/details/800059/…
 
6:59 PM
I thought that 127.x.x.x was completely private.
 
@jalf Oh, FFS. I'll test again on Monday. Again, thanks a lot for checking this out.
 
@R.MartinhoFernandes np. I'm just curious about it. :)
 
@MooingDuck: for the record, I did have the correct type: coliru.stacked-crooked.com/a/bfec097baf1da19a
The rest might have sucked. But I had a pointer to pointer from the unique_ptr<pointer>.
 
user3010322
Let me try this all with the left hand rule.
 
user3010322
7:02 PM
I think I want this as the left hand rule, because I want positive X to the right, positive Y up, and positive Z out in front of me.
 
user3010322
All the vector math should remain mostly the same...
 
@ThePhD hold right hand straight. X. Bend fingers 90°. Y. Point thumb. Z.
Otherwise you vector maths crap out on the cross product.
 
What do you mean 'left-hand rule'?
 
user3010322
Let's do that with the left hand instead.
 
You can't just do that
 
@R.MartinhoFernandes there's an equivalent left hand rule that gets you the same as the right-hand rule. But it's even more illogical ;-)
 
cc1plus: warning: dereferencing pointer â<anonymous>â does break strict-aliasing rules
that bodes well
 
I know. But I doubt he's doing that
 
X cross Y should point to Z
 
user3010322
7:08 PM
1, 0, 0 and 0, 1, 0 should give me 0, 0, 1, with the left hand rule.
 
user3010322
Okay. It does.
 
@Lightness naughty boy
 
user3010322
X x Z should give me.... Y? No, that'd give me -Y
 
user3010322
So I need to do Z x X to get Y, or up.
 
user3010322
Yes
 
user3010322
7:11 PM
It's doing ti right and wolfram agrees with me
 
user3010322
Y x Z should give me... X, which is right.
 
user3010322
... And yes, wolfram agrees with me.
 
user3010322
Okay
 
user3010322
That's the right way
 
user3010322
wadhawjhdwadkj BUT IT'S STILL UPSIDE-DOWN!
 
7:15 PM
Hmm....
 
user3010322
Oh look NWO THE LIGHTING IS OFF HOO FUCKIN' RAH
 
user3010322
._.
 
user3010322
I quit.
 
user3010322
I cannot math for my life.
 
Hah, cute. Catch swaps the byte order when printing out pointers in failed assertions
 
7:21 PM
@jalf Uh?
 
user3010322
Maybe I did this to myself.
 
@ThePhD Gimme repo access maybe I can fix it for you D: maybe
 
user3010322
@Borgleader =l
 
Just use matrices.
 
I have to finish vacuuming first though
 
user3010322
@R.MartinhoFernandes I don't know how I'd do a proper view and projection matrix for a ray tracing camera.
 
user3010322
Because apparently the two are not the same when you're generating rays to shoot out into a scene?
 
@Borgleader You suck
 
Logo contest is over.
7
 
Also wow, coliru is slow
 
7:31 PM
@R.MartinhoFernandes I guess Jet wins.
 
Can some take the vote pin down for me?
 
@R.MartinhoFernandes What, you can't?
 
OMG why did I change to the desktop lounge
Fuck that was hard to undo.
Damn 'mobile' link is inaccessible from mobile
 
user3010322
My room is 20 degrees......
 
user3010322
7:36 PM
F.
 
Who unpinned the results though?
I don't want to keep linking to that for a week
 
user3010322
Nevermind, I lied it's closer to 0.
 
@R.MartinhoFernandes Oh, wait.
I did that.
 
> Robot is the biggest password-stealing jerk ever. I hope his gears rot in permanently-moist hyper-oxygenated hell!
 
user3010322
Whistles.
 
7:38 PM
lol
Someone said "nothing"
Gentlemen, grab your pitchforks.
 
You'll never guess which one of those is mine.
Hint: it's not that one:
> People are kind and friendly, almost to the point that they are like of your own family. Its openness to other people, especially the willingness to help those even of trivial needs. Cooperation and leadership amongst owners and occasional users, where you'd think there's nothing this room can't do. The Lounge. The only hope of humanity.
 
user3010322
> It's the distilled wisdom from decades of experience. In other words, my own posts! :-)
 
user3010322
Sounds like @JerryCoffin. :P
 
Mine is easy to spot considering the weirdo I am :P
 
user3010322
@EtiennedeMartel Is it "Pensises."?
 
7:43 PM
@ThePhD DING DING DING
But written properly.
 
user3010322
Lol
 
user3010322
Pen-sises.
 
user3010322
Multiple pens.
 
@Etienne surely you mean DONG DONG DONG
 
7:44 PM
@R.MartinhoFernandes Raise your dongers.
 
user3010322
Holy fuck
 
user3010322
It should be illegal
 
user3010322
for an apartment
 
user3010322
to be this cold
 
room topic changed to Lounge<C++>: The only hope of humanity. loungecpp.net [hope]
@ThePhD I'm fairly sure it is.
 
7:45 PM
Yeah, @ThePhD you're going to jail for that
 
user3010322
They installed a window-based airconditioner. In the process, they left the window permanently open. It's been like this for 3 years.
 
who the fuck thinks having some video of some newscast thingy start playing on a website some 20 minutes after you open it is a good idea?
 
@ThePhD Where do I put a copy of libwebp.lib
 
@Cat will have to perform the logofication ritual, i. e. set $wgLogo to the URL path to your own logo image.
 
user3010322
@Borgleader All the dependencies are provided for you.
 
user3010322
7:46 PM
See the readme of the repo.
 
user3010322
It might still drop an "include" folder in there, though, which is actually not necessary...
 
user3010322
Let me make sur eit's all updated.
 
it verks
 
> People say friends don't destroy one another; what do they know about friends?
Good night.
 
evening
 
user3010322
7:50 PM
@Borgleader Well, okay. Build that and Lightstalker.
 
Hmm I'm getting a weird output :(
 
@R.MartinhoFernandes Bit early to be retiring
 
user3010322
Lightstalker is one folder up from Furrovine and then two down in tis own thing.
 
GODDAMMIT it started playing again
 
user3010322
@Borgleader Screenshots.
 
user3010322
7:51 PM
The window stopper I ordered today better get delivered.
 
user3010322
It etter get delivered today.
 
I don't wanna hear about polio, and I don't care about iphones or underwater art galleries! ._.
 
user3010322
I need those sandbag things for this fucking window.
 
user3010322
@Borgleader What is this I don't even.
 
7:52 PM
question; what's more important to an employer, GPA or work experience? Like say you have a 2.9 GPA but 2 years in the industry already.
 
sandbag? o.O
 
@EtiennedeMartel That put tears in my eyes
 
Xeo
That said, nothing should implement the singleton 'pattern' in the first place. — Xeo 56 secs ago
 
@ThePhD Yeah idk either =/
 
user3010322
@Borgleader Uh. I can't really tell you why that's happening. It looks like the resolution of the image got borked somehow. Could be a problem with RenderImage, could be a problem with the actual window dimensions. Try hitting "s" to save an image "output.png"
 
7:56 PM
ok
 
user3010322
@Borgleader Just pushed my recent changes to Lightstalker to make sure everything's A-okay.
 
According to File Explorer output.png is 800x600
 

« first day (1231 days earlier)      last day (3731 days later) »