« first day (224 days earlier)      last day (4722 days later) » 

8:01 PM
lol
 
are you familiar with yaw, pitch and roll rotations?
 
vaguely
they're just another name for X, Y, Z rotations, not necessarily in that order
 
why do you have to do a rotation around an axis, then times it by the identity matrix?
 
parsing commandline options with boost::program_options. my main() function looks like so:
int main(int argc, char* argv[])
{
    shared_ptr<wauda::user_command> cmd = parse_commandline(argc, argv);
    return cmd();
}
does it makes sense?
 
no
I mean, great, command line parsing- but where's the program?
 
8:10 PM
sorry, updated.
wait wait, do you see what i'm getting at?
i just don't want my main() to 'splode.
 
@TonyTheTiger Multiplying with the identity matrix gains you nothing.
 
@FredOverflow ok, that's what I thought, but why do I see it done then?
 
sbi
@Xeo I hate that, too. See here: metacafe.com/watch/54702/im_my_own_grandpa/#
 
it's not program_options question i have. it's about correctness..
 
@TonyTheTiger What happens if you comment it out?
 
8:11 PM
 D3DXMatrixIdentity(&MatRot);

    // Now, apply the orientation variables to the world matrix
    if(m_fPitch || m_fYaw || m_fRoll) {
        // Produce and combine the rotation matrices.
        D3DXMatrixRotationX(&MatTemp, m_fPitch);         // Pitch
D3DXMatrixMultiply(&MatRot, &MatRot, &MatTemp);
 
umm.
hello?
 
@Potatoswatter not sure, I was just look at the just posted example code
 
It seems you cannot generate rotation matrices "from scratch", but you can rotate preexisting matrices. Hence you start with the identity to get the same effect. Makes sense?
 
sbi
@Xeo Here's another nice version: youtube.com/watch?v=q0s5Kn9QXtU
 
@FredOverflow But this apparently does that, then also multiplies it for good measure.
 
8:13 PM
@wilhelmtell I'm not sure what invoking operator()does on cmd?
 
@FredO: No, that's completely untrue. You can generate rotation matrices from scratch- they're just a matrix.
 
Well, then I'm out of ideas.
 
the code resets a variable, MatRot, to identity, presumably because previously, it would have held a different matrix
then, rather strangely, if you want pitch or yaw or roll, it will give you a pitch matrix only, and stick that in to MatRot
 
@TonyTheTiger Try replacing the multiply with an assignment and test it. Maybe other transformations happen to MatRot… and for some reason MatTemp is also needed.
 
then presumably it gets used]
 
8:16 PM
  D3DXMATRIX MatRot;   // Final rotation matrix, applied to
                         // pMatWorld.
that's all that is done with MatRot, just being declared
MatTemp contains the output of the RotationX function
then it's multiplied by MatRot and the output is placed in MatRot
so I guess, its just to put output in MatRot and then be able to use it for the next rotation, which is also multiplied by MatRot
 
well
 
I guess that makes sense now.
 
given the indentation and the WTFness of the logic, I think you must be missing some code
 
that makes a lot more sense
although there's still an unnecessary matrix in here
 
8:21 PM
ugh :( my fail for not posting the whole thing or the just the link then
 
it just stacks the rotations in MatRot and then adds them to the earlier translation matrix
oh no
no no no no no
After you prepare the world matrix, call the IDirect3DDevice9::SetTransform method to set it, specifying the D3DTS_WORLD macro for the first parameter.
do not do this, use a shader
 
because that's fixed-function pipeline
that shit was old in 2007
D3D10 and D3D11 don't even have it
even iPhone has shaders, IIRC
nobody uses fixed-function pipeline anymore
 
oh I see, so I guess SetTransform uses the CPU, and shaders are obviously a GPU thing
where GPU's are more optimized for matrix operations
which can be quite computationally expensive...
 
no
SetTransform still does the work on the GPU
it's just fixed, instead of programmable
 
8:27 PM
oh, ok
 
which is old, and a bitch to work with
shaders are way nicer to handle
 
oh I see. So do you know this shader language that is used to program shaders?
 
yes
 
don't remember the name
 
OGL and D3D have their slight variances
Direct3D is HLSL
or high-level shader language
 
8:29 PM
yea that's the one
 
it's a C-style language with a couple of graphics-specific extensions
although each version brings it closer to C++, including inheritance in D3D11 and template and class as reserved keywords
 
yea... wow this stuff is quite different to just general application programming...
 
oh yeah
the GPU is a very specific device for a very specific purpose
and people produce the tools they need to use
 
yea, quite cool though you get to have so much control over it, if you know what you're doing
 
yeah
it's much easier to implement stuff with shaders, because you have all the control
 
8:32 PM
Yep, Iphone has programmable pipeline, per this article
true, but also easier to shoot yourself in the foot and get it wrong
lol
 
nah
shader programs aren't that complex
and it's easy to find samples
for the less advanced work, anyway
 
so for the camera (view) matrix, is it the camera that gets moved on a translation or is it the objects in the world space that get moved?
 
the objects
 
oh ok
 
typically, you hardware instance the world matrix, and set the ViewProjection matrix as a shader global variable
then the output of the vertex shader = inputposition * world * viewprojection
for the world's most basic vertex shader
well, a hardware instancing most basic vertex shader
 
8:37 PM
hardware instance? Means that it's directly supported by the hardware?
 
yeah
 
graphics must be one of the things having most direct hardware support on a PC
 
basically, let's say, if you're rendering a cube
then the hardware supports rendering six cubes in six different places
normally, when you have a vertex shader, then all the input comes from the vertex
but D3D9.0c+ allow you to specify per-instance inputs as well
significantly reducing the CPU cost of rendering multiple instances of geometry#
 
@DeadMG why six? cause there is that many shaders?
 
no, it's n-ary
I just picked six as a random number
 
8:46 PM
hi!
 
well, there are hardware limits, but I don't recall offand
 
oh ok, thanks for clarifying ;)
@pollux hai
 
Someoen around who maybe knows how, in Mosaic images, like this creativecopywrite.nl/wp-content/uploads/2011/01/… to calculate the gradient of the patches? I you look at the edge of the bird you see how nicely the patches create the edge
 
@pollux not a clue
 
www.stackoverflow.com
 
Xeo
8:54 PM
Uhm... what are the constraints on the return type of the binary operator& ?
 
@Xeo is that the bitwise AND you're talking or what?
 
Xeo
@TonyTheTiger Yeah, bitwise was the word.
 
oh ok
 
@Xeo: Constraints? What constraints?
 
Xeo
When overloading
are there any constraints on the return type?
 
8:56 PM
there are no constraints
I don't know of any operator that actually has a constrained return type, except conversion
 
@DeadMG There is a semantic constraint for operator->, but not syntactic.
 
Xeo
    bool operator==(true_type const&) const{ return true; }
    bool operator==(false_type const&) const{ return false; }

    bool operator&(true_type const&) const{ return bool; }
    bool operator&(false_type const&) const{ return !bool; }
error C2062: type 'bool' unexpected - anything visibly wrong?
 
yeah
you're trying to return a type
 
Xeo
ARGH
 
for a start
 
Xeo
8:59 PM
....
Now that's embarassing...
 
also, don't you mean &&?
 
operator== has the wrong number of arguments and operator& is the address-of operator, not AND.
 
Xeo
Member functions
 
@PotatorSwapper: It can be binary and
 
oh, this is inside a class… oh, bool is supposed to be a member variable
 
Xeo
9:00 PM
Yeah, there was my mistake
I don't know what I thought oO
I looked at it and saw nothing wrong...
 
it's ok, these things happen
 
in that case, you also want bool operator&(false_type const&) const{ return false; }
 
PotatorSwapper? He now swaps potators instead of swats potatoes? :P
 
lol
GG OP NO RE
 
Xeo
@TonyTheTiger Potators? Are those functors that return potatoes?
 
9:03 PM
I'm still waiting for the rest of his sentence. It can be binary and… ?
It can be binary or unary.
 
3 mins ago, by DeadMG
@PotatorSwapper: It can be binary and
read what it says....
 
Xeo
@Potatoswatter Read it this way: "It can be binary AND"
 
uh, binary and, as in, binary or, binary xor, binary and
 
and what? lol
 
1 & 2
 
Xeo
9:04 PM
@Potatoswatter As in binary operation
 
lulz
@DeadMG ???
 
i'm getting way too much amusement from this…
 
oh you bastard!!
 
Xeo
Ey, trolling is reserved for @Johannes!
 
lol
/me cries laughing
that potatorswapper got me good :P
 
Xeo
9:07 PM
@TonyTheTiger std::swap(onePotator,otherPotator)
 
cpx
@Xeo hm lol I wonder why he was taken off mod list.
 
@Xeo lulz, I guess that's how you'd implement it
@cpx which mod list?
for SO?
 
cpx
Moderators.
 
6 mins ago, by DeadMG
GG OP NO RE
 
std::not1( myPotator ): a potator negator
 
9:09 PM
what does that mean?
 
cpx
For this room, I meant.
 
@Potatoswatter hahahah :P
@cpx was he ever on it?
 
Xeo
You mean room owner?
 
cpx
I saw him.
 
you mean the room owners list?
 
cpx
9:10 PM
Yes
 
prob because he's not a real honest-to-pete frequenter of this room
he's here only so often and mainly says 'hmm' and 'lol'
2
and trolls
 
cpx
hmmm
 
@Potatoswatter where'd you get your nick anyways? does it have meaning?
 
@TonyTheTiger I just picked it the first time I needed one, when I was 11. It means I like potatoes.
 
@Potatoswatter oh wow, interesting
 
9:13 PM
I tell an amazing story, right?
 
is that you?
@Potatoswatter yea, I hope its a true story, lol
 
I am the one and only, so far :v) .
Looks like the <code> block shades the text background slightly as opposed to simple monospace.
 
Tony the Tiger is the advertising cartoon mascot for Kellogg's Frosted Flakes (also known as Frosties) breakfast cereal, appearing on its packaging and advertising. More recently, Tony has also become the mascot for Tony's Cinnamon Krunchers and Tiger Power. Since his debut in the 1950s, the character has spanned several generations and become a breakfast cereal icon. History In 1952, Eugene Kolkey, an accomplished graphic artist and Art Director for Leo Burnett, sketched a character for a contest to become the official mascot of a then brand-new breakfast cereal. Kolkey designed a tiger n...
I have a wikipedia entry, I'm so proud of myself :)
oh Tiger Power, I have lots of that :P
 
guys!
potato swapper??
BTW true, false, this and nullptr are keywords! they aren't names!
not fair lol
 
9:28 PM
nullptr_t operator&() const { return nullptr; }
^ that's unfair
 
nullptr_t operator&() const { return rand() % 42 == 0 ? nullptr : this; }
 
while ( my_ptr == nullptr ) my_ptr = & my_obj;
 
also, struct A { void g() { } void f() { g; } }; in this example g is an rvalue
but it's invalid without '()' anyway
 
sbi
@cpx It is room policy here to turn regulars into room owners. (See the newbie hints for why that is so.) If you do that, you either get an ever-increasing list, or you not only put new users on it, but also take others off it. I sometimes put new users onto the list that I have seen chatting here regularly for weeks, and when I do this I usually also quickly browse through the list for whom I haven't seen in a while, and might take someone off the list.
I might actually have taken @Johannes off, or someone else did it. I really don't know. (I'd like to feel I'm not the only one doing this janitor job.) However, as @Tony has already explained, it fits with the room policy.
 
hey hey, it's Uncle FAQ
 
Xeo
9:39 PM
@DeadMG I totally read "FAQ" the wrong way for this to sound right.
2
 
struct A { void g() { } void f() { &A::g; } }; // proper ptmf syntax
struct A { static void g() { } void f() { g; } }; // avoid ptmf
 
@Xeo: How could you possibly read it right?
 
Xeo
@DeadMG Eff Ey Kyu
 
that's not reading it wrong
 
Xeo
You asked for reading it right
 
9:44 PM
oh yeah
 
sbi
@DeadMG You should know that in German (and @Xeo keeps insisting he is a German, though nobody ever saw him to confirm), we pronounce the A much like you pronounce the U in words like, uh, luck. :)
 
well, considering how you keep complaining you have too many children, I'm not unhappy with both interpretations
 
sbi
@DeadMG Though in this case I wore the Room Janitor head. :)
 
Lol… Read the FAQ. If that doesn't work, read the FQ.
 
if reading the FAQ doesn't work, try the FUQ
frequently unanswered questions?
 
sbi
9:49 PM
@DeadMG LOL! (Actually I'm not complaining about having too many, though I admit that I'm complaining about having many.)
 
heh heh
by the way
I ended up going with those getters and setters, since I know for this exact case that I need to set a flag to move my stuff over to GPU memory
 
sbi
10:09 PM
@DeadMG It's not that I never employ any setters or getters. I do, sometimes. But I always feel somewhat dirty afterwards. (Like when you needed to take a shit in the woods, and they forgot to install a wash basin out there to allow you to clean your hands afterwards.)
 
@sbi Careful, your boss might put "employees must wash hands" in your office.
 
sbi
@Potatoswatter What for?
 
@sbi: Yeah, me too
 
@sbi You know, the hygienic sign about working "cleanly."
 
sbi
@Potatoswatter Yeah, I know what you mean. I was asking why you said it.
 
10:14 PM
@sbi Your analogy was vivid.
 
I get the impression that you probably don't have an annoying boss…
 
sbi
@Potatoswatter <sigh/> To me your reply still seems to be a complete non sequitur, but since you won't explain it, I'll try to forget about it.
@Potatoswatter I try to stay away from those, although my current one isn't the best I ever had.
 
guys, I have a possibly-but-quite-unlikely very important question
 
sbi
@DeadMG Need to take a shite?
 
10:17 PM
do you think that pair programming is, well, firstly, very common? but also, would it be drastically improved if you have a 42" multi-touch screen and pair-programmed the same piece of code at the same time, instead of sharing a kb/mouse
 
Xeo
Uhm
I think you're missing the concept about pair programming
 
@DeadMG isn't 42" cumbersome for a touchscreen?
 
@PotatoSwatter: well, I figured that it would be large enough for multiple people to co-operatively solve the same task
 
Xeo
it isn't about having 2 persons write code at the same machine
 
but on the same actual task, instead of needing source control etc
 
Xeo
10:18 PM
It's about having one write the code and the other look over it while they both talk over it
 
sbi
@DeadMG 1) IME pair-programming is not very common. 2) Pair-programming isn't about technology (though some of it helps), but all about psychology. You do want one to just watch in pair-programming.
 
well, I figured that, for example, if you made a typo, your friend would go back and correct it without having to interrupt you
 
ah. In that case, it's all nuts.
@DeadMG That would be a very nice friend.
 
well
what about a pair of modellers working on a model?
 
Xeo
@sbi It may not be very common, but I found it very helpful in my projects here in school
@DeadMG That would certaily go wrong I think
Let one person do one task, and have another watch and talk over it
 
10:21 PM
sure, but wouldn't it be more effective if person B did some work until person A finished something they wanted looking over?
 
sbi
@DeadMG When I was pair-programming, I especially liked to pair with that guy who, when you typed away, would just sedately say "it's return", and I knew I had mistyped a return statement. For a non-touch-typer like me, that's better than looking at the screen myself.
 
Xeo
On one machine that wont go well, you'll just start annoying each other as you type on the same screen
@sbi #define retrun return :)
 
not really
42" would be large enough for two concurrent workspaces
or more
 
Xeo
Still, one should code and one should watch and talk
Especially talk
 
you're shattering my dreams, bitches
 
sbi
10:23 PM
@Xeo Yeah, I liked it, too, when I was in a company where we did it. However, I found that cow-workers who'd never done it didn't like the idea, and shy back, even though pair-programming is what they all do once in a while. ("Um, Pete, could you please have a look at this here?")
 
Xeo
xD
@DeadMG Maybe try that with haskell, I heard it was made for concurrent tasks. :)
 
lol
 
I've never done pair programming, but I have done a sort of group programming. We used a projector and there was definitely one designated data-entry guy.
 
sbi
@Xeo You know, my typing got considerably worse when Word introduced the feature that would fix such errors automagically while you type. Years later, Visual Assist was the final nail in the coffin.
 
@Xeo It was LabView, which is a fairly concurrent functional language…
 
Xeo
10:25 PM
@Potatoswatter That's called extreme programming, pair programming is just a special case of it
@sbi I instantly disabled automatic correction
Especially for turning a dot . into a pointer -> on pointer variables, that's just wrong. How would new guys ever learn how to correctly use each?!
 
@Xeo It was called "the current principal guy has no prior professional experience and we need to help him, but we can't solve the problems ourselves due to massive convolution by Those Who Were Fired."
 
Xeo
@Potatoswatter Lol
 
ok
 
sbi
@Potatoswatter Isn't that a synonym to "Get Another Job Quickly"?
 
so what else could you use a 42" multi-touch screen for, apart from gaming and entertainment?
 
sbi
10:28 PM
@DeadMG You could smear its surface with your sticky fingers.
 
@sbi I like their mission. Odd things motivate me.
 
lol
 
@DeadMG touching?
 
sbi
@TonyTheTiger That's indeed a very touching idea. :)
 
@sbi :P
 
10:30 PM
@DeadMG TV show presentation, "war room" type conferences
 
@DeadMG p0rn?
 
hahaha
porn
oh, I got the war room idea down, definitely
 
then at least you 'participate' somewhat... :P
oh I'm so perverted, lulz
is it a multi touch screen ? or just ordinary touch?
 
Xeo
> 42" multi-touch screen
 
well, I've also been thinking about just regular organizational tools
if you had a tree-type structure, it would be relatively easy to lay it out and move it around
 
Xeo
10:33 PM
Ooohh, node system on shaders in maya/max!
 
yeah, I've been thinking about how it could be used to make models
 
Xeo
But maybe you can find interactive multitouch porn? :P
 
don't think that's really a demonstrable thing
 
Xeo
image processing?
 
how?
 
10:34 PM
Lol, I remember shader hierarchies on 640x480 VGA
 
Xeo
like rotation, scaling
 
yeah- but how would multi-touch specifically make that easier?
 
Xeo
maybe more, let your imagination run wild
2 fingers - multi touch :P
 
@Xeo EPIC LENS FLARE
 
sbi
@TonyTheTiger For watching porn on a touch screen you'd need one with tactile feedback. :)
(Oh, and BTW, you again brought up this subject.)
 
10:39 PM
those are coming, apparently
 
@Xeo lol :P
@sbi I'd love that, one which has relief in it... :P
 
honestly, just watch some porn, get off, and get over it
that's what the rest of us lonely, single men do
 
@sbi I know... I'm a bad bad person for doing it
@DeadMG lol, I was just suggesting a use of for your multi touch screen
 
you always interject sex at the earliest conversational opportunity
 
sbi
@DeadMG Actually, I'd rather have multiple small monitors that one big one.
2
A: Is big (as much as big) size display (Monitor) always better for Development?

sbiActually, for me it's not about size, but about number of pixels. And I prefer having two monitors over having a single big one, because that way I can easily maximize my editor window on one of them.

 
10:41 PM
oh, oh, oh SBI
have you seen that Code Bubbles shiz?
epically awesomesauce
 
sbi
@DeadMG What are you talking about?
 
Xeo
@sbi Yeah, managing the size of the individual windows would be meh. Just drag it to the other screen and fullscreen it
 
sbi
@DeadMG And I really wonder whom you're addressing there.
@Xeo Although AeroSnap does help there on one monitor.
 
@sbi I think he was talking to me, he got frustrated I mentioned pr0n :P
then one wonders who should really be doing what he suggested?! lol
 
there's a Visual Studio Power Tool and demonstration for it
but I can't find it
 
Xeo
10:47 PM
@DeadMG My friend installed Power Tools and it totally fucked up his VS2010 installation. Repeated crashes and weird coloring too
 
so you'll have to live with the sucky Java demo :P
 
@Xeo you have a friend?
lol
 
Xeo
And the search window went to this size "[...................................................]"
@TonyTheTiger What the heck are you implying?
 
@Xeo nothing, was just being silly
@DeadMG that looks interesting, might try it when it comes out as a beta
I have too many browser tabs & windows open... ugh
need to clean up I think
 
10:53 PM
lol
 
I mean, I'm using 5GB of my 8GB of RAM, and most of it is probably browser, admittedly I do have 4 instances of VS open too...
 
that's kinda epic fail
I mean, RAM exists to be used, for sure
 
but I'm currently using 1.9GB of my 6GB of RAM
 
10:54 PM
Chrome and VS give 110MB each
but then, they're pretty small projects
 
600MB on VS and 1.4GB on browser windows, plus then whatever else is also running
 
"whatever else" amounts to an impressive 3GB
 
yea, adobe, outlook, skype, notepad, sql server management studio and maybe I've forgotten some
lol
 
(all) :P
 
haha
hmmm I have a tab open on Performance Python... didn't even realize
don't know where it comes from.
 
11:01 PM
maybe it opened itself
 
lol
closed quite a few of my tabs now
just left all the one's on graphics open
as I'm kinda in the middle of it
plus the one's for work of course :)
 
lol
 
sbi
@TonyTheTiger You know, I usually don't do that, because I'm not patient enough to plough through many dozens of open tabs, trying to find out whether I could safely close them...
Anyway, I gonna go to bed. I bet I'll be woken in six hours. :(
 
Xeo
Heh, g'night @sbi
 
@sbi oh, I don't mind doing it
good night
I gotta get up too tomo, so I'm off too
 
11:09 PM
bb
 
11:51 PM
BBC headline: "Two men facing explosives charges"
@JohannesSchaublitb, any progress on getting template declarations to count?
 
me neither :vP
Need a way to conditionally generate a deduced context.
Or rather, independently generate or not-generate several contexts within a declaration.
 
what does "conditionally generate a deduced context" mean?
 

« first day (224 days earlier)      last day (4722 days later) »