« first day (861 days earlier)      last day (4093 days later) » 

5:00 PM
@JerryCoffin deprecated
2 mins ago, by Bartek Banachewicz
can I just use glMapBuffer on the screen buffer?
 
Or don't use OpenGL at all and just draw with Cairo or something
 
...
it's meant as an gui overlay
 
1 min ago, by Cat Plus Plus
You could hardcode the colours in fragment shade, but that's stupid, just put down a quad and texture it
 
@BartekBanachewicz Open the reference card, grep for "Reading and Copying Pixels"
 
@StackedCrooked Did you see this one? (nsfwish) youtube.com/watch?v=hGgr8ZbeNgQ
 
5:02 PM
Also gotta love functions with 15 parameters.
 
@R.MartinhoFernandes yes!
@R.MartinhoFernandes that's trivial to wrap properly
 
@BartekBanachewicz I know.
 
0
Q: Equiv of glDrawpixels that operates on GPU memory?

anonglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const ovid *pixels); Is there a function like this, except instead of accessing CPU memory, it accesses GPU memory? [Either a texture of a frame buffer object]

Aww damnit
Martinho beat me to it. ;~;
 
user142019
> The first argument of ($) takes one argument, but its type m0 Response -> () has only one.
 
5:05 PM
heh.
 
user142019
Lol dat error message looks funny.
 
The guy's a gaming beast.
I want him to answer one of my questions one day. =[
 
You need to get out more.
 
but he is damn good
> This is quite new at present (GL 4.3, or ARB_copy_image). It cannot be used to copy data to the default framebuffer.
ouch
 
@BartekBanachewicz LOLWAT, that's a boss in MTG:Planeswalker 2013... and I realize now that's probably where he got the name
 
5:07 PM
@Borgleader i noticed that a while ago, when the guy named the same jumped into my steam game. And yeah, the card is much older
 
@Borgleader The character is much older than that.
 
@LightnessRacesinOrbit: That's not correct. There are many prvalues and xvalues that must have storage. For example a temporary array. Go back to PHP girly man. — user1131467 8 mins ago
:(
 
I just started playing MTG =/
 
@LightnessRacesinOrbit Gold badge in PHP is really biting you hard. :P
 
@ThePhD It might if I had one
 
5:08 PM
hahaha
 
@ThePhD xD
 
@Borgleader It's actually from before I started, which was about 15 years ago.
 
O.o damn...
 
I prefer WoW TCG
 
5:10 PM
FFS all three machines I'm currently using are popping up update offers for the latest runtimes for a certain 'cross-patform virus hosting language'. Doan' wan' no stinkin' j***
 
And it includes the Ask Toolbar!
 
@LightnessRacesinOrbit Whoa what happened to your gold PHP badge? =[
 
@R.MartinhoFernandes I dread the day where I'll fail to dodge that thing :(
 
Can't you refuse it, like Honours?
 
@R.MartinhoFernandes For free!
:D
 
5:14 PM
@R.MartinhoFernandes OGL device coords are -1, 1, -1, 1 by default?
 
user1182183
hm if I have a class, and it has no default constructor, and use it int a std::map<int,class> then how can I call the constructor where you can supply parameters? class class(a,b,c); map[1](a,b,c); does not work ; >
 
@GamErix map[1] = Class(a,b,c);
 
@BartekBanachewicz Not sure.
 
user1182183
@BartekBanachewicz then I have a compilation error "no appropriate default constructor" : (
 
user1182183
tried that : x
 
5:15 PM
It's been a while since I actually wrote any OpenGL.
@GamErix insert, or emplace.
 
@GamErix ah, I even know why!
^ beat me to it
operator[] tries to construct before even the operator= is invoked
and it uses default constructor, obviously
 
user1182183
hm ok got it working with emplace() , but now for example I want to call the method .SetPosition and it says again, no appropriate default constructor, any tips? ; o
 
@GamErix Do not use operator[] with a non-default-constructible type.
 
user1182183
@DeadMG ah okay, so at should be fine ;d
 
dunno
 
5:21 PM
how exactly does one obtain a "temporary array", anyway?
 
@BartekBanachewicz Texture coordinates?
 
user1182183
	fonts.emplace(std::make_pair(fontname,std::make_pair(size,flags)),CD3DFont(fontname.c_str(),size,flags));
	fonts.at(std::make_pair(fontname,std::make_pair(size,flags))).Initialize( pDirect3DDevice9 );
 
Xeo
Could somebody ping me please?
 
user1182183
yay compiles
 
@ThePhD window coordinates
 
5:21 PM
@LightnessRacesinOrbit alias<T[5]>();?
 
If you mean the texture space of open GL, it's upside-down of how your screen works.
 
user1182183
@Xeo
 
@Xeo I wubs yoou. <3
 
Xeo
5:21 PM
hmm
 
@ThePhD i mean if its -1 or 0
 
Xeo
Damn, I don't hear the ping. :/
 
lolololo linux
 
user1182183
Left GTA, going to mod NFSUG2 from scratch
 
^ this <facepalm>
 
5:22 PM
@BartekBanachewicz Oh. Um. If I remember correctly...
 
user1182183
:<
 
It's like 0 to 2, I think?
 
yesterday, by Bartek Banachewicz
And doing some real coding?
 
@Xeo personally I consider that a good thing, but I get the feeling you are wanting to hear it
 
user1182183
isn't that real coding? creating your own stuff based on nothing, just tutorials, books and , the real experience? ; p
 
5:23 PM
@BartekBanachewicz - always found @NicolBolas answers to be right, but rude - doesn't consider that most people don't follow the GL spec as religiously as he does, and he belittles people for it.
 
Xeo
Yeah, my headset is kinda... silent, right now.
 
@Xeo Raise the audio volume above zero.
 
Xeo
ha ha
 
#ifdef FURROVINEDIRECTX

	const float f_ndc_skew = 0.5f;
	const double d_ndc_skew = 0.5;
	const double normalizeddevicecoordinatesrange = 1.0;

#else

	const float f_ndc_skew = 0.0f;
	const double d_ndc_skew = 0.0;
	const double normalizeddevicecoordinatesrange = 2.0;

#endif /* FURROVINEDIRECTX */
 
user1182183
before i'm going to make my own game I still have to learn much xD
 
5:23 PM
@BrettHale that's the part of magic aura surrounding him, I guess. And well, I like following the spec
 
Tits, I hate markdown's spacing ands hit
 
@GamErix wrong. Modding a complicated game can be much harder.
 
@Xeo USB headset?
 
Xeo
Aye
 
@BartekBanachewicz ^ The above, OpenGL uses a 0.0 to 2.0 NDC
 
Xeo
5:24 PM
lsusb even lists it.
And I can select it in the sound control.
 
user1182183
@BartekBanachewicz I'm not going to make a whole multiplayer for it. just some car boost, camera options, auto pilot
 
Xeo
But I get no sound out of it. :|
 
user1182183
and I will see with what I can come up with
 
@Xeo Same things happened to me with HDMI q_q
 
@GamErix why don't you make a simple game instead? Tic-tac-toe?
 
5:25 PM
@Xeo You may laugh, but that's the usual cause! I've fogotten how many 'broken' monitors I've fixed by turning up the brightness, (CRT days).
 
it's not something stupid like you have the damn thing muted?
 
@user1653150 Hi!
Feb 20 at 13:59, by Lightness Races in Orbit
New here? Do us a favour, and read this.
 
Xeo
@thecoshman No, I didn't touch it after rebooting from Windows, and there I had sound.
 
@Xeo ping
 
user1182183
5:25 PM
@BartekBanachewicz console based one? don't click this
 
@thecoshman Yeah. Especially if the phones have one of those 'inline' volume/mute toggles that get trapped in chairs etc.
 
Xeo
@Mysticial :<
 
@Xeo You asked for a ping. :)
 
Xeo
@MartinJames Nope, volume control is on one of the speakers.
 
@BartekBanachewicz, Maybe so. But, at least once I've called him out for not answering a question, when he instead took the opportunity to deride someone's lack of knowledge.
 
5:26 PM
Bwoo
 
Xeo
And funny thing is, I can control my system volume with that.
 
@GamErix pastebin isn't working for me anyway
@Xeo neat!
 
user1182183
@BartekBanachewicz that pawntictactoe has even easy, normal and hard modes : P
 
@Xeo hmm... you might need to get twat around with ALSA configs to set it up as a valid destination for sound...
 
Xeo
So it's definitely connected and recognized.
 
5:27 PM
@BrettHale That's another reason to learn, learn, learn and become somebody even better than him
 
user1182183
easy - random placement, normal - some logical placement, hard - no one will win or the AI will win
 
@GamErix why. the fuck. pawn.
 
Xeo
@thecoshman Oh, that's a pointer atleast, thanks.
 
user1182183
@BartekBanachewicz I have made that years ago
 
@GamErix well then make a graphical game!
@user1653150 did you read the link I have sent you?
 
user1182183
5:28 PM
well when I saw how much code is needed to just make 2 triangles in DirectX..
 
I'm sure the Bin will be happy to help.
 
Don't use DirectX for tic-tac-toe
 
Anyone used the facilities of <random> much? I'm really impressed with it/
 
@GamErix lolwot, it's pretty much the same as N triangles.
 
@GamErix Use something simpler. Like SFML
 
user1182183
5:29 PM
@BartekBanachewicz ;o thanks
 
and OGL, if it was remotely decent, would be the same
 
Like Qt
 
@GamErix or Lua! Lua! Love2D or Corona
 
Xeo
@BrettHale It's neat.
 
(Don't actually use c++)
 
5:30 PM
@GamErix The amount of code does not increase linearly with the number of triangles.
 
use C#.
 
Did I mention Lua can be functional?
 
Why am I so fucking drained
 
But if you're on Linux, I don't know what your options are.
 
@Xeo there are two main things for sound, ALSA is one, PULSE is the other IIIRC... forget which one you want to twat around with for this shit
 
user1182183
5:30 PM
@R.MartinhoFernandes yeah I know but the most of the code I didn't even understand, dunno what tutorial that was
 
C++ algorithms are functional, so what
Being functional is not interesting in itself, the good things come with purity
 
@thecoshman When I was messing with HDMI, I had to go through ALSA for Ubuntu and Fedora.
 
@GamErix bad tutorial
@CatPlusPlus what's purity in your current context?
 
user1182183
@BartekBanachewicz or just me who can't read xd
 
yeah, fairly sure ALSA is where you set up devices that sound can go to
 
5:31 PM
eh, I never saw purity being an especially useful property
 
@GamErix SFML is pretty easy, but check out open.gl too
 
@ThePhD yeah, having to arse around to set up sound via HDMI is a joke
 
@thecoshman hdmi is usually controlled by graphics card driver or its part
 
@BartekBanachewicz Er
 
Is that an answer?
 
5:33 PM
@BartekBanachewicz not for sending sound over HDMI
 
@BartekBanachewicz Referential transparency.
 
@Xeo, I'm impressed. It's a good fit with C++, and therefore C++11. I suppose it could be extended, but unless you have crypto requirements (CSPRNG), I can't imagine anyone needing anything better than the Mersenne twister: std::mt19937
 
Isn't the Mersenne Twister divinable?
 
Also the isolation of side effects
 
Like, you can start to predict values once you get a certain collection of inputs?
 
5:33 PM
> An expression is said to be referentially transparent if it can be replaced with its value without changing the behavior of a program
 
@ThePhD All PRNGs are, dude.
@BrettHale That's actually the most common std::default_random_engine.
 
MT has an enormous state
 
@ThePhD - It's not a cryptographically secure RNG.
 
True enough.
@CatPlusPlus I implemented a Multiply With Carry for Random once.
It was.. interesting. [4096] buffer :D
Or maybe it was larger... I don't think I put it in this engine because I haven't needed random yet.
 
5:36 PM
Reinvent all the wheels
 
@R.MartinhoFernandes clang appears to use std::minstd_rand as std::default_random_engine.
 
It was for a system that didn't have any kind of random at all. =[
 
@ThePhD w. t. f
 
I think I'm excused! Gosh. D:
 
no, you aren't
 
5:38 PM
q_q
 
Xeo
Pfft, you being excused? How cute.
 
Well, note that I haven't implemented it ever again since then and I haven't used it in any of my projects thus far.
I'm learning! D:
 
q_q dis lounge so meen
 
5:43 PM
I wrote a portable mt19937 'class' in C a while ago, using a state struct. I didn't realize it belonged to a larger class of generators, like mt19937_64, and SIMD-friendly variants.
 
> Bill The Khronos OpenGL ARB Working Group
it's kind of old
I want a new book. Either Josuttis or something about OpenGL
> Plus: A bonus schematic poster of the OpenGL Machine for both the 3.0 and 3.1 versions of OpenGL
lol
 
oh fucking brilliant... I Search Google for my problem, and the first result is me asking in here
 
Lol
You're your own expert. :3c
 
¬_¬ I never got an answer that time
 
What was the question anyhow?
 
5:50 PM
When I run my windowing code for kyrostat so far, I get the following error Symbol 'glXCreateContextAttribsARB' has different size in shared object, consider re-linking. The thing is, that's a build time error isn't it? It doesn't make sense why I am getting it a run time. I am also statically linking to that library... or at least I thought I was.
 
@thecoshman - google 'iPreCog' knows what you will search before you search for it.
 
https://www.humblebundle.com/
Oh noes... only 5 hours left to raise enough money for Notch to shave his beard :(
 
lol
It's strange because: " ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== " yet it doesn't work to run the program — Marcus Ekström 3 mins ago
somebody's gonna get the rude awakening
@thecoshman can't you use glut or sfml?
 
No, that might cause the project to move forward
4
 
POD can have a ctor, right?
 
5:56 PM
(also glut is fucking terrible)
 
@Abyx If you = default the default one.
 
@BartekBanachewicz using glut or sfml sort of deafeats the idea of writing my own windowing library
 
@thecoshman ah, the cat got it right
 
and writing my own windowing library is now my primary focus, at least for the now
 
ah, I forgot. I thought you want to make a game
 
5:57 PM
Ahaha
 
I am stuck with font rendering. That's such a terrible topic -.-
I am doing a quad after all
 
@BartekBanachewicz I thought you were just doing that bitmap thingy.
 
@R.MartinhoFernandes I am.
It just takes soooo loong
uh.
 
What's so difficult?
 
Xeo
I CAN HAZ SOUND!!
 
5:58 PM
I am not using my wrappers, because that might get actually usable as a standalone
 
Use Cairo and draw over OpenGL viewport
Fuck OpenGL for anything involving fonts
 
@BartekBanachewicz perhaps at some stage, but I am enjoying writing this.
 
Xeo
It was all a matter of setting the default playback through .asoundrc to my headset. :o
 

« first day (861 days earlier)      last day (4093 days later) »