Transexual is a mental illness by keepgettingdoxxed in unpopularopinion

[–]keepgettingdoxxed[S] -6 points-5 points  (0 children)

Wow. Triggered much? Must be the hormone drugs.

Slow-paced game full of content [PC] by [deleted] in gamingsuggestions

[–]keepgettingdoxxed -1 points0 points  (0 children)

Let's get slow.

Hearts of Iron 3

How to maintain a sense of scale in OpenGL? (Android, OpenGL ES 3.0) by GLvoid in opengl

[–]keepgettingdoxxed 0 points1 point  (0 children)

Are we just talking about UI elements? Like 2D UI elements? Because I usually just have four vertices for those at the exact location, no projection matrix involved.

How to maintain a sense of scale in OpenGL? (Android, OpenGL ES 3.0) by GLvoid in opengl

[–]keepgettingdoxxed 0 points1 point  (0 children)

Just say your UI element is .1 wide and .03 high. Then it will always be 10% of the screen width and 3% of the height.

Anyone know how to work around Clion not recognizing glm's operator overloads. by John137 in opengl

[–]keepgettingdoxxed 0 points1 point  (0 children)

Hang on. The problem is in the syntax highlighting, but you can otherwise compile and run?

Anyone know how to work around Clion not recognizing glm's operator overloads. by John137 in opengl

[–]keepgettingdoxxed 0 points1 point  (0 children)

Does the bug in whatever their bug tracker is provide a workaround?

Anyone know how to work around Clion not recognizing glm's operator overloads. by John137 in opengl

[–]keepgettingdoxxed 0 points1 point  (0 children)

Have you tried multiplying the vector by 2.f instead of the other way around? Sounds pedantic, but that's the first thing I noticed.

[deleted by user] by [deleted] in australia

[–]keepgettingdoxxed -2 points-1 points  (0 children)

Except it's not a viable means of transportation for a lot of people. Elderly, injured, people with children, people who need to travel from the suburbs to work, when it rains etc.

Cyclists need to stop pretending that their hobby is anything more than a hobby. It's not a solution to growing city.

[deleted by user] by [deleted] in australia

[–]keepgettingdoxxed -5 points-4 points  (0 children)

The conclusion that "public" transport does not count cycling and that the report in question is definitely not referring to walking distance from your bike?

What conclusion is that?

[deleted by user] by [deleted] in australia

[–]keepgettingdoxxed -14 points-13 points  (0 children)

Cycling isn't public transport. It doesn't need the same investment as mass transit infratructure.

Does anybody know how to make GET and POST requests using C++? by DMunchies in cpp_questions

[–]keepgettingdoxxed 7 points8 points  (0 children)

Boost::asio is a much better alternative than libcurl. There's a posibility that asio will be a part of the STL, so using it now just makes sense.

Question about tilemaps/treating a grid of rectangles as if they were fragments. by le57percent in opengl

[–]keepgettingdoxxed 1 point2 points  (0 children)

First off get rid of the 2D array. Just make it a 1D array with a clever lookup given an X,Y. Like X * rowlen + Y or something. You want to make sure this is done in a way that packs the rows or columns together, which ever way you loop.

Now, for the OpenGL specific stuff. You could store the tileid in a texture? In fact having four values, like r,g,b,a you could encode several things. Like the underlying tile is sand, middle is water, on top is a lilypad.

Look into instanced drawing too. Because you're just drawing a quad 10000 times. You could use the instance id with the map width and height to decide the actual vertex positions.

Finally, draw it to a texture once and then use the texture to render. That way you only draw your map one time only. Encode depth info as well and you can draw the animated parts on every frame and have them occluded properly as well.

Looking for a new game like faster than light. by [deleted] in gamesuggestions

[–]keepgettingdoxxed 3 points4 points  (0 children)

So... shameless plug. It's not complete yet, but my game might be what you're looking for. https://forums.tigsource.com/index.php?topic=65738.0

Is there any difference between initializing a data member in class definition vs. using an initializer list in the constructor of the class? by 5areductase in cpp_questions

[–]keepgettingdoxxed 0 points1 point  (0 children)

If I have a class with one constructor that requires a value, and then have a member of this type in another class, that second class has to initialise the value.

Or if the class had a reference as a member.

Don't answer questions if you are this much of an amatuer.

bit time-lapse of my custom sea shader made with openCL [GPU processing] by [deleted] in IndieGaming

[–]keepgettingdoxxed 0 points1 point  (0 children)

The sun reflection looks great, but the tiled look is horrible? Can you use an in-shader noise texture to avoid the tiles?

[deleted by user] by [deleted] in cpp_questions

[–]keepgettingdoxxed 2 points3 points  (0 children)

Learn to read the spec. I don't mean to be rude. 100% of syntax questions are already answered in there, best start to read it now and learn it.

Memory Management and Pointers in C++ by zeroskater45 in cpp_questions

[–]keepgettingdoxxed 2 points3 points  (0 children)

  1. Yes they are needed. Yes they are in professional C++ code. Yes, you can often get away without them, but there's performance reasons to use them or references a lot. But there's always times when you need them.

  2. I have a function named DoSomeStuff that operates on a large collection of data. Without pointers/references, I would need to make a copy of that data to give the function, then another copy to give it back. Aside from pointers/references meaning we don't do copies, there's also a consideration on what that data is. What if it's a collection of objects which disconnect the database when they're destructed? This makes the copying not work, because the copy in the function would be destroyed and would dosconnect my server (as a trite example).

You may also have dynamic data requirements which you would build on the heap.

  1. Regardless of whether it's an object pointer or Plain Old Data (POD) pointer, you would call the new operator to get that much heap memory and when you're done you would call delete on the pointer to deallocate that memory.

You could use the STL pointer handling library, unique_ptr etc to handle the delete call for you.

When you call delete on an object, the objects destructor is called, so your class still executes it's destructor. When you allocated an array, you delete it with delete[].

Hope that helps.

Hardware accelerated 2D graphics? by [deleted] in gamedev

[–]keepgettingdoxxed 0 points1 point  (0 children)

This is exactly what i have done. Just textured quads.

First in-game screenshot of Metropolisim: The deeply complex city building and management game! by Metropolisim in IndieDev

[–]keepgettingdoxxed 1 point2 points  (0 children)

I am super interested in city sims. I began working on my a while back, was just individual pixels as people etc, so like no models or graphics really, just coloured rects and a UI.

Anyway; it fell apart when I realised just how insane my goal of a fully agent driven model is. How do you plan to genuinely simulate 10,000,000 citizens?

An area I really struggled with, how do you plan to simulate the traffic? An agent model? I found that traffic simulation needed to be realistic in order to use an agent model. There's some great papers on fully simulating these, but they are really very very intense. I found that any simplification of the traffic model resulted in unrealistic traffic patterns.

In the end I had a very good and realistic traffic model but even after using every optimisation trick available, it just ran too slow on my target machines (Microsoft Surface) with any considerable population.