« first day (804 days earlier)      last day (4143 days later) » 

Ell
9:00 PM
Doesnt :/
I've been attempting to make a clone of it
Couldn't even manage height map terrain rendering :L
 
I got downvoted for some reason.
 
You suck
 
I guess I do.
 
@Ell Start small if you want to write games
 
Ell
Yeah, but even in a small game, terrain shouldn't be a problem
 
9:02 PM
Start with a game without terrain
 
Ell
I think I need to write a shader but I'm not sure, I think I probably need a book
 
My first "game" did nothing but render rain. On the Nintendo DS.
 
@Ell Nah.
 
Alrighty, solved #11. I think I need a break now :)
 
Ell
I feel like on line doc for game dev is much lacking in comparison to other areas of programming
 
9:04 PM
all you need to do, for an NxM piece of terrain, is generate regularly spaced vertices and set their heights from the map.
it's really dead simple
 
@Ell Well yeah; it hinges way more on experience and time-to-market; they don't have the time to document things.
 
one entry in heightmap = one height per vertex
 
You're looking for tutorials while you should be looking for research papers
 
I don't think that heightmaps are a topic of active academic research
 
Ell
I've got that far, but terrain is too jagged
 
9:05 PM
Then your height transitions are too abrupt.
 
Ell
and I don't know how to get it to look good at any level of zoom
 
Or your height multipliers are too high.
 
It won't look good for about 10 years
 
@Ell On that note, try adding some smoothing stuff, like intermediary points which take the average.
 
Google "heightmap smoothing" oh hey there's an article on the first place
 
9:06 PM
You can only make it look good enough
how much is enough for you is your problem ;)
 
You have to use a really fine mesh with better per-pixel values for your height map, change the height multipliers, or implement a shader which can average points and give it a smoother look.
Those are really your only 3 options when dealing with heightmaps.
 
There are a number of other algorithms and filters to get more natural-looking terrain generation.
There was one that uses a fractal pattern from a number of seed points... I think it was the basis of what Minecraft uses now. EDIT: With the difference that Minecraft's is in 3 dimensions...
 
Ell
Its not a difficult terrain, mostly flat but with rivers and an odd mountain range
 
user1182183
 
Ell
but flat doesn't look realistic
 
user1182183
9:09 PM
no need to reinvent :P
 
Do you have a system for loading heights from a bitmap image?
 
Ell
I think I need to use shader tonadd detail
Yeah I do :)
 
To be fair, our perception of terrain features is easily misled...
 
Ell
@gam I was looking at spring s sources
 
user1182183
@Ell hm ok :)
 
user1182183
9:11 PM
probbly better cuz they have real 3d terrain rendering
 
You can make a passable terrain map fairly easily, and cover it up with objects and junk.
 
Ell
Also isn't openttd isometric?
 
OpenTTD's map is discrete and slopes are always the same, AFAIR
That's not very difficult to smooth
 
Yep.
TTD doesn't concern itself with smoothness.
 
user1182183
9:12 PM
@CatPlusPlus :P
 
Everything is done by-the-block.
 
If you have a tiled terrain generator, everything is still discrete...
 
Everything is discrete, yes, but Ell wants to make it look like its not.
 
hi guys
 
Or rather, minute losses in detail due to scaling a discrete representation to real size are nearly imperceptible (sp?)
 
9:13 PM
Which requires Brownian Noise, Fractal Pattern, intermediate vertices, shader magic, etc.
 
@ThePhD Dynamic LOD it is then
 
Brownian, that's the one I was thinking of.
 
@StackedCrooked I did that one by hand too lol :(
 
@Rapptz You need help.
Also, for those 50-digit numbers, since its addition, don't you only have to concern yourself with summing the first 10 digits of all those numbers?
Everything else will just carry beyond what you care about, right?
 
9:15 PM
I could try it with programming.
 
@ThePhD No, don't you remember your elementary math? :)
 
@StackedCrooked Nope.
 
  21
  19
+ --
  40
 
@StackedCrooked Thinking about what?
 
9:17 PM
@CatPlusPlus I don't know yet.
 
@StackedCrooked answer is off by 2
 
ThePhD is close.
 
157 + 299 = 456
057 + 099 = 156 <---- If we only look at the first two digits, the first two digits will always be the same, no?
 
fuck you like a whore, Clang
why can't I use exceptions?
 
9:18 PM
@CatPlusPlus Yeah brute forcing it should work. However, I'm trying to solve them in C++. And I don't really know to deal with 50 digit numbers.
 
Use GMP
 
FUCK
Now you're gonna make me all
do Project Euler
 
Also lol "brute forcing"
The most obvious way to add things is to add things
 
I will not fall for this trap. I will not be Euler'd. I'm gonna go do some gaming.
 
Everything else is overthinking it
 
9:20 PM
@ThePhD If only I was off of work...
 
You people seriously need lives
 
@DeadMG I have no experience with that. Is it any different?
 
could you be more specific?
 
Need, needs, who knows. Plurals are hard
 
Maybe I can use 128 bit integers in GCC. Hm, ..50 decimals corresponds to how many bits? I guess up to 150 - 200 bits... Damn.
 
9:22 PM
(BTW the previous topic, OpenTTD code is atrocious)
 
@DeadMG fucking s/o or s/t like a whore? Is it any different than, say, like the usual bunnies?
 
Ell
Need
 
hmm
dunno
 
@StackedCrooked You can just use BCD or even vector<char>(50) for that matter
 
9:24 PM
Ok, then I just need to implement basic arithmetic.
 
@StackedCrooked only addition. not too bad
 
I came up with an odd addition algorithm (in hardware) that was O(number of consecutive 1s).
 
Man C++ is annoying.
 
user1182183
@Rapptz wow that makes 2 of us
 
user1182183
9:32 PM
in this room
 
guys, may I ask you a question regarding to networking programming?
 
@TemporaryNickName Ask away, but don't expect an answer.
 
@DeadMG Did you edit mine?
 
9:35 PM
yes
look at the loop in main()
 
I didn't know for range loops worked with C-style arrays.
 
indeed they do
 
I tried using std::array but it gave me "too many initialisers"
So I just used a regular one
 
anything with the appropriate iterator requirements
technically, C-style arrays don't meet them, but there's a special language rule which pretends they do.
as for std::array, it should be fine except that you'd have had to manually specify the number of items or write a make_array, which sucks
 
Ell
Are there many requirements?
 
user142019
9:36 PM
Man.
 
@Ell Not really.
 
user142019
In a few days will be my second newyear as a lounger.
 
user142019
xD
 
Ell
Also, is it possible to change stuff while iterating?
It invfalidates them doesn't it?
 
user142019
Depends on the container.
 
9:37 PM
Change what stuff
 
I'm quite familiar with socket and understand how it works. In addition, various delivery methodology it supports like multicast, unicast and broadcast. I want to go beyond further and learn how to build things like NVC client, SIP client / server and etc. But I haven't found any books that can give me broad knowledge about all these different types of protocols, and maybe teach me how to build one
 
user142019
You can mutate std::array while iterating, I think. If it's not possible I'm going to chop off my dick.
 
@GamErix I like C++ but it's annoying sometimes.
 
@Ell Depends on the container and exactly what you change.
 
Ell
9:38 PM
@zoid claim
 
@DeadMG You need to click share.
 
oh yeah
 
Ell
Right okay, I was thinking adding something to a vector for example, during iteration
 
user142019
@Ell You cannot do that. It will invalidate the iterators.
 
9:39 PM
in general
 
user142019
Because data may need to be moved.
 
Yeah most invalidates the iterator.
 
the more powerful the iterators are, the more likely they are to be invalidated by container mutation.
 
Because vector iterators are terrible
 
but it's virtually impossible, if not completely impossible, to invalidate them by changing an element.
 
user142019
9:40 PM
For some reason I feel good.
 
user142019
Please take this feeling off of me.
 
I don't know what the first 3 lines of code do. I don't know move semantics or variadic templates yet :(
 
Stop drinking
 
user142019
Feeling good feels bad.
 
@Rapptz They just forward the arguments into the array, that's all.
 
user1182183
9:40 PM
@Ell for(unsigned int i = 0; i < vec.size(); ++i) voila
 
user142019
No, I don't stop drinking. I don't want to die in thirst.
 
Index-based iterators wouldn't be invalidated, but you still shouldn't mutate the container you're iterating on
 
Ell
Feeling good is good
 
user142019
Your code is good, you are good and you should feel good.
 
@GamErix for(auto& i : vec) is nicer.
 
user1182183
9:42 PM
@Rapptz sorry my C++ level is still 1
 
Can someone please answer my question? I'm hoping to build something like NVC client for the uni project
 
user1182183
:p
 
@TemporaryNickName What question?
 
I'm quite familiar with socket and understand how it works. In addition, various delivery methodology it supports like multicast, unicast and broadcast. I want to go beyond further and learn how to build things like NVC client, SIP client / server and etc. But I haven't found any books that can give me broad knowledge about all these different types of protocols, and maybe teach me how to build one
 
user1182183
9:43 PM
@TemporaryNickName that question is really suited for SO main
 
user1182183
with networking sockets C++ tags
 
We have [so] but we don't have [so/ask]
 
I don't think book recommendations are suitable for SO
 
We don't have [getout] either
 
user1182183
 
9:44 PM
book or online resource
 
plonk or ignore
rock or scissor
 
rock
 
user142019
paper
 
@sehe Paper.
 
user142019
I think outside the box!
 
9:46 PM
slow
 
@Zoidberg'-- Damn.
 
@Zoidberg'-- you sink outside the boat
 
user142019
@sehe Slow? Traveling at the speed of light is not fast enough! How can we solve it? Let's think outside the box. We can increase the speed of light!
 
@Zoidberg'-- Nah, just reduce the space that the object needs to travel across.
 
s/object/light/
 
9:48 PM
@sehe Light is an object. #OutsideTheBox
 
user142019
I want a wormhole from my intestines to the toilet so I don't have to travel downstairs every day.
 
@Zoidberg'-- Enjoy the lovely radiation tan on your anal sphincter.
 
@Zoidberg'-- You only 'go down' for a toilet visit?
 
Ell
Or just to the sewage treat,EMT plant
 
@sehe Who goes down on a toilet?
 
user142019
9:49 PM
@sehe Good point. I should also create a wormhole from the microwave oven to my stomach.
 
What goes down
 
@sehe Must come up?
 
user142019
 
Ell
Lol
I'd hate to see uploading
 
@Zoidberg'-- You know, not a lot grows there. Better create one from the catering firm - it can be setup to be rather stealthy so you won't have expend any money too
 
user142019
9:50 PM
HIS ARMS ARE AMPUTATED
HELP
HOW CAN HE TYPE
 
@Zoidberg'-- He can't. He's moving the mouse with his dick nose
 
user142019
He has no nose either. Look harder.
 
Also: if his arms weren't amputated, they'd only get cold in that shirt. Mental note: next time, order long-sleeve
 
user142019
His face is as round as a fucking silicon sphere.
 
He's the personification of 'i'
 
user142019
9:52 PM
 
user142019
^ roundest object in the world.
 
doubt it
 
user142019
I don't.
 
> This means the diameter of the sphere varied by an average of only 35 millionths of a millimetre, making it a top contender for the title of the roundest object in the world.
 
9:54 PM
Why didn't they just make a cube?
 
> A spherical shape was chosen for the project because it has no edges that might be damaged, and the volume can be calculated by using its diameter.
 
@Rapptz I believe the sun varies only 10km in diameter. That would be a lot rounder, if my intuition is right
 
user142019
@sehe The sun is not a round object in the world.
 
user142019
At least, I hope not.
 
@Zoidberg'-- I didn't say it was
 
user142019
9:55 PM
Me neither.
 
I didn't think the sun was solid
 
Then stop debiting useless information
 
debiting huh.
 
user142019
YOUR INFORMATION WAS ALSO USELESS :<
 
@Pubby What? Only solid things can be round now?
@Zoidberg'-- Meh. My information was new (ish) and interesting. Yours was pedestrian and bleedingly obvious
 
9:56 PM
@sehe Gases don't have edges :S
 
user142019
@Pubby prove it.
 
user142019
Also
 
@Pubby Soooo?
 
user142019
The roundest object is my shiny human-skin ass.
 
I'm blessed with a non-visual mindset
 
user142019
9:58 PM
You know.
 
user142019
Why did they make that sphere so small.
 
user142019
If you make it bigger it's easier.
 
user142019
Also.
 
user142019
Are atoms round?
 
@Zoidberg'-- "it" is "easier". Operations on two unknowns not supported
 
Ell
9:59 PM
Yes
 
@Zoidberg'-- Some are.
 
Ell
No
 
@Zoidberg'-- That question doesn't even make sense about an atom.
 
user142019
I want a cube-shaped Moon.
 
Ell
they are odd shaped. With a doughnut and stuff
 
9:59 PM
you can't define the position of it's constituent subatomatic particles, so they can't have a defined shape.
 
@Zoidberg'-- That can be arranged, but not without some sideeffects
 
Ell
You can look at the electron shell shapes though
 
user142019
@sehe so, reshapeMoon :: IO ()?
 
@Ell Those are only for illustration, really.
 
Ell
S,p,d and f
 
10:00 PM
@Zoidberg'-- Wait, you can just launch an artificial one and be done
 
Ell
Doesn't it show where the electron is most likely to be?
 
user142019
You know.
 
user142019
I know a fun challenge.
 
Make it a rubik's cube
 
@Ell Well, yes, but "Most likely to be" != "Is"
 
user142019
10:01 PM
On new year's eve, @sehe will be shot by a cannon through Amsterdam.
 
@Zoidberg'-- Write hangman in Malbolge?
 
@Ell That's electron configuration.
 
user142019
He ought to avoid fireworks.
 
@Zoidberg'-- word order, fix it
@Zoidberg'-- easy, statistically
 
Ell
But if its incredibly unlikely to be then it may as well not be
 
user142019
10:01 PM
@sehe On new year's eve, Amsterdam will be shot by a cannon through @sehe?
 
@Zoidberg'-- try again, 1 attempt remaining
 
Molecular geometry or molecular structure is the three-dimensional arrangement of the atoms that constitute a molecule. It determines several properties of a substance including its reactivity, polarity, phase of matter, color, magnetism, and biological activity. The angles between bonds that an atom forms depend only weakly on the rest of molecule, i.e. they can be understood as approximately local and hence transferable properties. Molecular geometry determination The molecular geometry can be determined by various spectroscopic methods and diffraction methods. IR, microwave and...
 
Ell
Attempts remaining: 1
 
user142019
On new year's eve, @sehe will be shot through Amsterdam by a Canon!
 
user142019
That one is actually the most realistic of all.
 
10:02 PM
Canon(TM)
@Zoidberg'-- It is highly realistic
 
user142019
NOW I KNOW WHY THEY CALLED IT CANON! IT SHOOTS!
 
> The company was originally named Seikikōgaku kenkyūsho (jap. 精機光學研究所, Precision Optical Industry Co. Ltd.). In 1934 it produced the Kwanon, a prototype for Japan’s first-ever 35 mm camera with a focal plane shutter based.[4] In 1947 the company name was changed to Canon.
 
user142019
Idiot level: Zoidberg.
 
user142019
I am happy.
 
user142019
But you already noticed,
 
user142019
10:05 PM
I think.
 
user1182183
@Zoidberg'-- the most happy part of society are idiots, no need to shame
 
user142019
I never shame, you fool.
 
user142019
Okay.
 
user1182183
oh now I remember what I wanted, check for new episodes of futurama, family guy, americam dad, simpsons, etc!
 
user142019
What shall I write in C# today?!
 
user1182183
10:06 PM
@Zoidberg'-- reinvent djkstra
 
user1182183
this time so it avoids cat at a 5 km range
 
user1182183
MINIMUM
 
@Zoidberg'-- Make a UI in C# to find the perp's IP address.
 
Can you use e for double literals in C++?
 
user142019
@ShotgunNinja no you can only do that in Visual Basic.
 
10:07 PM
@Zoidberg'-- Oh, right; how could I forget? I must be an idiot.
 
user142019
You are an idiot. And since everybody is equally inferior to me, and you're part of everybody, everybody is an idiot.
 
guess so
 
user1182183
where are all the starfuckerz now who star "i'm idiot" posts?!
 
@GamErix Me, by contractual obligation.
 
Kids these days...
 
user1182183
10:09 PM
@EtiennedeMartel I'm a happy kid, problems? :P
 
I didn't think much about it at the time, but it's a really bothersome contract...
 
user1182183
FUNDRAISER: please help me buy my skyline GTR!!!!
 
that is expensive
 
user142019
How can I avoid global state such as a global database connection when I use a data access layer?
 
user1182183
I want that car :/
 
10:12 PM
Woa, stuff gets real in the C# room.
 
link?
 

C#

General discussions about the c# language, Squirrels | gist.gi...
 
in C#, 2 mins ago, by Pheonixblade9
@JohanLarsson YOUR MOTHER IS A WHORE. GIVE ME MY STARS
 
lol
fuck, I'm a noobery
2
"Huh, can't use std::unordered_set? Include <iostream>!"
 
user1182183
@DeadMG I was serious about not being able to find std::cout
 
10:16 PM
4 hours ago, by Gam Erix
lol, where is cout in? which include ;o
that?
 
@Rapptz <iostream.h> ;P
 
user142019
@ShotgunNinja no you fool.
 
user142019
<iostream>
 
user1182183
also, is the gas pedal on the other side in a car where the driver seat is right compared to a car where the driver seat is on the left?
 
user1182183
not quite a c++ question but c;mon you all program for a living, I hope y;all can afford cars???
 
10:23 PM
@GamErix I ride my ostrich to work, sorry.
 
user1182183
@ShotgunNinja ok, hope you got winter legz else ur going to dance with that ostrich :P
 
Also, just because we can afford cars doesn't mean that any of us have experience with foreign cars with reversed cabins.
 
user1182183
@ShotgunNinja how are they more expensive, english people drive them all the time
 
Your reading comprehension skill is 1, too
 
is there a limit to how much the Windows console will display?
 
10:30 PM
Buffer is configurable in console properties
 
yes
just wanted to check
I finally managed to beat Clang into submission
now all I have to do is link to libstdc++ and engage JIT and then there's only the Wide side left to go
 
You know, I'm gonna see how VLC does full-time compared to mplayer
Maybe I can get stupid margins here
 
user1182183
@CatPlusPlus Media Player Classic Home Cinema, stop using crap. please.
 
MPC is crap
Also ahaahah they stole website design from mplayer2
 
user1182183
mpc is crap that actually works, other crap doesn't :P
 
10:34 PM
What
 
@GamErix My lil' red ostrich was donated by my grandfather. It's from Dodge Farms, and the breed is Intrepid.
 
MPC has impressive feature list
It is written in C++.
Supports GPU assisted decoding.
Translated in 24 languages.
 
user1182183
@ShotgunNinja well ostrichs' can live up to 70 years...
 
user1182183
@CatPlusPlus you just need to watch video without crashes and problems, nothing more
 
Yeah, you surely know what I need
Also do you think I'd be using mplayer for years if it ever crashed?
 
user1182183
10:37 PM
@CatPlusPlus maybe
 
@CatPlusPlus Because "written in C++" is a feature.
 
@ShotgunNinja Because it's so ~lightweight~
 
user1182183
@CatPlusPlus my laptop overheats so many times, sometimes random shit happs, and I still use it, not because I want to, because I have no other choice.
 
@CatPlusPlus Give me two years, and I'll write you the most heavyweight program in C++ that I can come up with.
 
Have fun
 
10:38 PM
@CatPlusPlus I won't.
 
I know, we're talking about C++
 
Lulz.
 
@GamErix Yes, there's absolutely no choice in media players
It is a very good analogy
 
user1182183
I tried one time to allocate 16 exabytes of memmory ;f
 
user1182183
@CatPlusPlus oh just stop complaining and use windows media player :P
 
10:39 PM
MPC or VLC.
Those are really your only two free, good options.
Windows Media is a pile of slag.
 
Your leaps of logic are amazing
 
user1182183
what stupid being is going to pay for a media player..
 
@ThePhD mplayer
 
@CatPlusPlus Never heard of it. o_O
 
One of the few that use multithreaded ffmpeg
 
10:42 PM
Don't you have to pay for ffmpe- oh, wait. It's a free project.
Nevermind~
It looks nice.
If I got to it before VLC, it might be my music player of choice.
video*
Also, do casts from void* to char* incur any runtime checks at all?
I was under the impression void* can go to char* and vice-versa, without any overhead except for copy out the address value to the other pointer.
 
Only runtime-checked cast is dynamic_cast
 
Hm. I suppose doing a c-style cast like char* c = (char*)avoidpointer; would attempt a static_cast before a dynamic_cast, so I'll be all good!
 
@ThePhD Never assume with C-style casts.
 
~Sigh~
static_cast it is. .-.
 
I doubt C casts ever do dynamic_cast
 
user142019
@CatPlusPlus they never do.
 
@CatPlusPlus Static, reinterpret, and const, in that order, or in some combination.
also, you can do a C-cast to a private base class, but none of the C++ casts will do that.
 

« first day (804 days earlier)      last day (4143 days later) »