« first day (1355 days earlier)      last day (3579 days later) » 

2:00 AM
@ThePhD It shouldn't be complex.
 
Good morning.
 
they did that same joke in anchorman 2 iirc
 
Hey, Anchorman!
I just watched that last weekend, since everyone had good things to say about it
It was awful
 
@ThePhD Wrap them. lua_member<int> a.
 
@MarkGarcia No..
 
2:02 AM
well obviously you don't have many leatherbound books/your apartment doesn't smell of rich mahogany
 
user3010322
@MarkGarcia That's not the problem. My problem is from the lua side, when someone does myuserdata.a = /*whatever*/, how do you make that call back into C++ and effect the changes in C++ memory (not lua).
 
@Rapptz Oh right. C++ doesn't yet have reflection...
 
user3010322
<___>
 
user3010322
That's not the problem!
 
@ThePhD You don't.
You have to remember that some things are impossible.
 
2:04 AM
@ThePhD I think it's the same problem, only we're on differing sides.
 
You can technically do some meta-table shit
But I'll be honest, I don't think it's worth it
 
iTunes why doth thou fail me so
 
user3010322
Hm....
 
user3010322
@MarkGarcia True. I know how to implement lua_member<int>, it's the lua side that's making me sad. :(
 
user3010322
@Rapptz Oh. Well, okay then. My next step would be if someone hands us new_userdata( ..., "a", &my_struct::a, ... ) is that I could easily make a member-variable wrapper that automatically makes myuserdata.a() return the value of a, and myuserdata.a( /* value */ ) set the value?
 
2:06 AM
If someone wants stateful effects
They can use a getter/setter
 
user3010322
Alrighty. I was just wondering if "magic" like that would be a good idea.
 
user3010322
But, since it doesn't support the same syntax, it probably is a bad idea.
 
user3010322
WTB table semantics on userdata. ;~;
 
user data are tables
100% tables
 
user3010322
Ah. Well, then I want lua triggers that allow for stuff.a = ... and local a = stuff.a
 
2:08 AM
?
are you trying to say you don't know how to set member variables to lua?
 
user3010322
No, I mean I want that syntax from lua to trigger a C++ routine.
 
why?
those should be raw
 
user3010322
So I can have member variable set / get!
 
Lua doesn't have properties bud
:v
 
user3010322
But I dream. ;~;
 
user3010322
2:10 AM
Oh, eyah. I'm gonna make a tiny PR in a second.
 
user3010322
I think it'll be the smallest commit I've ever done in my life.
 
finally :v
Man I'm full
 
user3010322
Well, you did eat ten slices.
 
user3010322
After being very hungry.
 
well my attempts at replacing gl::TexImage2D() with the recommended gl::TexStorage2D() and gl::TexSubImage2D() have failed
 
user3010322
2:15 AM
Pat pat.
 
user3010322
You tried.
 
Ahahahahaha!!! "Reload is the GCC equivalent of Satan." gcc.gnu.org/wiki/reload
 
they need codereviews =/ ffs
 
They seem to know it's bad
 
Thankfully it's being replaced. And for good.
 
2:18 AM
@MarkGarcia that's scary
 
@Rapptz thats arguably worse :P
:)
 
user3010322
@Rapptz I made a tiny PR! See? I can do it!
 
Why would this be a PR? :v
 
user3010322
I dunno how else to push changes to the master repo. :c
 
are you two in some sort of senpai-kohai relationship?
 
user3010322
2:23 AM
ラーップズ先生 ♥
 
eh sensei works too tho what I had in mind was more like
rapptz senpai pls notice my PR
 
I'd like a sensei teach me how to like make game.
 
I got two strings to be displayed in a listview on android!
I always have to use a tutorial to do this
 
amazing
 
you have to use a listview control, obviously
then you have to define an XML layout for each element in it
 
2:26 AM
@AlexM. You make this sound quite kinky :P
 
then you have to implement your own adapter for all the elements and decide how it gets shown
then you put the elements in the adapter
 
user3010322
 
user3010322
Uh.
 
then you set the adapter for the listview
 
user3010322
Well my triangles are coming out as perfect parallelograms now!
 
2:26 AM
AND ONLY THEN YOU GET TWO MOTHERFUCKING STRINGS TO SHOW
 
user3010322
So, my hit test is doing something.
 
@Rapptz there was this excel file somewhere on the web
that game developers could collectively edit
 
> The Library Evolution Working Group (LEWG) voted to base the Networking
TS on Boost.ASIO. from: http://article.gmane.org/gmane.comp.lib.boost.devel/252494
 
the point was to leave your contact details there
 
Boost.Asio sucks.
 
2:31 AM
some left them to be contacted for jobs
others to be contacted by people looking for help
there were some game developers who worked on successful indie and AAA titles there
 
I think boost asio is pretty good.
 
I'll try to search for it again
 
@Rapptz I really know you'll say that.:)
 
it was shared on gd.se once
 
@AlexM. It's okay, I'm not too keen on working with Game Developers :v
I'm in a funny situation because I don't like Game Developers.
 
user3010322
2:32 AM
;~;
 
I'm sure you can find one that's likable, not all people are alike
I mean look at me I'm a game developer and I'm all sexy and stuff
serious
 
why don't you just use the sockets themselves I didn't think it was too hard with the UNP, why do you even need boost asio
 
right?
 
It's been like 2 years.
 
anyone?
damn.
 
2:36 AM
Why do my grandparents always pick the worst time to get sick. My Uncle is supposed to join me to Seattle for the weekend. And now he can't. $500 ticket down the drain.
 
gah, now I'm going through old messages searching for that csv and I'm seeing all kinds of bullshit I used to say that I wouldn't say anymore
 
@Mysticial Shaddap youre rich anyway :P Craigslist it
 
I know what I'm thinking now is good because at the very least it will lead to possibly better thoughts in the future
but this also makes current thoughts feel somewhat worthless in the process
because I'm sure I'll replace them tomorrow
 
@Borgleader Not possible anyway. Since these are the cheap non-refundable/non-transferable tickets.
The flexible tickets are upwards of 1k.
 
buy yourself a trench coat and for a day you get to be one of those shady guys scalping tickets outside of the place
 
2:38 AM
@Mysticial You cant sell it to someone else? isnt that against uh... one of those american laws/constitution thingies?
 
this is something I've never taken a look at
 
@Borgleader It's part of the "contract" for buying the ticket in the first place.
 
I've read so many books on gamedev
I've like, lost count
I know I read that one
 
The last time my grandparents got sick, it was when everyone was in Seattle. None of them could fly back because of the Asiana crash.
 
@Mysticial o.O damn... oh and uh... silly question. Have you met Tad Chade-Meng (from Google) ?
 
2:40 AM
@Borgleader Never heard of him/her. lol
 
@Rapptz so you know opengl then?
 
nope
 
@Mysticial Oh, apparently he's famous
 
@AlexM. Those "Introduction to..." books in 2nd, 3rd, so forth editions. Feels like the author's saying "The first edition didn't work, let's try again!".
 
@AlexM. Were you here when I talked about "Game Engine Architecture"'s 2nd edition?
 
2:41 AM
I think so, yeah
 
you mentioned it's going to be released soon
 
It feels weird listening to MJ.
Considering he died.
I didn't use to have this feeling
I think the pizza's getting to my head.
 
@MarkGarcia that's one way to put it
I don't mind listening to dead guys
 
I don't either.
 
2:43 AM
^ favorite track
 
I'm having some trouble here:
 
@AlexM. TIL the author works at Nintendo.
 
//this works
gl::TexImage2D(gl::TEXTURE_2D, 0, gl::RGB, width, height, 0, gl::RGB, gl::UNSIGNED_BYTE, texturedata.data());
//why doesn't this work?
gl::TexStorage2D(gl::TEXTURE_2D, 1, gl::RGB, width, height);
gl::TexSubImage2D(gl::TEXTURE_2D, 0, 0, 0, width, height, gl::RGB, gl::UNSIGNED_BYTE, texturedata.data());
 
Why can't anyone here start a modern C++ game from scratch dammit?!
 
Because it's hard.
Gamedev resources are amazingly bad.
 
user3010322
2:44 AM
I already started. <3
 
@Rapptz That includes me.
 
the song moves like sea waves
I'm such a poet ~
 
Beat It is my favourite MJ song
 
@MarkGarcia take a look at Arx Libertatis
they're trying hard to move the codebase to modern C++ 11
and to implement stuff like unit testing
and so on
 
looks.
 
2:45 AM
@MarkGarcia The C++ game engine (which was pretty basic) I used for a class in uni was 25kloc. I don't have the design expertise nor the time to write all that code. And that was just the engine theres no game related logic in there.
 
there are few contributors though
 
Plus I should mention some chunks were purposefully left out so that students had to implement them (like physics and sound)
 
a single guy eclipses everyone else's contributions
 
@Rapptz Remake of an old game, using its resources is pretty easy (I mean, you don't need to make the resources themselves) (except for the reverse engineering part). I really like to create an open source Hardwar remake.
 
I did some refactoring some time ago, but it was meaningless in the grand scheme of things
 
2:46 AM
anyway, bed time
cyall
 
@AlexM. lol. At least they're doing something positive.
 
night
 
@Borgleader Good night.
 
@Borgleader nite
 
I'm just bad.
:v
 
user3010322
2:48 AM
> The source code is availbale under the GPLv3+
 
user3010322
FUUUUUUUUUUUUCK that.
 
I'd go back and contribute
but I had a hard time grasping the whole code base
must be my lack of C++ experience
 
Maybe it's your Unity experience instead.
 
@ThePhD I think that was imposed by the guys at Arkane Studios
when they released the sources
 
user3010322
They certainly have much more than I do, though.
 
user3010322
2:50 AM
AI, Animation, etc.
 
@Rapptz that may be true too
 
We lost to Belgium? Maybe we should just disband our soccer program.
 
@ThePhD well it's an AAA game
turned open source
arx fatalis was an amazing RPG
 
user3010322
Mmm.
 
it was supposed to be ultima underworld 3 but the licensing never happened
 
2:52 AM
At least I got a nicer bootstrap.py now
 
arx fatalis is also the last, most recent 3D game that was playable on my old ati 3D rage pro with 4mb of vram
 
user3010322
I don't fucking get it.
 
?
 
user3010322
My triangle hit test implements the MOllere-trombore algorithm in the dumbest manner.
 
user3010322
I literally follow the pseudo code, step by step.
 
user3010322
2:54 AM
Still fucking up.
 
@ThePhD s/My triangle hit test implements/I implemented/ :P
 
user3010322
I don't know what to do, man.
 
user3010322
I really don't.
 
user3010322
I need help, but I can't really ask anyone to debug my shit.
 
user3010322
I don't even know where to begin.
 
user3010322
2:58 AM
Whatever. I'll think about it later. At least sol is working.
 
I'll give it a shot I guess.
Lemme see.
I like how this pseudo-code is in C
 
it's pseudo-C
 
user3010322
@Rapptz Don't bother, I'm sure the bug is entirely somewhere else.
 
user3010322
And I'm just being a dumby dumbdumb.
 
reading a char would only read one byte right :v
So reading 11 would give me 1 and 1
 
3:03 AM
Maybe the EPSILON value is off.
Oh, it's defined.
 
I'm bored
:<
I need to stop deleting my files when I don't like how it's going
I just end up rewriting it
I just realised Nicol Bolas has been inactive.
 
lol. I just checked his book now.
 
I wish Nicol Bolas was my sempai.
 
3:19 AM
well that was dumb
 
?
 
the whole time the error was caused by me putting gl::RGB instead of gl::RGB8 as one of the arguments in gl::Texstorage2d
 
@Rapptz what do you think of their code style guide? wiki.arx-libertatis.org/Code_Style_Guide
it struck me as uncommon, though I haven't seen many in my life, obviously
 
first thought: lol hungarian
 
pure trivium
 
3:23 AM
@AlexM. doesn't seem too insane
seems okay
I guess
 
@AaronKyleKilleen At least it's better than typing R8G8B8. :)
> i++;
 
We should make a Lounge<C++> coding style :p
 
@MarkGarcia yeah I was trying to switch from teximage to texstorage and texsubimage. teximage and texstorage both have an argument titled "internalformat" but apparently they are different but not enough to cause compiler warnings
@MarkGarcia I read that immutable storage is recommended because it lets opengl optimize better
 
What's gl:: anyway?
 
a library called glload
instead of glew
 
3:29 AM
Oh.
Nicol Bolas.
 
I needed it for other unofficial opengl sdk stuff
 
That is also Nicol Bolas.
12 mins ago, by Rapptz
I wish Nicol Bolas was my sempai.
 
who's nicol bolas?
all I can find is a MTG card
 
oh
then I guess he doesn't look like this
 
3:32 AM
His name is a reference for the card
 
I see
so he's a game developer you don't hate?
 
Yup
He actually knows C++. And he's pretty good at OpenGL.
 
@AlexM. You'll never hate someone who creates something like this: arcsynthesis.org/gltut/index.html
 
yeah I was going through that tutorial right now
 
yeah I've been learning opengl lately too I just pick a topic and switch between many tutorials, but don't examine their code to carefully and figure out how to implement it building off of what I already have coded
 
3:35 AM
it has stuff about shaders
 
The very first example with OpenGL has shaders lol
I guess he doesn't fuck around
 
what do you guys think of the opengl superbible?
 
@ThePhD Could you help me understand this sentence?
> Simple DirectMedia Layer (SDL) is a cross-platform development library designed to provide low level access to audio, input devices, and graphics hardware via OpenGL and Direct3D (i.e. not DirectX).
What the hell does (i.e. not DirectX) mean?
 
well I guess directX includes direct3d and audio and other stuff
 
I guess.
 
3:39 AM
I don't know, use glfw3 imo
 
I didn't think about it that way cause DirectSound etc are deprecated
In fact
I think Direct3D/2D and DirectWrite are the only non-deprecated things
but I could be wrong
 
user3010322
DirectX is a whole-package which includes DirectInput (Deprecated), XInput, XAudio(2), Direct3D (the main bit), and Direct2D
 
user3010322
DirectWrite is also part of that package, put plays nice with other parts of the OS.
 
There's DirectX Math.
 
If I don't stop being bored, I'll be like my friend and end up playing H-games for fun.
 
user3010322
3:46 AM
Quit being a scrub and make a game.
 
Being a scrub in my genes
Don't taunt me.
 
user3010322
It's not in your genes, though.
 
@ThePhD hey 2006 called and they want their insult back
 
user3010322
:D
 
3:48 AM
Man.
I don't like how /agdg/ and /r/gamedev share members
It's awkward.
This art is beautiful :(
I'm legitimately jelly.
@ThePhD Well, I need to learn how to git gud.
 
@Rapptz That looks pretty. Where is that from? :o
 
A game on 4chan.
 
4:04 AM
some normal mapping I did: imgur.com/r3nurwa
well I disabled the color texture so I could actually see the bumpiness
but I consider it a success
any tips from anyone?
 
Bad question of the day:
-1
Q: WANT TO PRINT PERCENTAGE VALUE OF LABEL ON BAR WITH REPECT TO HIGHEST LABEL VALUE

user3793615i have made a bar chart using jfree chart. 1. set domain axis label-"Category", range axis label-"value". 2.have the dataset add with following arguements..(Number value,Comparable rowkey,Comparable columnkey) ![enter image description here][10] BUT: 1.I DONT WANT TO SHOW MY LABEL VALUE DIREC...

 
couldn't that have just been "how to label bar charts"
I mean I'm assuming he understands division well enough
 
 
Xeo
@ThePhD nope, missing the normal data-pointer case!
 
user3010322
Eh??
 
@AaronKyleKilleen it's a division by space
 
^^ hehe
 
hehe I got in between :P
 
Xeo
obtw, I noticed coliru is semi-usable on mobile now
 
I didn't change anything recently.
 
4:19 AM
@StackedCrooked Should update his Ace editor.
 
Xeo
there are a few lines visible from both the code box and the shell box
maybe FF did
 
what kind of graphics things are you guys working on coding?
I just assume that everyone in here is way more advanced than me
 
user3010322
template<class Sig, class C>
void set_v( std::false_type, Sig C::* mem_ptr ) {
    std::cout << "Member function pointer, signatured\n";
}
 
user3010322
@Xeo ^ Thi is it?
 
Xeo
T* when it's not a function pointer is what I mean.
int* n stuff
 
user3010322
4:31 AM
But.... why would anyone pass that in?
 
user3010322
Is that a thing that INVOKE handles?
 
I have an invoke thing in gears if you actually need it
 
Xeo
@ThePhD nah. but it's currently possible to pass that and get a nasty error in the bowels of sol, no?
also, if you allow member data pointers, why not normal data pointers?
 
^ This is a nice track.
 
Xeo
Rewrite is full of nice tracks
oh yeah also, @ThePhD, you still don't give a sensible error for 'magic' failure when trying to deduce the signature of a functor
 
user3010322
4:35 AM
How would i evne do that?
 
Xeo
I told you that before too...
 
user3010322
I can test "is this thing overloaded?"
 
user3010322
Can't*
 
Xeo
make a trait that checks if decltype(&F::operator()) resolves. Just put that expression in a SFINAE context
 
user3010322
How do you check if it resolves?
 
Xeo
4:37 AM
I just told you!
 
user3010322
Run it through function_traits and see if anything comes up?
 
user3010322
But wait
 
user3010322
If I just SFINAE...
 
user3010322
That doesn't let me print out a static_assert warning
 
user3010322
Or, maybe, I can...
 
Xeo
4:39 AM
...
 
user3010322
std::is_member_function || std::is_function || std::is_member_pointer
 
Xeo
u suck
 
user3010322
No!
 
user3010322
I just need to SFINAE, right??
 
user3010322
An overloaded set can't trigger any of those, so it'll just fail silently, right??
 
user3010322
4:40 AM
I'm trying don't judge me! ;~;
 
Xeo
...
3 mins ago, by Xeo
I just told you!
 
user3010322
You said put it in an SFINAE context!!
 
user3010322
Question
 
user3010322
template<class... Args, class R>
void set( R fun_ptr( Args... ) ) {
    std::cout << "Function pointer, argumented\n";
}
 
user3010322
^ That's not really a function pointer, is it?
 
user3010322
4:46 AM
It's more like a function... value.
 
Xeo
@ThePhD it is
 
user3010322
Also, is it possible to have a function reference?
 
user3010322
Like R (fun_ptr&)(Args...)
 
Xeo
C(++) automatically transforms R name(Args...) to R (*name)(Args...) in signatures
 
> Report to your rant management professional immediately...
 
Xeo
4:48 AM
@ThePhD R (&name)(Args...)
 
lol
 
Xeo
and yes, it's possible
note that there are no member references though
There, SFINAE context.
 
user3010322
Oh
 
user3010322
I tried to just do it with a std::enable_if type deal...
 
user3010322
Oh well.
 
Xeo
4:50 AM
13 mins ago, by Xeo
make a trait that checks if decltype(&F::operator()) resolves. Just put that expression in a SFINAE context
I TOLD YOU
 
user3010322
BUT THAT'S THE TRAIT WAY AND IT TAKES AN EXTRA STRCUT ANDS TUFF
 
user3010322
I wanted to do it structless
 
Xeo
no, fuck you
 
user3010322
But it keeps giving me ambiguous overload errors. :(
 
Xeo
tag-dispatch on has_deducible_signature and print a proper error in case it's not deducible or something
 
user3010322
4:51 AM
Sigh...
 
user3010322
I was just gonna SFINAE the thing
 
user3010322
and then have another one with not-SFINAE
 
user3010322
And then static_assert there.
 
Xeo
SFINAE sucks for error messages.
 
user3010322
Ooh
 
user3010322
4:53 AM
I can use has_deducible with functors.
 
user3010322
And have function_traits work on it
 
Xeo
...
 
user3010322
as long as it's not overloaded.
 
user3010322
Kinky!
 
Xeo
wat
what else did you think that trait was for?
it works for nothing but functors, because it was made to operate on those
 
user3010322
4:55 AM
I meant I was just cominbining it with function_traits...
 
Xeo
wat
 
No point.
Just remove function_traits
 
user3010322
function_traits is totes useful.
 
@ThePhD what are you trying to achieve? some kind of introspection system?
 
user3010322
@Xeo We actually can't allow member data pointers, because the syntax myuserdata.a = /* stuff */ and local a = myuserdata.a is impossible to hook-up to C++ from lua. So I'd either have to make automatic setters/getters (myuserdata.a() to get and myuserdata.a( /* value */* ) to set)
 
user3010322
4:59 AM
Or do some crazy userdata-in-userdata-with-max-funky-metatable
 

« first day (1355 days earlier)      last day (3579 days later) »