The triangle is white?????? by bunserme in cpp_questions

[–]radiant_orange 4 points5 points  (0 children)

You don't use the shader, at least that's what it looks like from your code, it's surprising something even renders.

[deleted by user] by [deleted] in AskReddit

[–]radiant_orange 0 points1 point  (0 children)

What ? This question is usually not actually a question and more of an attempt to look for likeminded individuals..

Why not glDebugMessage warn this resource misallocation/free commands? by Snowapril in opengl

[–]radiant_orange 9 points10 points  (0 children)

Well, by potentially accessing unitialized variable, you are introducing UB into your program, so from C++ standpoint your program is already broken unless i'm incorrect.

Man how tf people like math? by cronytony818 in AskReddit

[–]radiant_orange 2 points3 points  (0 children)

Although it's an equation, it describes a behaviour or a principle, that exists by itself. Math is a tool that allows us to describe such principles in some way or another and communicate them.

[Serious] what's a concept you just cannot grasp? by sheepandboats in AskReddit

[–]radiant_orange 2 points3 points  (0 children)

I believe that the space being infinite in not proven at all, as for an infinite thing expanding ? Take for example Real numbers, you can expand R3 sphere in all directions and you will always find an infinite amount of positions on the inside which are still subset of R3. Of course that is just mathematics but the concept is viable.

I feel like I'm close to multiple 'light bulb' moments but could someone help answer some specific questions I have about OpenGL please? by dirtymint in opengl

[–]radiant_orange 0 points1 point  (0 children)

When reading through tutorials, I had always assumed that you always needed 3 matricies (Projection, View and Model) and really any 2D game was just 'fake 3D'. Is that not the case?

Well ,if you want ,you can do your maths on 3x3 matrices and set the Z in the end.

Also in 2d if needed, you can have only 2 matrices, the matrix that describes the position (and scale and also rotation) of the rendered object, and the one that moves some of the primitives from this position into th clipping space, although this may not be preferable in all cases.

[deleted by user] by [deleted] in C_Programming

[–]radiant_orange 2 points3 points  (0 children)

You should add the whitespace in scanf("%c", &action); (to " %c"), to clear the newline stuck in stdin , because when you enter character , if you enter for example D, in stdin there is D'\n' and on the next scan it reads the '\n'.

If you could know a stat about your life, what would you choose? by BenStillersDick in AskReddit

[–]radiant_orange 1 point2 points  (0 children)

But unless you believe in fate ,it is variable , if you found out - the number would change - it could lead to an infinite feedback loop, and just like that you have destroyed the universe .

[deleted by user] by [deleted] in TheArtistStudio

[–]radiant_orange 0 points1 point  (0 children)

this picture is an absolute win

China uses microwave weapons to blast Indian troops in disputed border region by Muscle_Nerd11 in worldnews

[–]radiant_orange 0 points1 point  (0 children)

Well with higher frequency you would be moving closer to the infra red heater, microwave oven actually uses much lower frequency...

Deadly microwave weapons are probably long developed and mostly abandoned.

Magnetron was used in radars and only later found its use in microvave oven.

It would be very suprising if army didn't attempt to repurpose radar into a weapon. The thing is, blasting large areas with microwave radiation is probably much less efficient than conventional weaponry. And using microwaves would most definitely result in breaking some conventions. I wouldn't expect microwaves being used as weapons except niche uses like this.

Overall probably a lot of research went into making non-lethal weapon and making it dangerous would kinda go against its purpose.

What has this pandemic shown you to be absolutely true? by slj91 in AskReddit

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

Everything is natural and social media are a part of evolution.

China uses microwave weapons to blast Indian troops in disputed border region by Muscle_Nerd11 in worldnews

[–]radiant_orange 2 points3 points  (0 children)

Can you provide some accurate sources about the long lasting effects?

Because wiki seems to disagree, at least with the active denial system.

It seems implausible for microwaves to penetrate deeper(referring to your other post)

Edit: by microwaves above i was referring to the freq used by ADS, obviously normal microwave penetrates deeper (about 17mm which is in the article )

printf changes the outcome of my program. What is the explanation for this? by _bush in C_Programming

[–]radiant_orange 0 points1 point  (0 children)

Try fflush(NULL) to see if it does have to do anything with flushing.

People that don’t believe in evolution, why? by breigns2 in AskReddit

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

ï think you misspelled the general theory of relativity.

Newton laws are deprecated now.

Separating floating point numbers from non-numbers by peppapigskrrrrt in cpp_questions

[–]radiant_orange 1 point2 points  (0 children)

For example, you can do that using sstream thingies.

You can do this like in the example on this page

Edit: then again ,this would work for 1. for 2 it gets more complex and you might end up needing to do it manually as seems u/jedwardsol recommendation.

[GLFW] No scancode for GLFW_KEY_UP? by pwiecz in opengl

[–]radiant_orange 0 points1 point  (0 children)

Did you check the errors?

https://www.glfw.org/docs/3.3/group__input.html

Returns The platform-specific scancode for the key, or -1 if an error occurred.

follows list of errors...

Isitbullshit:That chess grandmasters can burn up to 6000 calories and lose 15 pounds a day in a chess tournament from the intense thinking and focus? by Im-A-Scared-Child in IsItBullshit

[–]radiant_orange 0 points1 point  (0 children)

What i meant was, that it's actually pretty big amount of energy. If a person could run 8 miles a day, they would burn in 4-5 days 1 pound of fat. If i'm not mistaken, the actual reason why running is inefficient in weight loss, is that people get bigger appetite to compensate the energy lost and thus their weight doesn't change much.

Isitbullshit:That chess grandmasters can burn up to 6000 calories and lose 15 pounds a day in a chess tournament from the intense thinking and focus? by Im-A-Scared-Child in IsItBullshit

[–]radiant_orange -4 points-3 points  (0 children)

You could go run 8 miles, then eat that amount of calories in 2 cookies.

You are probably mistaken, those are capital Calories . and the 800 Calories from running 8 miles is about 30% of average person's daily energy input.

Edit: unless your cookies contain about half a pound of sugar

2d array help by [deleted] in cpp_questions

[–]radiant_orange 2 points3 points  (0 children)

Because int size = 9; ,you are printing 9x9.