So I'm trying to load in an md2 model to use as the controllable character. I have loaded it in just fine, but I'm facing issues when trying to move the model along with the camera.
I'm using the SuperBible (5th edition) for my OpenGL, and this project is based on one of the examples.
The project isn't OO, so all the code is jammed into one main file, so you can see the code HERE.
I've tried to set both the camera and the model's origin, but then neither of them move for some reason. If I set the camera origin, and not the model's origin, the model is able to move, and visa versa.
Setting neither of their origins works but then ofc, I can't see the model as they're both at (0, 0, 0).
What am I doing wrong here?
Also, how can I change the controls so that the model moves along with the camera? The way I have it at the moment, the model rotates with 'a' and 'd' and doesn't move to the left of right. Do I need to move the camera behind the model around the model's axis? How do I do this?
There's a lot here, I understand, but I can't seem to find out how to solve this!
I'm working on a game that uses OpenGL for the graphics and SDL for input. It will require a really simple GUI, such as one with buttons and text boxes (nothing that advanced). What would you suggest for either a UI library I could use, or even tutorials to use to create this simple UI in OpenGL?
I've tried a variety of libraries so far, and a IMGUI tutorial for SDL, but they all seem much too advanced for what I need them for and require too much time to learn, when all I want is something very basic.
I recently made a topic about getting a second monitor for a dual monitor setup. I went ahead and got a 23" LED HD monitor, to accompany my 21.5" LCD HD monitor.
On waking up the day after I had got it and used it, I had some quite severe eye strain, which is still apparent 3 days later. I find this strange as I've heard LED's are meant to reduce eye strain, so what could be the problem here? Could it be that I have two different types of monitors that my eyes are switching from now and again? Could it just be the new monitor?
I'm looking into getting a refund or exchange so that I can get something a little less... painful, but I thought I'd come here to ask all you intelligent people first, to see if a reason could be found.
The new monitor is an LG E2351 in case that matters.
I've got a 21.5" monitor atm and would like to know if getting a second monitor, rather than a larger one, helps when multi-tasking as a game developer. I'm thinking that it would be nice to have my IDE on one monitor, and maybe a tutorial or something else on the second one.
I'm trying to get myself through Beginning C++ Through Game Programming, and am trying to do a particular exercise.
I have to re-write the following program, making use of enumerators. All I've done in my answer is put in a difficulty enumerator between the initial group of couts and the declaration of 'choice', and then inserted a 'myDifficulty = WHATEVER' in each case in the switch. Am I supposed to keep the switch or is there a better way to re-write this to include an enumerator and make better use of it?
// Menu Chooser
// Demonstrates the switch statement
using namespace std;
cout << "Difficulty Levels\n\n";
cout << "1 - Easy\n";
cout << "2 - Normal\n";
cout << "3 - Hard\n\n";
cout << "Choice: ";
cin >> choice;
cout << "You picked Easy.\n";
cout << "You picked Normal.\n";
cout << "You picked Hard.\n";
cout << "You made an illegal choice.\n";