Author: Cameron Taylor I was tasked to make a settings menu to allow the player to change their settings as easily as possible. The biggest issue I had was not with the buttons, but rather renderer not wanting to cooperate and show the correct assets on the screen. Those said assets also didn't like centering correctly since the entire pipeline was made on a custom engine. There was no support to allow auto-aligning or special effects for certain objects/text. To fix this I needed to make different game states so that the renderer knew which textures to draw on the screen and update accordingly. I also needed to do a lot more math than I would've liked to in order to fix the centering on each object. I added checks to make sure that I centered objects correctly with different offsets rather than having an engine do all the math for me.
Author: Daniel Jackson Our game requires the player character look towards the mouse in order to shoot in the game world correctly. This is done by using a raycast from the mouse position down into the world and rotating the player to face that position in the world. This appeared to work fine on startup but if the window was resized at any time in any way the raycast was skewed and would constantly be separated from the mouse position. This has been a recurring issue unrelated to the actual raycast code. The code itself is set to base the raycast's position relative to the size of the window. The raycast itself works fine however, when it grabs the size of the window, its only saving one size. To fix the issue I changed a separate function to get the current size of the window when the function is called instead of getting the size of the window on startup. I've done this fix before however at some point during integ...
Through the course of working on the asset pipeline and animation manager, I've had to deal with a fair few broken models and assets that need to be updated for the system built. This has lead to a few headaches, as with the current system for the engine, everything is done through code and cannot be tested without significant time investment. As a result, I've had to get better at looking at a model's attributes and discerning if it will work or not in our engine. This has included (but is not limited to) checking the scale of the model, and a particular example of this is pretty egregious. A teddy bear model used by the team as a placeholder for the enemy model had a scale that was in meters, while the engine we built utilizes centimeters. As a result, the teddy bear, when translated into our engine, was incredibly massive. Now, if it was a static mesh, this wouldn't be much of an issue -- just manually scale all of the verts in the mesh and move on as though no...
Comments
Post a Comment