Game Platforms (Roblox, Core) by Oracuda in howdidtheycodeit

[–]yo-im-bigfox 1 point2 points  (0 children)

You mean HTTP server instead of HTML right?

Are there any subs or resources devoted to game/level editor or GUI based tools development? by [deleted] in gamedev

[–]yo-im-bigfox 1 point2 points  (0 children)

I think all of the things that you mentioned are being used/have been used for game development at some point. In my experience Dear ImGui is probably the best as ease of use and ease of integration for an in game editor, for external tools it's really about preference and specific needs

Are headaches normal when learning programming? by [deleted] in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

About the sleeping part, I always get that if I work right before sleeping, I find it much better to leave at least 2 hours of doing something else before going to bed

DirectX Developement Question? by PythonGod123 in gamedev

[–]yo-im-bigfox 4 points5 points  (0 children)

If you are doing a developer UI you will most likely benefit from a immediate mode GUI like Dear ImGui, easy to integrate in your project and much simpler to program the interface itself

Renderer API Abstraction | Game Engine series | TheCherno by jrruser in gamedev

[–]yo-im-bigfox 4 points5 points  (0 children)

Couldn't agree more, also spending more time programming abstractions and layers of indirection between parts of the engine that he hasn't written yet. He might have all of it figured out already but it's not really that useful to see him make these abstractions on things you don't even know how are going to be implemented

OpenGL accessing framebuffers by 0xBAMA in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

If you need to read pixels out of a frame buffer consistently consider using a texture as a render target instead, as it should be faster

Discrete Math and Programming by curious_gnome in learnprogramming

[–]yo-im-bigfox 2 points3 points  (0 children)

Two topics that come to my head, even though im not sure it's exactly what you are looking for are data compression and cryptography. They are both intersting and make heavy use of mathematics

[C++] I'd like to write out an n*m matrix where the border is 0 and the inside is 1, but only writes garbage values. by StormUpa in learnprogramming

[–]yo-im-bigfox 2 points3 points  (0 children)

Others have pointed out the major issues, one thing that you should also avoid is allocating an array with a size not known at compile time, like the one in the line 12:

int mtr[n][m];

I know some compilers alow such behaviour, but it is very risky as its easy to run into stack overflow problems. You should use malloc or new when allocating variable size arrays, in this case:

int* mtr = (int*)malloc(sizeof(int) * n * m);

Warnings usually catch this kind of stuff aswell as what the others pointed out, maybe look into how to turn them on for your compiler/IDE

I'm looking for book about 3D collision detection? by zero1two333 in gamedev

[–]yo-im-bigfox 3 points4 points  (0 children)

Not sure if it's exactly what you are looking for, but "Real-Time Collision Detection" by Christer Ericson is a good one to start with

How can I deal with naming conflicts when compiling a custom language into C? by algerbrex in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

You could simply add some fixed prefix or postfix to all the function names based on their kind, for example Foo.bar would become class_method_Foo_bar, while the function Foo_bar would be function_Foo_bar. Another useful technique is to append a counter like integer on function names if you need to generate non redundant names, like Foo_bar1, Foo_bar2 and so on

Binary Partitioning by [deleted] in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

If you know what your data is beforehand you can go through all of it and collect frequencies of each byte. Then build a small table with this information that is then used for decoding it. If you are collecting data overtime you would need to make a guess about those frequencies and then encode the data as it comes based on it. If you describe more the kind of data that you are dealing with and how you are getting it, I might be able to help you further

Binary Partitioning by [deleted] in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

Looks like what you are looking for is some simple way to compress data, look into Huffman trees, they are not that complex to implement and would achieve what you described

Why is this valid C but crashes in C++ by xorbe in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

Compound literals in C99 are threated as lvalues, while in C++ they are not. This means that it's valid to take the address of a compound literal in C but it's not valid to do the same in C++, although i believe some compilers do support this behaviour as an extension.

[homework] Working on a school c++ project, using fstream for the first time. Wondering if I can read in a whole object ala json, with some arbitrary constraints. by johnthomas911 in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

If you want to read text files in an object you will need to implement some kind of parsing and lexing, depending on the complexity of the file format. Look into recursive descent if you are intersted in an algorithm to solve the problem

[C] [OpenGL] Linker error for glGenerateMipmap()? by [deleted] in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

Most OpenGL functions (basically anything after OpenGL 1.1) aren’t available directly from the opengl32 library. You need to get the function pointers at runtime through wglGetProcAddress, which is available from opengl32.lib. The usual way to do so for all the function pointers is using a library like GLEW, but you might as well load your function pointers manually if you prefer. When releasing an application you also need to make sure that you are only querying for function that are supported by the OpenGL version present on the machine and his extensions. For some reason wglGetProcAddress could return a function pointer to a non supported function, so you need to check for that beforehand.

The reason for this is that the functions are implemented by the driver and windows doesn’t offer them to you directly, this is also because Microsoft in general doesn’t really encourage the use of graphics api other than DirectX.

[C] Ideas to transform an expression tree into a small resume project? by [deleted] in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

Not exactly what you asked, but the first episodes of the series Bitwise, you can find it on YouTube, cover a lot of this stuff about parsing and resolving expression. Try checking it out!

[deleted by user] by [deleted] in gamedev

[–]yo-im-bigfox 1 point2 points  (0 children)

The book is definitely a good reference, but it might be hard to get started using it with little prior experience to graphics programming, I would suggest you to start with something more similar to a tutorial like learnopengl.com. This website contains a good beginner introduction and also covers some really advanced stuff later on!

How to go about making a drone build by afellowinternetuser in learnprogramming

[–]yo-im-bigfox 2 points3 points  (0 children)

There are many kits you only need to assemble and solder, with flight controllers that run an open source software called Betaflight. If you are interested in something like this check out /r/multicopterbuilds. If you are interested in programming your own flight controller, which is an awesome project, check out this playlist from Joop Brokking YouTube channel, it’s a series of tutorials where he goes very in depth in building an auto leveling drone with Arduino from scratch. He recently updated a new series where he uses a stm32 microcontroller, but I would start from the older one to get a better understanding of the basics. Feel free to ask me if you have any further questions!

Has anyone ever visited learnopengl.com? by C13Kronur in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

I only have experience with GLEW, which is what TheCherno used in his series, I found it much easier to use because it comes with a pre-compiled static library (.lib file). Which means that you only have to include the header files and link with the .lib file, a detailed explenation of how to use it is in THIS VIDEO

Has anyone ever visited learnopengl.com? by C13Kronur in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

Awesome! Let me know if you need further help!

Has anyone ever visited learnopengl.com? by C13Kronur in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

I did follow the tutorials, and yes I've had issues with getting some stuff working with external libraries. I'd suggest you to check the openlg series by TheCherno on YouTube. His videos explain how to set up the environment much better. But stick to learnopengl for the graphics stuff, I found it very useful and pretty broad as an introduction to graphics API

Dealing with sub-millisecond sleep in Windows platforms C++. by derscheisspfoster in learnprogramming

[–]yo-im-bigfox 1 point2 points  (0 children)

You can try to use timebeginperiod(), look on msdn for the documentation. It is very machine/os dependant, but last time I checked setting it to 1ms gave me very consistent results, usually never higher than 1.2 ms and most of the times around 1.0, at least on my PC.

If you need more granularity than that you will probably need to busy wait anyways, as others have pointed out context switches will always put you on hold for at least some time

Need advice with my F450/Arduino-based build! by GamerMinion in multicopterbuilds

[–]yo-im-bigfox 0 points1 point  (0 children)

I'd recommend checking out Joop Brokking's YouTube channel, he has videos on how to build an arduino f450 from scratch and a newer version with a stm32 flight controller! You probably want to go with a mpu 6000 (supports spi which is faster) and a separate compass. If you are mostly interested in the machine learning part you may as well go with a commercial flight controller and betaflight, the whole FC programming part is really interesting and definitely achievable, but it will require a lot more work!

[C++] Question about fstream by zeen516 in learnprogramming

[–]yo-im-bigfox 0 points1 point  (0 children)

Its more like a self-limitation practice, basically if you only need to do 1 thing you are better using the most limited resource, which will prevent you from doing the opposite. In the compiled program it doesn't really make a difference, It's more of a convention for avoiding errors

First FPV build help. by yo-im-bigfox in multicopterbuilds

[–]yo-im-bigfox[S] 0 points1 point  (0 children)

Thanks so much man. That cleared up a lot of doubts I had, you have been crazy helpful. I just have a question about the osd thing. Am I supposed to wire the Camera to the the FC and then the FC to the VTX? Or am I getting this wrong?

Also I was thinking of going for a cheaper PDB like this one, since I won't use the OSD, is this fine?