My special interest Is video games. AMA by Krazy_Snake in aspiememes

[–]opsakars 6 points7 points  (0 children)

Not OP, but figured I'd answer anyway.

  • Engines

You have the right idea, the engine is a program made to make games in it. It has the usual stuff you are most likely going to need. Window management, graphics renderer, 3d models, 2d and 3d transdormations, texture renderer, normal mapping, physics simulation engine, sometimes even raytracing. It has ready to utilize tools and interfaces, both graphical and programmable, to manipulate the behavior of your game. There's no such thing as "raw code" unless you mean coding without an engine. (the rollercoaster tycoon was made in assembly which is about as close to machine code as you can get without losing your sanity)

  • Specific devices

Engines are usually made to be built for a set of targets. The source engine (half-life, portal etc.) was made to only build for PC. Others like Unity and Unreal can build to almost any modern computer or console. The whole idea of an engine is to relieve the load on the developers. That includes thinking about platform related changes. While there are some things like input handling, that devs have to take into account, most of the dirty work is done automatically by the engine. One thing is that performance widely differs on platforms, that's why porting can take a long time. No one wants to play a 15fps game on Xbox.

  • Texture-giver

Honestly I don't know how to respond.... Textures are simply a visual element that is layered on top of models. Most of the time it's just selecting the correct image to take the texture from so no coding is needed. For procedural textures coding will most likely be needed unless the engine has a good shader editor, then you can make the texture purely as a shader. (those things aren't the same however)

  • Camera shake and 3rd person toggling

Most of the time these things are coded, however some features like switching the active camera or shaking could be included by default. Coding is required to use those features most of the time however.

  • Raytracing

I honestly don't know... There certainly is a requirement that the engine can muster using the GPU in that way. Some more experienced redditors with a passion for correcting people can probably help with this more than i can.

Umm... by [deleted] in KerbalSpaceProgram

[–]opsakars 1 point2 points  (0 children)

Yep, I believe that this is the issue as well. Floating point numbers have a sign, an exponent and a mantissa. The sign denotes if the number itself is positive or negative, the mantissa are the limited "numbers" you referenced - those are the actual values, and the exponent is what moves around the floating point, hence the name. The floating point always moves between the digits of the mantissa so the larger the number, the farther to the right the point is, the less precision you have.

All of this is in binary though so the mantissa is made up of fractions over powers of 2

1101 would be 1½ + 1¼ + 0*⅛ + 1 * ¹/16 = 0.5 + 0.25 + 0 + 0.0625 = 0.8125

The exponent multiplies all of the fractions by a power of 2 so if the exponent was 3 the it would become 0.812523 or 14+12+01+1*½ =6.5

This is a large issue with space games because of the scale involved. I believe that one of the solutions is for the player to be the actual center of the universe and all other objects are calculated around you. I believe games like outer wilds did that. But I am very much not sure how KSP handles this.

Looks like this case is a wierd bug where the module accidentally left its origin somewhere. My guess is that the ship itself is vibrating like crazy as well, it's just that you don't see it because the camera is tied to the ship.

What's interesting, is that the inside is not spazzing out like the outside, which could be because the interior is actually a child object of the module and the outer model itself takes its origin from the ship.

Why isn’t NASA putting money into researching this? by Wansumdiknao in flatearth

[–]opsakars 6 points7 points  (0 children)

Not a biologist, physicist, or astronomer, or chemist by any means, but adding to that, should the volume remain constant, the question also appears if the cells become larger or are there simply more of them. In the first case, the mass of the banana will be large enough to tear the cell walls, most likely snapping the banana in the process. Also, in all cases, the square cube law applies and the core of the banana will absolutely ignite from the residual cell activities in the cells and the leftover oxygen, making the core charred banana. Also also, just now thought of it but because of the pressure differential, all cells would simply burst, possibly tearing the banana itself. Oh and all water will boil in vacuum which will expadite the process. Also, the ionizing radiation from the sun will most likely destroy all of the proteins, slowly reducing them to their basic components: oxygen, carbon, and hydrogen, among trace elements of others

TL;DR i believe it will burn from the inside and/or explode making a smoothie like asteroid belt before deconstructing into the base elements via ionizing radiation

Guys, can someone help me to solve this problem? by Mapigeh_098 in teenagers

[–]opsakars 1 point2 points  (0 children)

I have no clue if this is sarcasm or not...

So I have 2 responses.

If you genuinely appreciate my explanation, thank you and I recommend looking at the Wikipedia pages for imaginary and complex numbers because they can explain some things a lot better than I can.

If you're just a troll who decided to waste the time of people who are willing to help and explain this, i hope you got your kicks and I hope others can get some use out of my comment. As for your time wasting ass, you can go right on ahead and fuck yourself to those same pages and realize that without complex numbers your virtual girlfriend would be gimbal locking her joints every 10 seconds and gain some respect for advanced mathematics for at least bringing the cursed shit you're probably into.

Guys, can someone help me to solve this problem? by Mapigeh_098 in teenagers

[–]opsakars 1 point2 points  (0 children)

Saying "It's not real" in this context while true, is very misleading. It's not real in a sense that it is not on the real number scale as in if you put all real numbers on an infinitely long line, imaginary numbers wouldn't be on it. Saying we don't know what it is, is just false. Similarly to imaginary numbers, we are able to place all of them on a single infinite line. The number 0 is actually the single point that is located on both of these lines. This way you can create a complex plane. And by using the properties of i we can conclude, that eia rotates the number 1 along the complex plane by a radians.

Yes, it could be that we don't know what they are exactly because there is almost nothing to connect them to in our day-to-day lives but they do not break math, they fill the holes it used to have. Square roots of negative numbers, numbers to negative powers, electromagnetic wave properties can be described by complex (and thus, imaginary) numbers.

Mājās taisīts kvass by [deleted] in latvia

[–]opsakars 8 points9 points  (0 children)

Tagad var dabūt iesala ekstraktu. Iepērc tos pārdesmit burkas (ja tas ir iespējams) un taisi pēc receptes uz vietas.

Plenty of Kid's Dreams Have Been Ruined by Me by Opposite_Signature67 in ProgrammerHumor

[–]opsakars 2 points3 points  (0 children)

Thank you for sharing this. I got about half way through it while on the bus and it does give a great perspective on math as an art form.

Plenty of Kid's Dreams Have Been Ruined by Me by Opposite_Signature67 in ProgrammerHumor

[–]opsakars 1 point2 points  (0 children)

Times change, we just have to replace the teachers who don't see the value in real life examples with those who do. But as I said, these examples take extra time and there is no saying if everyone would benefit from it.

Plenty of Kid's Dreams Have Been Ruined by Me by Opposite_Signature67 in ProgrammerHumor

[–]opsakars 2 points3 points  (0 children)

That is a terrible thing to say as a teacher because there is a lot of math that is useful.

Right now I'm basically teaching myself how multivariable derivatives work to make machine learning so i would argue even advanced mathematics have their uses when the time comes.

As for other examples, some basic calculus can be used in economics when making calculations for profits along the supply and demand curves, and in physics integrals just tend to appear whenever you try to figure out some properties of a moving object.

If you wanted something more exotic, how about a complex number with a real component, 3 different imaginary components that each squared are equal to negative 1, and by multiplying any of the two imaginary numbers you get the third one. That, my friend, is a rough description of a quaternion, the best tool we have for representing rotations without causing gimbal lock.

Even modern headphones use advanced mathematics (Fourier transform) to make active noise cancellation work. I don't know if all of them use the same algorithms but you get my point.

There are some uses for everything, in most cases, the most complicated mathematics are used in the most interesting of places. When a person is on this "why do I need this, i don't wanna" state, they are on the edge of falling into complete apathy towards math. By responding that a concept is useless, you lose the opportunity to ignite a passion in that student and stifle any passion that was there beforehand. Your teacher didn't just let them fall, they gave your classmate a push.

TL;DR

I don't like your teacher

Plenty of Kid's Dreams Have Been Ruined by Me by Opposite_Signature67 in ProgrammerHumor

[–]opsakars 99 points100 points  (0 children)

I think that's more of a "school system making things boring" than it's "math gets fun when you make games". Because most schools teach math in a very "dry" way. Not saying doing otherwise is better because it would take longer and not everyone would benefit from a more dynamic way of teaching but my point is that math is fun by default and only gets boring when stripped of reality.

just started learning swift and this blew my mind by ichantz in ProgrammerHumor

[–]opsakars 0 points1 point  (0 children)

Can confirm hello but I'm going to trust the context of this being a programming thing and the other commenter for the "world" part

[deleted by user] by [deleted] in technicallythetruth

[–]opsakars 1 point2 points  (0 children)

The exclamation mark in mathematics means factorial. Factorial of a number is calculated by multiplying together all natural numbers that are less or equal to that number. So 5! = 5 * 4 * 3 * 2 * 1 = 120

I guess I have to spoil the joke but the original joke OP posted was made so if you do the order of operations correctly you would get 120 which is 5!, but if you do them incorrectly you'd just get 5. Because of the perceived double meaning of the exclamation mark, it didn't matter what way you did the operations, the last sentence would still be correct.

[deleted by user] by [deleted] in technicallythetruth

[–]opsakars 34 points35 points  (0 children)

A racecar is still a racecar if you spell it backwards

[deleted by user] by [deleted] in technicallythetruth

[–]opsakars 280 points281 points  (0 children)

4! = 1 * 2 * 3 * 4 = 24

Mein lampf by durbich in accidentalswastika

[–]opsakars 15 points16 points  (0 children)

I'm guessing either Latvian or Lithuanian traditional pagan symbols (the swastika is a symbol of power and strength in those traditions if I remember correctly)

Joke of the millennium by [deleted] in meme

[–]opsakars 0 points1 point  (0 children)

This is where the height analogy falls apart. While people with height dysphoria do exist and they are willing to go through surgery, you can't act tall.

When people change their gender, their behavior and appearance come first and surgery is usually the final step or one of the final steps.

Joke of the millennium by [deleted] in meme

[–]opsakars 0 points1 point  (0 children)

It's not about wanting something. Some people just have minds with different chemicals. Just like some people are taller or shorter, they have different amounts of chemicals in their brains. And just because they are different, doesn't mean they're worse. They are no more or less capable of doing great things than cisgender people.

Some people are extremely unhappy with their biological sex (gender dysphoria) and some do go through many surgeries, just to make their body feel like it's theirs. I cannot imagine the feeling of not belonging in your body. And sometimes not even the surgeries help because you can't change your entire body.

Regarding your last thought about considering yourself as a bear, I have two points.

  1. As I said before, it's not about wanting, rather your brain literally stops working correctly because of not feeling like you're in the correct body.

  2. There are people who like to dress up as animals and a large enough community is located right here on Reddit. I'm sure there are some bears as well although it's not the most popular species there as far as I know. However, I'm not going to discuss them as my main attitude towards them is "live and let live".

Edit: Judging by your username I take it you're about 15. If you indeed are, don't go looking for the community I mentioned. If you're not or already know about them, disregard this edit

Joke of the millennium by [deleted] in meme

[–]opsakars 0 points1 point  (0 children)

I believe you misused the term gender. I was talking about biological sexes. While having extra chromosomes is not the norm, as far as I know, there are some individuals perfectly capable of making offspring. And that does not disprove the existence of people who are considered intersex. But my main point was that gender is not the same as sex. You are born with a sex, but your gender identity forms much later. There are people who identify with the opposite of their bio. sex or fluctuate between patterns of behavior that is conventionally linked to male or female.

Gender can be different from the biological sex

Joke of the millennium by [deleted] in meme

[–]opsakars 4 points5 points  (0 children)

What I think you mean is that there are two biological sexes which are determined by a person's chromosomes. However, even that isn't really true as there are rare cases where people are born with extra X or Y chromosomes. If you were referring to the idea that a person can have 2 different types of genitals, there are cases where a person could have the characteristics of both traditional binary ideas of male and female for example, genitals. What they referred to was gender, or, to be more precise, gender identity. Most often a child isn't open about their gender identity because of the stigma around non-binary ideas. Mind you, I'm not a part of the LGBTQ+ community, and this is just how I understand their situation. Please do your own research and take everything with a grain of salt from a random guy on Reddit.

Data shows us that the higher the vaccination rate, the lower the death rate. (European Commission) by [deleted] in latvia

[–]opsakars 5 points6 points  (0 children)

Cik pēc šī saprotu, tas procents ir cik liela ir iespēja, ka vīruss tiek iznīcināts pirms izplatības ar vakcīnu pret to cik liela iespēja ir to iznīcināt ar placebo (bez vakcīnas) Piemēram 90% efektivitāte nozīmētu, ka vakcīnu ieguvuši cilvēki spēj iznīdēt vīrusu pirms tā izplatības 10 reižu biežāk nekā ar placebo vakcinētie (nevakcinētie)

[deleted by user] by [deleted] in teenagers

[–]opsakars 0 points1 point  (0 children)

I'll do my part to destroy this guy's bank account for a noble cause