« first day (911 days earlier)      last day (4052 days later) » 

6:00 PM
No indeed
 
@ThePhD That is absolutely not the proper way to use Stack Overflow. You are attempting to game the system.
 
Alright, I'm back, almost got owned in Fallout New vegas. @ThePhD It's really just a matter of constructing the proper reference frame of the camera, you usually just use the world space up which defines a plane with the "lookAt" vector (the point you're looking at from the location of the camera, P - Lc) and is to generate a pseudovector with the cross product of the two, which will in turn form a plane with the "lookAt" vector. Yet another cross product yields the final local up vector.
 
That gives errors
 
@Cheiron Because private/protected/public can be specified to affect inheritance too :D
@Cheiron A whole new set of access specifiers
 
@LightnessRacesinOrbit Only if you don't happen to give the best answer in @ThePhD's opinion =p
 
6:01 PM
@Cheiron that's differenent inheritance specifier. You can use private inheritance to mask the fact you are inheriting
 
And you're basically describing things in world space (from view space, how it relates to world space), so an inverse of the constructed matrix gives the proper coordinates.
 
@Code-Guru re: edit oops dammit
 
@LightnessRacesinOrbit Upvoted: stackoverflow.com/questions/16002260/…
@LightnessRacesinOrbit You're welcome ;-)
@LightnessRacesinOrbit I contribute to SO in my own small way
 
@DomagojPandža But for something like rotating spherically around a given character, you'd need to have to change that plane, so the usual (mostly constant) up vector (that's usually 0, 1, 0) is better off being perpendicular to the view, right?
I mean, obviously it depends, but...
.... Dot dot dot... DOT DOT DOT DOT.
 
@ThePhD If I may ask, what are you working on? And what graphics API/engine/whatever are you using?
 
6:05 PM
@Code-Guru I'm making a pile of poo, which I burn to make Bread.
 
YAAAY! Victory!
 
@ThePhD Doot doot.
 
@Borgleader The best way to get into deferred rendering is to study up on multiple render targets and try to figure it out on your own. It requires a bit of understanding of the forward rendering pipeline (which you probably have) and then just simply use the facilities of HLSL to pull it through. It's really trivial and there's no one way of doing it. You can do it the simple way, write out the positions, normals, depth, specular and albedo and then composit it. Then you find out you can:
 
@ThePhD Thanks =p
 
6:09 PM
a) Reconstruct positions from the depth and the normals or in a bazillion different ways
b) Intertwine your calculations, spare yourself the fat G-buffer by storing normals in spherical coordinates
c) Use compute shaders to determine which lights hit where
d) Do things in multiple passes to win in some places, lose in others
e) Many other things :D
 
@DomagojPandža It didn't work that way for me. =[
 
@ThePhD That's because you have to bind the first pass depth buffer as is, not store it in a depth texture. Depth is inversely interpolated by the hardware. :P
 
@ThePhD 3... 2... 1.. you suck! :3
 
@DomagojPandža .... Wat.
@DomagojPandža How do you do that? DDD:
 
@ThePhD You do know you can simply reuse a depth buffer and bind it as a shader resource :D
 
6:10 PM
sup guis
 
hi there
 
@DomagojPandža Yes! .... No... maybe...
 
@ThePhD I'll do a proper write up on it soon. @Borgleader, people praise the book "Real-time Rendering (currently 3rd edition)", maybe you should take it up if you need more hands-on stuff?
 
hows eburiwan goin
did i just kill the room somehow
é_è
 
@DomagojPandža I'll take a look at it if I get stuck :)
 
6:15 PM
It's really straight forward, the idea is really appealing. You also have the light pre-pass variant which first occurred to Wolfgang Engel, a former RAGE R&D developer at Rockstar (GTA IV / RDR engine programmer). It does two geometry passes (depth recalc), but it can win with light preprocessing so you don't waste time where it isn't necessary.
 
Xeo
Hmmm... too bad I can't use [@] as a short-hand notation for []operator@, because [&](int(a)) would be ambiguous by itself - it could be a normal lambda or a lifting one, depending on whether there's a statement-block after that.
Same goes for [=]
 
My knee hurts. Damn computers.
 
@Xeo @ - [&]( oh man...
 
Xeo
@Abyx The - was supposed to be a seperator
 
@Xeo I also think it would have been a misuse of the capture list. Not to mention the proposals that might improve capture syntax.
 
Xeo
6:19 PM
yea
 
@LightnessRacesinOrbit Gaming the system is fun. <3
Also, look at me, I can repwhore too!:
0
A: std::thread Why object is copied twice?

ThePhDFor anything you want to move or avoid copies, prefer move constructors and std::move. But Why doesn't this happen automatically for me? Move in C++ is conservative. It generally will only move if you explicitly write std::move(). This was done because move semantics, if extended beyond very ex...

 
Xeo
And [[]] probably wouldn't fly with the committee anyways
 
Tee hee~
 
[bool]
 
with all that !@#$%^& crap, I'm staring to think that begin...end wasn't that bad
 
6:20 PM
@Xeo that's already used for attributes
 
Xeo
Although [](()) isn't much better in that regard.
@Abyx It's just operators...
Also, @ is just a placeholder for any operator
@LucDanton ahahaha, conversions operators completely eluded me until right now
Oh man
 
user142019
The weather is great.
 
user142019
24º
 
Xeo
Although I specifically say that [](@) only takes operators that can produce an operator-function-id through operator @
And conversion operators aren't part of that
But I guess I should still take them into account, eh?
 
i dunno lol ¯\(°_o)/¯
 
6:23 PM
@DomagojPandža g_d3dDevice->SetRenderState( D3DRS_SHADEMODE , D3DSHADE_FLAT); <---- What the hell? This was actually a thing in D3D9?
Did D3D9 actually have an immediate mode? o.0
 
[](bool) vs [](bool) {} doesn't look nice at all.
 
Xeo
Yea
 
[]operator bool plenty good enough. I can understand the need for concise syntax for e.g. arithmetic and comparison things, just not conversions.
 
@ThePhD I didn't have to spend a lot of time with D3D9's fixed function stuff fortunately, I dropped it back in 2004. in favour of the "new" fancy programmable pipeline. :D
 
Xeo
As I said, conversion operators are implicitly not allowed
 
6:25 PM
So... what more is there to take into account?
 
Hah, I think I still have my GeForce 2 here somewhere.
 
Xeo
[]operator bool also isn't allowed :P
 
Perhaps you should take a leaf from operator new syntax and go with that 'longest declarator possible' or whatever it was.
 
Xeo
Yea, apropos operator new and operator new[]... those are a bit troublesome because ... wait, they're not. I'm dumb.
The overloadable operator news don't deal with types
Although it might be nice to allow the new operator forms aswell, somehow. But eh, not right now.
 
([]operator char*)(([]operator new)(6))[5]
In a world where []operator T also lifts e.g. static_cast. (Don't propose that.)
 
6:30 PM
Note to self: write an introduction to DSP, easier to explain anti-aliasing in terms of signal processing.
 
@DomagojPandža I hated ANti-aliasing in terms of signal processing.
That was annoying. :c
 
is there a type_trait for nothrow?
 
Xeo
@LucDanton []((char*)), lifting C-style cast (no, it's not allowed)
@rubenvb noexcept can be used interrogatively.
 
@Xeo could you give an example?
 
@rubenvb There are std::is_nothrow_* traits, for some operations.
 
Xeo
6:31 PM
noexcept(some_fun(...))
Yields a bool
 
@Xeo great, thanks!
 
std::is_nothrow_destructible<T>::value == noexcept(std::declval<T&>().~T()) // minus fallback
 
Xeo
Depending on whether it is declared noexcept
@LucDanton fallback for... void?
 
@ThePhD I'll explain it well. :D Besides, it's a prerequisite to properly understand ~generalizations of the fourier transform. Spherical harmonics lighting, for example. A little probability theory and signal processing, boom - much easier to understand. Don't be afraid. :D
 
q_q but I am afraid.
 
Xeo
6:32 PM
ThePussyD
 
@Xeo Is std::declval<int&>().~alias<int&>() allowed?
 
ah, is_nothrow_constructible is better
 
It'll hurt me just like Deferred Rendering did. :c
 
Xeo
@LucDanton That was the other thing that came to mind - no clue
 
I'd expect the trait to fallback to std::false_type though. Also non-destructible types come to mind.
 
6:33 PM
I do have it implemented as compiler magic though
 
Xeo
Yeah
 
__has_nothrow_constructor
 
Xeo
@LucDanton Non-destructive types can't be instantiated at all, can they?
@rubenvb Don't use em
 
@Xeo They can. And std::declval<T&>() properly avoids running into that anyway.
 
Xeo
They may be buggy, which is fixed for the library traits by composing them with other traits (VC had one here for is_pod I think)
@LucDanton hmm
 
6:34 PM
@Xeo OK, I'll take another look at it then :)
 
@Xeo a) access control b) new forever
 
Xeo
Also, the inherent non-portability of using them should be clear :)
@LucDanton xD
 
God, I hate faking lens flare and glare effects. At least they're procedural.
 
Oh dear.
The question I was about to answer got a -2.
Maybe I shouldn't answer it....
LOL
 
Xeo
@ThePhD Go for reversal!
 
6:38 PM
It got deleted.
Hot damn....
That was fast.
=[
 
I want The Final Bosman to be a weekly thing. :(
 
It makes me sad when I write a detailed answer and then it just doesn't get upvotes.
Then again, I am answering mostly easy questions, so a detailed answer might not always be appreciated...
 
Upboats aren't what they used to be. The questions got shitty, there's not a lot of enthusiasm as in the early days of SO.
And nowadays, with so many 100k+ users, it's reduced to an appealing to authority thingy.
 
@DomagojPandža ahh...the good ole days.../glassy eyes
 
Fuck, I love this song.
 
Xeo
6:47 PM
@LucDanton: I'm really wondering, if I was to allow []operator bool, why not also the other way around, i.e. a generic make? :D
 
It's easier to write whatever function template you want and then use []make no?
 
Xeo
sure
But same goes for implicit conversion, really
 
Xeo
A wild robot appears!
I guess I just won't worry about conversions operators for right now and just add them as a consideration for the futurue
 
What's up?
 
Xeo
6:50 PM
[]operator bool
 
Oh. Not in the right mind to think about that stuff.
 
Xeo
Too much alcohol?
 
I spent the entire weekend drinking and sleeping.
 
Xeo
haha
 
Anyone knows off-hand what happens if I try adding in some error_info to an exception type and it happens to already have info for that tag?
 
Xeo
6:52 PM
I think you're talking about Boost.Exception, and I have no clue
 
@LucDanton these look good? ideone.com/Ac7ryG //CC@Xeo
yes there's no structs yes I like it that way. I'll fix em when I have to.
 
-1
Q: what is hypergraphDB and how to install & run a test example on it?

yahyaso...Ive downloaded the latest release of hypergraphdb and run a couple of .jar files on eclipse (should i just import them to eclipse to start working on it !!!!). but i don't know if am doing it right because there is no much information about that on their website. help please..

gah
 
Xeo
@rubenvb They look bad. Really. Why do you not use the existing meta functions?
 
@Xeo because I'm rewriting them.
For learning purposes and I want to torture myself.
What's wrong with em? Do they give the wrong result?
 
@rubenvb No.
 
6:55 PM
@LucDanton Overwrites.
 
@R.MartinhoFernandes Ya just ran my own testcase. Did you?
 
Used it before.
 
@rubenvb Something like noexcept(T()) will be influenced by whether or not T is nothrow destructible or not.
 
@rubenvb Do you know of constexpr operator value_type?
 
@R.MartinhoFernandes no.
@LucDanton So if I followed you correctly five minutes ago, noexcept(declval<T>().T()) should be better?
 
Xeo
@rubenvb That doesn't work
 
Go ::new (std::nothrow) T(/* args */). Probably. I'm not that familiar with the noexcept operator.
Aaaand it took me two tries. Don't do this at home.
 
Xeo
Heh, I forgot std::nothrow the first time around in my head too
 
That's what I use. :C
 
huh.
give me a sec
@R.MartinhoFernandes so that's a free conversion to bool of integral_constant?
I could drop the parentheses for the boolean type traits...
well shit. I can't get it to work in coliru
 
7:08 PM
Can someone explain me why people put they're Catholics in their short Twitter about declaration? Who gives a fuck?
 
Apparently you do.
 
lol
 
@R.MartinhoFernandes :smug:
 
So what's wrong with this?
except the indentation.
and probably all the cases I missed.
 
@kbok look at new readme :)
 
7:12 PM
hello
 
yesterday, by Etienne de Martel
@Alex_B This is the most active room on SO. As a result, we got lots of people who rush in here to ask for help thinking they'll get their answer more quickly than on SO. After a while, many regulars got quite jaded, and now the usual reaction is "we won't help you".
And hello.
 
@rubenvb It only works in certain contexts. Luckily, those are the only ones you need.
 
@CandyMan Hi Candy Man, we are just about to close up another unproductive thread on religious sentiments.
 
@R.MartinhoFernandes say what? So you're saying it's not as general as could be, but the cases I missed can never occur?
 
@R.MartinhoFernandes Earlier I had an error about std::some_trait_who_cares<Foo>() not having a value member.
 
7:14 PM
oh wait
I should have followed replies
 
@BartekBanachewicz the README is awesome
 
@LucDanton drop the parentheses?
 
@rubenvb Sure, but that's not the interesting part.
 
Your C++ is mightier than mine. I withdraw from this discussion :P
 
I erroneously rewrote some is_foo<Foo>() && is_bar<Bar>() to And<is_foo<Foo>(), is_bar<Bar>()>. I usually don't make the mistake, was funny is all.
 
7:18 PM
haha
Your humor elides me.
 
@DomagojPandža meh, don't scare off noobs that fast
 
@R.MartinhoFernandes is that an operator nothing?
 
Well, I said hello. :D
 
Ya know, laughter as the refuge against absurdity.
 
A what?
It's a conversion operator.
 
7:19 PM
ah
I said a while ago I sucked at C++.
let this be the proof I still suck at C++.
@R.MartinhoFernandes Can it be explicit in this context?
 
It isn't.
My head hurts.
 
@rubenvb Against California law but Yes.
 
@CaptainGiraffe against california law is not a challenge
 
Woo, filing my second GCC bug of the day.
 
7:42 PM
@rubenvb You just said his humor elided you. If that was true, you should be gone now.
 
@JerryCoffin muhuhahaha
 
@JerryCoffin You say the nicest things. :P
 
@DomagojPandža Thanks -- I do try! :-)
 
user142019
I hate everyone here
 
I hate everyone.
 
7:46 PM
I love.
 
user142019
I.
 
fucking spamers
 
user142019
fucing spammers
 
Oh, someone pinned my message.
 
yeah that was a good one
 
7:47 PM
@EtiennedeMartel Yes, you may feel beautiful and worthwhile now.
 
I'm already beautiful and worthwhile.
3
 
@EtiennedeMartel Have a neutron star.
 
@EtiennedeMartel I did. I was surprised it took that long.
 
@ScottW clearly he's trolling
 
@R.MartinhoFernandes Yeah.
 
7:50 PM
Apparently, some people think programming is fun. I must've missed the memo.
 
@DomagojPandža It is fun.
If you seriously think it isn't, try doing something else. Like botany.
 
@DomagojPandža it is fun.
 
I actually like it just because it is not fun. It's serious business.
 
You should drink more beer.
 
-how Vista got made.
 
7:53 PM
What?
 
Never mind :\
 
Apple uses automated schnapps IVs.
5
 
@EtiennedeMartel I think I drank some beer sometime between Friday and Saturday.
 
Wow, Firefox decided to crash while I was halfway done writing my bug report.
 
@kbok I feel compelled to booze up now.
 
7:56 PM
it's hard to get in the zone
I remember picking a friend at home drunk to find him working on a project of his. He wanted to fix a bug he's been looking for for a long time. I asked to have a look and fixed it in a few minutes :p
the ballmer peak is real guys
 
@R.MartinhoFernandes You think?
So it wasn't "some".
 
@EtiennedeMartel He got arrested trying to template the girls at the local bar and doesn't want to talk about it.
5
 

« first day (911 days earlier)      last day (4052 days later) »