« first day (142 days earlier)      last day (949 days later) » 

3:05 AM
Alright time to work on my projection and view matrices
 
gl
 
Well I found the equations already. I looked at the orange book and the engine we used for one of my courses.
So once I'll have a spinning camera, I'll work on loading models with OpenSubdiv, and see how well that fits the bill.
 
3:25 AM
I can't use unique_ptr
lol
too many errors about copying
rather not deal with it
Even my most basic example gets compiler errors
 
eh...
 
I do not approve of this usage of operator &&
 
It's supposed to be for stuff like Ctrl + Alt + X
remember this?
I'm just remaking it because the last one had a bug
Now, I would have used + instead of && but I have no equivalent for ||
 
Ctrl + Alt + X? o.o nope doesn't ring a bell
 
3:31 AM
Maybe it was ThePhD
Coulda sworn you were there
Jul 15 at 18:00, by Rapptz
blue::Action a(sf::Event::Closed, Action::PresseOnce);
blue::Action b(sf::Keyboard::X, Action::Held);
blue::Action c(sf::Mouse::LeftButton, Action::Released);
blue::Action d = a && b;
blue::Action e = c || b;
 
I'm coding with the soundtrack of SW:ToR
 
You were there
 
epic shit is going on
Oh.... that
 
yes
So do you have an alternative for ||? :)
 
To go with + ?
 
3:43 AM
yes
or anything to replace + that matches really
 
imo only comme operator makes sense. as in it defines a list of possibilities
 
that's awful
lol
(a + b) | (c + d)
 
4:14 AM
For some stupid reason my code to get the uniformlocation works on my older project but doesn't in my new one
i essentially copy pasted the shader code from one project to the other
 
4:28 AM
Huh... they were being optimized out because I wasn't using them.
 
5:21 AM
this is why reflection doesn't work in C++
and why I hope it never gets accepted
optimising unused code is a really good thing
 
it was glsl shader code but fine :P
I could see use for compile time reflection. Basically the ability to call upon type data at compile time to create templates.
which could then be used for (de)serialization and i imagine other things
 
it's called templates mate
and traits
@@@
 
it's more complicated than it should be
 
to the untrained eye
 
or it could be an opt-in type deal
@Rapptz that just proves my point. an untrained eye should be able to pull off reflection, easily
 
5:26 AM
Okay shoot, what do you want to be in reflection?
I feel as if I have no understanding what it is because people seem to throw it around like it solves a million problems.
 
Let me reverse engineer Cryengine's reflection system and then I'll tell you.
For now, I want an easy (TM) way to get a list of members (with types) and member functions (with return types and parameters). As of now the best thing you can do is probably close to that abomination we pulled off the other day for the "automatic operator +"
 
So you want stringly-list programming?
 
stringly-list?
 
glorified uses of strings
think setattr
 
Well, for (de)serialization, being able to, for example, read an xml representation of an object and being able to associate the name of the member with its value is really useful
 
5:31 AM
setattr(x, "Lol", 24) is equivalent to Lol.x = 24
(also for the record, unless I'm misreading, that's type introspection and not so much reflection)
 
Well, I'm not asking for the full C# reflection system. So maybe type introspection is a better word.
 
anyway, okay. You want something to be done easier despite the fact it already exists in another format.
Cool.
understandable
 
I was thinking how you can instantiate a map with like... { {"a", 1}, {"b", 2}, ...}
 
?
you can literally do that
 
(I'm not done, I accidently hit enter)
What if there was some sort of language facility so that you could call like list_members(MyType) and it would example to { {"x", {int, MyType::x}}, {"y", {int, MyType::y}}, ... }
 
5:37 AM
still stringly-typing :P
 
Now I easily have the information I'm looking for, I didn't have to type it by hand (meaning not user errors, it doesnt go out of date) ... and i can easily do (de)serialization
 
You would be able to do that if you can solve the type-erasure identity crisis problem as I like to call it
the problem is easily solved if you don't want it to be a compile-time construct
typeid etc
I think ThePhD has an any without identity crisis.
I'd have to look for it
 
I don't know exactly what format cryengine uses, but UDK/UE3 spits out its reflection/type introspection in this format:
defaultproperties
{
   IntVar=3
   FloatVar=2.5
   StringVar="This is a string"
   ArrayVar(0)=2
   ArrayVar(1)=4
   ArrayVar(2)=7
   ArrayVar(3)=1
}
Basically, in Unrealscript when you create a class, and you set default properties what you,re doing is basically writing the information in UDK's type introspection/reflection format. (I realized this when I discovered you could take Kismet graphs and copy paste them to/from notepad)
 
Oh he does it with typeid
what a waste
If the committee finds a way to do this without ruining optimisation and keeping every unused class or object then go nuts
but if it messes with it then it is a very very dumb decision
 
lol they wont do it, it's just wishful thinking on my part
and i dont know nearly enough about c++ to make a proposal of any kind
(although there seem to be some already)
 
5:44 AM
there's a static reflections group made yesterday from the Chicago meeting
 
static reflections?
 
doesn't fuck with things in runtime
like making a new class at runtime or whatever crazy shit people seem to do
 
oh, yeah, im not looking at making types at runtime
that's crap
I want easy (de)serialization, and probably being able to call methods on other classes (which yeah is string-typing but what can i say in some cases its useful as fuck. id have to find the examples in game engine architecture oh wait i forgot you think all game programmers suck)
 
I've never once longed for it
Actually, that's wrong
I did once.
but then I realised how retarded I would have been to think about it
I wanted to do something like auto operator+
and have it bind to a certain function rather than +=
(the operator in question was operator|)
 
The thing with games is that a lot of it is run by data now. Either kismet graphs or what have you. And these systems usually work with names so at some point you have to match these names to an actual member function. And building this "database" is quite a bit of work. (De)Serialization fits into this, a lot of data has to be written out and read from files and having a type instrospection system allows basically one thing to take care of reading/writing any class.
 
5:54 AM
Man.
Whenever I get a nostalgia hit something weird always happens to me. Like I'm awestruck or something.
 
Isn't that inherent to nostalgia?
 
for me I literally stop what I'm doing
and kinda bask in it
Stupid action mapping
I actually like this song.
Also, Qt Creator is a lot better than I thought
I'm using it as an IDE with a custom build system
not even CMake or anything
(but rather my own)
 
6:13 AM
You put Ninja in Qt Creator?
 
yes
 
neat
 
Yeah you just go into "Custom Build Steps"
and then you put the executable and arguments
then it binds it to Ctrl + B
finally found these again
 
6:32 AM
I've heard of something somewhat like this before. I think it was on Invisible Walls (a show on gametrailers.com) and one of the guys there was saying that he gave a bad review/preview for a game (might have been hydrophobia, not sure, it's been a while) and some PR person from the company got in contact with him about it
 
It's obvious
a lot of game journalists have been fired from bad reviews
 
and he/she was like "no but you missed this and didn't understand that, etc" and he was like "look when im playing the game the devs arent here to tell me how to play. if its not obvious, its a problem"
he didn't actually end up losing his job IIRC
 
I'm choking on water
so I drank more water
and now I'm coughing like a madman
 
you nub :P
Startd reading Clean Code today. The book started with:
> The only valid measurement of code quality is: WTFs/minute
I have a feeling I'm gonna like this book
 
I'm listening to One Week.
It's such a weird song still
 
 
4 hours later…
11:02 AM
 
 
5 hours later…
3:37 PM
what the fuck
 
 
5 hours later…
8:35 PM
 
8:47 PM
fuck 4chan
 
why
 
The ratio of good to bad stuff is like... 1:10 000
 
you've never been there have you?
 
a few times
i also knew a guy who kept sending me weird shit from there
 
 
2 hours later…
10:37 PM
I've been trying to find out why this doesn't work for a good 2 hours now :/
Well.. more than 2 hours. More like 4.
 
What's this ?
 
the action mapping thing
 
(ctrl & w) works
but (ctrl & w) | k fails
sigh
 
11:12 PM
trying this idea
looks like a monster
 

« first day (142 days earlier)      last day (949 days later) »