« first day (1253 days earlier)      last day (3921 days later) » 

user3010322
15:01
OKAY
user3010322
BUFFER VIEW ALL DONE
user3010322
Finally. Jesus.
why don't you just trust in the Herb?
user3010322
I do trust in the herb. I just implemented his proposal.
user1804599
15:04
You can’t just trust random herbs.
user1804599
They may be toxic.
user1804599
@StackedCrooked is there really the split second black screen between commercials?
user1804599
I like that. I saw it in MGS4 too.
@melak47 Because he's a moron?
15:06
@rightfold epic :D
I remember this song from Kiki's Delivery Service.
note to self
It's this one. (Kiki is Miyazaki's best movie imo.) .. This is also good.
do not burn goddamn mouf
user3010322
@DeadMG ;~; I am not!
15:09
wut
@ThePhD No, I meant, because Herb is a moron.
user3010322
Oh.
user3010322
.... Uh. Well okay. :D
o_0
so erm... I somehow managed to paste four copies of something I just type in vim...
twas a few lines... then they just appeared man times...
user3010322
Ghost in the Vim.
user1804599
15:12
@thecoshman 10p pastes it ten times.
@rightfold ... if I do that ten times do I pound it?
SCNR
user1804599
10ihello<esc> inserts hello ten times.
huh... I don't thinK typed any numbers...
maybe
user1804599
You probably did, but unintentionally.
apparently so :P
15:15
what do you use for charts in wpf?
so yeah anyway... I have an interesting idea for a sort of game thing... but would require a fair of story for it to be half decent... anyone have any interest in helping write the story for a text based adventure game?
user1804599
@JohanLarsson I think you are better off asking that in the C# room.
user3010322
Woo!
user3010322
Much const correctness, so wow~
@rightfold yeah maybe, just threw it out there since I know that there are some wpf guys here maybe not right now though
two more upvotes, then you stop right?
user1804599
15:19
What?
then I'll have 4054 and you 4052
user1804599
Hmm.
13
Q: Be able to edit a vote on an answer if the question is changed

marcggHere's what just happened: Question: "How do I do X and Y, I can't use flash" Answer: "Well, use this flash player!" I downvote the answer saying "yeah you're right, but the OP said no flash so -1" The OP changes his question "edit: lololol in the end I can use flash" I can't edit my vote unles...

+1
user3010322
I don't have enough meta rep to comment or do anything.
user3010322
So Ican't upvote, or downvote, or even comment! :D
15:33
Do you guys have a printer?
user3010322
Nope.
I haven't had one for many years now and my life is much better.
@StackedCrooked the misses does
@ThePhD +1
user3010322
Printers are kinda shitty.
user3010322
15:34
They're often prone to breaking, many come with massive amounts of bloatware, and the cost of ink is just completely injustifiable.
Paper is less strain for the eyes, easier to mark wip, easier to spread out a dozen pages at once and still be able to read them.
@ThePhD Yeah. And they suck too.
I can use the printer at work or the library if I really need something.
@ThePhD phf, laser printer or GTFO
@thecoshman I don't dislike printed paper.
user3010322
Same.
user3010322
15:35
But printers are somewhat of a nightmare.
I sometimes use code printouts to discuss a new code design.
That works pretty well.
ink jet printers suck ass. Laser printers are like a drim
@StackedCrooked I almost always print out code when I need to read through it to work out WTF is going on.
It's just so much easier for me to work with
Color printers really have lost their usefulness. Either I share digitally or I use a photo printing service.
oh yeah, I only have a b+w printer
printers really are a last-century technology
maximal inconvenience, maximal cost, poor returns
user3010322
15:40
What I need now is digital paper.
They are still useful at the workplace. But as a consumer device, yeah.
And of course industrial printing is gonna stay here for a while.
@StackedCrooked For what, printing memos so you can walk around and hand them to your colleagues?
I don't use it a lot.
@DeadMG not that bad really, the one I have is small enough, and light enough to be tucked away when not needed. Cost is rather cheap, still rocking the 'sample' cartridge it came with. Great returns, printed paper is so much easier to work with, and like I've said, such less strain on the eyes.
But sometimes I print an RFC spec because I find that easier to read. And I have used code printouts for discussion of new designs.
15:42
I don't get why office printers are as fucking huge as they are.
They are still only a b+w A4 printer, but they are fucking monsters in size.
Sure they have a scanner on top, and rather large paper trays, but still.
probably easier maintenance
it's also a lot easier to just print out some notes that you need to work with then having to keep that window open and flick back to it. I can still look down faster to a sheet of paper than swap through to another window.
@thecoshman That just means you don't possess enough screens.
I just need to resolve my slight problem with getting rid of paper I no longer need :P
@DeadMG it's not just a case of number of screens. Screens are still screens and are terrible for looking at.
any way, I'll catch ye latter
15:46
Semantically, what does int(x) mean? Is it a cast like (int)x?
or is it a constructor syntax?
in C++ it is a cast.
user3010322
Does double have an endianess?
user3010322
Or float?
user3010322
They shouldn't, right?
user3010322
15:50
double gets written to stream on big-endian computer as-is
user3010322
read it from a little endian computer, just taking the bytes as-is
user3010322
Will the result be different on the little-endian computer?
does it matter in which order the bits and bytes and bobs in a float are?
I think so.
user3010322
Probably.
user3010322
I can't use bitshifts, they're not defined for double and float.
user3010322
15:51
I guess I'll serialize into respective byte arrays and memcpy out.
I've never seen a floating point being used in network packet headers or so.
If you want a portable way to serialize them then I'd look at IEEE spec or something.
wikipedia says IEEE doesn't specify endianness :3
they totally do have an endianness.
though it says you can assume same endianness as ints
user3010322
Well then, guess I need to apply funky serialization.
15:53
@melak47 big-endian is normally the portable representation
user1804599
If you have material and geometry abstractions, how do you do texture mapping?
user3010322
Can I partially specialize member functions?
user1804599
Do you apply different materials to different faces?
@ThePhD No.
user3010322
@rightfold Provide UVW for each hit coordinate.
15:54
@JohannesSchaub-litb nah, I agree with Jeff
user1804599
@ThePhD Where/when?
user3010322
@DeadMG Well, titbagels.
I might opt to serialize it as a fraction.
user1804599
I like tits and bagels.
user3010322
@rightfold When you draw it. You have to get to the real data sometime, right?
15:54
@ThePhD The usual hacks apply, though- forward it to a struct with a static member or something and then partially spec the struct.
user1804599
So you just have like another abstraction texture_map?
14
A: Portability of binary serialization of double/float type in C++

Sylvain DefresneBrian "Beej Jorgensen" Hall gives in his Guide to Network Programming some code to pack float (resp. double) to uint32_t (resp. uint64_t) to be able to safely transmit it over the network between two machine that may not both agree to their representation. It has some limitation, mainly it does ...

@rightfold what kind of rendering are we talking about here
I think string representation is also an option in some cases.
user1804599
@melak47 OpenGL. :V
user1804599
15:56
Say I want to render a crate but one of the faces has a different image than the other ones.
you're screwed :v
user1804599
I’d have a geometry representing a cube.
user1804599
But then what? :v
@rightfold Why on earth would you have per-face anything?
user1804599
I need to store the texcoords somewhere.
15:57
either have unique UVs for each side, so you can mix&match as you like
oh, wait, cubes.
@rightfold ...in the goemetry?
user1804599
@DeadMG Because one face looks different from the others.
user1804599
@melak47 Why not in the material or in a separate data structure?
@rightfold Yeah, I just forgot that per-vertex UV maps don't work tremendously well with something like a cube, if i recall.
15:58
@rightfold I thought your material was abstract. how would your material know how to assign UVs to particular fragments of your cube? o.O
user1804599
It doesn’t, I guess. :P
user1804599
I’m a little puzzled.
user1804599
you could have a texture atlas of all your cube face textures, then pass 6 xy offsets into your shader
user1804599
This is the texture in question.
16:01
then add the offset to each faces' vertices' UVs in a geometry shader or something
frankly
it's only a cube.
just duplicate the vertices.
but it might be easier to just draw the stupid faces :p
@DeadMG and then? he still needs to set the texture per face some way
simple per-vertex UV can handle that.
???
what other kind of UV is there :p
user3010322
Draw 6 quads,one for each face
user3010322
16:05
this allows you to have unique UVs
user3010322
You can paste the UVs onto the faces that way, then, by giving it the right texture coordinates
user3010322
If you try to simplify the cube any further, you end up with too many UVs going to the same face's vertex
user3010322
and that will screw up hte geometry
user3010322
As a rule of thumb, each separately texturething should be its own face, composed of as many triangles as possible to keep detail (or mapped with clever UV tricks, like those used in 3ds max and friends)
user1804599
I want to do the high-level stuff first.
16:08
0
Q: OpenCL Kernel not compiling?

Cool_CoderFollowing is my kernel: #ifdef FP64 #ifdef cl_khr_fp64 //Khronos extension available #pragma OPENCL EXTENSION cl_khr_fp64 : enable #define DOUBLE_SUPPORT_AVAILABLE #elif defined(cl_amd_fp64) //AMD extension available #pragma OPENCL EXTENSION cl_amd_fp64 : enable #define DOUBLE_SUPPORT_AVAILABL...

Anybody over here with an interest in OpenCL?
user3010322
No
user3010322
It looks horrible. ;~;
yes, I have an interest in downvoting people who dump OpenCL questions here
@melak47 it's not as simple as that, you can't have an infinite width/height texture
well as far as I remember that is not possible
I'm kind of sad about people...
@ThePhD whut?
user1804599
16:13
I think I will make texture part of material.
I went on a site kind of dating site where people write that they're looking for someone or that they simply want to talk... from all the person that answered to "Hi, want to talk?"... the only person that answered is the person that I insulted with a bad joke
is it that hard to have discussions with random people?
user3010322
@melak47 Like, if you tried to simplify the drawing of the cube (using triangle strips or something) you'll mash vertices and lose some necessary data to keep UVs separate.
Some people just cant stop themselves from showing off just because them some virtual points in thousands. Just reflects your attitude.
what does any virtual points have to do with anything?
I don't understand anything he said
16:16
your attitude, apparently :v
user1804599
And with this for a simple start:
user1804599
struct geometry {
    std::vector<glm::vec3> vertices;
    std::vector<std::array<std::size_t, 3>> triangles;
};
According to Agner internal profiling is sometimes more reliable than profiling tools:
> Sometimes, the best way to identify performance bottlenecks is to put measurement instruments into the code rather than using a ready-made profiler. This does not solve all the problems associated with profiling, but it often gives more reliable results.
user1804599
Well, with some encapsulation to guarantee some stuff.
Does anyone know about libraries that can do this? Or commonly used techniques?
user1804599
16:17
You can then change the material per triangle.
so one draw call per triangle? :D
@StackedCrooked well It's hard to say, the closest thing I ever done that is like profiling for speed is to measure time of executions, and how many iterations are done... (but that really depends on the code and if you know almost where the bottleneck is)
user1804599
@melak47 Why would I need one draw call per triangle?
user1804599
I can keep a dirty flag to indicate whether the material of a triangle has changed.
@LoĂŻcFaure-Lacroix I guess.
16:20
In scheme there is the "time" function that prints how much time and how much mutation got executed.. so you can check how bad your code is running by putting "time"s in the code , it also print things about the GC etc
user1804599
And group the triangles by material.
user1804599
Oh wait, that doesn’t work well with different texcoords. :P
user1804599
Nevermind.
> Today, at the InContext Conference, Mozilla and EverythingMe showed off a sneak-peak of the upcoming release of Firefox Launcher for Android.
I need that
I'm a bit confused. What is the desired high level result you want?
user1804599
16:23
geometry is a collection of triangles. material describes how it should be rendered.
user1804599
But I’m not completely sure where to store textures and texture coordinates.
texcoords go in the vertex.
user1804599
That’s at a lower level.
er
try "The level of the API with which you are working".
which I am pretty sure does not really have the concept of "triangle" except that three vertices happen to denote an area which is a triangle.
they do not permit you to send per-triangle data or receive it in a shader
er...
user1804599
16:25
A triangle is just a triple of vertices.
user1804599
Nothing else.
which is immaterial, since you don't get a triple of vertices to work with in your fragment shader.
I'm pretty sure, anyway, I'm not wholly sure on the differences between D3D and OGL but I'm pretty sure they're quite similar in this regard.
where are you gonna put the texcoords if not the vertices? :v
user1804599
Wait, I know.
@DeadMG well, you might be able to put it in an instance buffer, and then get per instance "per triangle" data
but that's not really different from just giving the same thing to each vertex :p
user1804599
16:29
Geometry will just contain a bunch of vertices.
user1804599
I will have a generic (variadic template) structure that I can use to create triangles and add extra data to them using tuples such as their vertex indices and texcoords.
no, no, no.
just forget about triangles; they are unimportant.
you can only add data to each vertex
user1804599
Ok.
user1804599
As long as I don’t have to store the texcoords in the geometry, it’s fine. :P
16:33
@rightfold You absolutely do.
or rather, you do if you want your geometry to be rendered with a texture.
user1804599
SRP.
user1804599
So no.
@thecoshman phf 3D printer or GTFO
the responsibility of geometry is to hold the data you need to render it.
if you need to render textured geometry, the geometry needs to hold the tex coordinates.
user1804599
There need not necessarily be a 1:1 mapping to how OpenGL does things.
16:35
there does, however, need to be some mapping.
you can't just throw away the fundamental workings.
user1804599
In that case I can just store everything in the geometry.
yep.
user1804599
Including lighting stuff.
you have per-model lighting stuff?
well I know that some lighting stuff is.
Fixed the benchmark. Now doing 4 Mio/s expansions on my box, ~1Mio/s on Colirusehe 16 secs ago
16:36
so yes, do that.
I made the noob mistake of benching an unoptimized build before ... :(
user1804599
Nope.
user1804599
I have a better idea.
user1804599
But first: pizza.
@rightfold It's not SRP. You're not dealing with boring mathematical triangles. You're dealing with 3D mesh triangles which have some relation to boring mathematical triangles, but are a different kind of entity; a rendering primitive vs a geometric shape.
16:39
ultimately, a triangle mesh is of little use to anyone.
you need a model and that includes the relevant textures, tex-coords, and everything that is specific to that model.
user3010322
vOv
user3010322
Best I can do I guess.
@DeadMG Or, rather, any input to whatever shader will be used for that model.
@ThePhD I still don't understand the significance of 6, 2, 0.
(IOW it's still way far from the best you can do)
user3010322
16:43
@R.MartinhoFernandes Uh. The positions array has 14 items
user3010322
the first 2 are for how you arrange 2 bytes, the next 4 are for 4 bytes, the next 8 are for 8 byte things
user3010322
Still trying to decide if I should just keep using the 4-byte array for 3-byte things (int24, which is apparently a thing used a lot in DSPs for sounds).
Also, that's deserialisation.
user3010322
;~; it's in a detail namespace it doesn't mattteerrrr.
user3010322
... Or, maybe, it does.
16:46
right.
I don't even.
Hello everyone. Wondering if I can pick your brains for a SQL query I'm having issues with? :)
What do you think?
no.
ugh sql queries
16:50
Wait. What exactly is in the positions array?
@RehatKathuria without knowing sql nor ruby can you do something like > time < ?
6 mins ago, by DeadMG
no.
you should bin mine also for consistency :)
don't think you ever binned me
consistency is irrelevant.
i know what you mean
user3010322
16:56
Well.
user3010322
if I have an intermediate array
<KeyBinding Modifiers="Control" Key="Z" Command="Undo"/>
<KeyBinding Modifiers="Control" Key="Y" Command="Undo"/> <- bug :)
caught a bug today :D
user3010322
I don't have to specialize or overload hte function
user3010322
for single or double
for better or for worse
16:57
@sehe still bored?
user3010322
But I'm still not sure if it'll catch double and float's endianess... maybe I should just unpack it into a uint64_t or somethng
user3010322
Blah, I don't know.
@JohanLarsson Gotta love stringly-typed shit.
user3010322
WHATEVER, I'll figure it out when I get to networking and I can't just live in my cushy little-endian world.
@DeadMG yeah xaml is ugly, not as stringy as it looks cos schema

« first day (1253 days earlier)      last day (3921 days later) »