Questions tagged [scale]
Scale in relation to the geometry, in a game, whether that be 2D or 3D.
189 questions
1 vote
1 answer
70 views
Gizmo scaling with arbitrary reference coordinate system
I am currently implementing gizmos in my engine (or rather continuing the implementation I made a year ago). I had implemented a way to choose whether transformations are applied based on local space ...
0 votes
0 answers
55 views
multiplayer game using express(for login, registration etc..) and socket.io(for game-actions) what is architecture and how to scale it horizontally?
Hey please sorry if I sound dumb and correct me! So, I am building multiplayer game using react.js,express.js and socket.io and now really want to deploy after building so and also i want to make my ...
0 votes
1 answer
136 views
How to implement an auto scaling feature for an HUD?
I have a question about UI scaling for a game. I'm using as engine Zandronum (zdoom based) and his ACS scripts to draw an HUD, I've wrote a simple library to make drawing easier and implemented a user ...
0 votes
0 answers
104 views
Zoom in and out centered about the mouse cursor in 2D using ImGUI
I have a 2D canvas used in a ImGUI context, that requires Zoom and Pan functionality. Currently the Pan functionality works fine. However the zoom functionality does scale but the result is not ...
1 vote
1 answer
269 views
How should I go about handling multiple phone resolutions from a reference resolution?
I built my entire game in Unity based on my Android phone resolution, both for UI and object sizes. Now, everything looks good for a 1080 x 2400 resolution, but I know that's not the aspect ratio of ...
0 votes
1 answer
272 views
How to control the scaling/cropping of a background image
I created a new scene in Unity, dragged an image file, and scaled it to fit the screen size. Here is how it looks like in the Scene panel: When I change the screen size, e.g. by switching to ...
0 votes
2 answers
127 views
How to properly control speed of sprite scaling to create "hallway" effect
I'm working on a project (in Gamemaker GML, so JS-like) that involves manipulating 2D sprites (scale and position only) to generate a(n intentionally hacky) visual illusion of moving down a 3D hallway....
2 votes
1 answer
200 views
What should I use as source of truth for sizing sprites?
Let's say I have a texture atlas of an entity A which is 950x800, each frame has a size of 95 (width) and 100 (height) in pixels. Additionally, I have a 2150x1300 atlas, which contains more frames. It ...
0 votes
1 answer
145 views
SDL2 oversized pixels
I pulled my SDL2 game out of cold storage and am working to get it running again. I found a curious thing: graphics primitives based on SDL2_gfx and text based on SDL_ttf are displaying way too big, ...
2 votes
1 answer
394 views
Approach to rendering a planet texture
I'm making a space game using Godot 4, and I need to capture the "hugeness" of planets. I figured I'd use spheres with textures on them for planets. The textures have identifiable ...
0 votes
1 answer
138 views
How to render a portion of a texture (upscaled) without affecting the border with SDL2?
I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
0 votes
0 answers
68 views
Determining meters per second in scaled terrain
I have a terrain with a width of 199 and height of 99 and I'm scaling this train by 500. What would be 1 meter in the new terrain, would it be 500? I'm trying to move my character in meters per second ...
0 votes
0 answers
174 views
Changing the default 1 Unit = 1 Meter to 1 Unit = 1 Yard in Unity
I am working on an augmented reality project in Unity using MRTK and have just found out that one Unity Unit is equal to a meter in real life. Unfortunately my project needs to be in yards. My current ...
0 votes
1 answer
137 views
how to move a mesh to be the child of another node?
if i import an item directly unto a bone attachment for some reason it becomes so small it is invisible even tho the bone attachment has a scale of 1 to 1 and was never re-sized also the rotation is ...
0 votes
0 answers
183 views
Unity WebGL Game's Canvas UI scale changes with windows scale
So this is the setting that is affecting my game. My game is a webgl build from unity running in chrome, hosted on itch.io. At 100% windows scaling setting, the UI elements have expected size,...