Questions tagged [screen]

Usually a flat surface onto which information is visually presented. The screen of a computer is sometimes called a monitor.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 views

How to obtain the Position on the screen (Vector2) of the Position of an object in the world (Vector3)?

I have been searching around for a solution to this but still haven't been able to use it or find it, the thing is i need the Screen Position of an object that is being seen, for this i have three ...
user57129's user avatar
  • 121
0 votes
1 answer
42 views

Problem when changing matrix view in screen space reflexion

I’m using (DX11) LookAtLH or LookTo functions to get my view matrix. When setting Camera Direction so that the y component is zero I have the correct reflexion (picture left). When changing the Dir.y ...
philB's user avatar
  • 129
5 votes
2 answers
256 views

How would I mask the player node out of a canvas shader?

I'm making a 3D game, and I want to create a post processing effect using a canvasitem and a colorrect, that effects everything on screen apart from the player. I already have the shader itself made, ...
JackHainsworth's user avatar
1 vote
1 answer
127 views

In platformer video games, what is the term for the size of the character on the screen?

In 2D platformer games, what is the term or word for determining the size of the player character on the screen? For example, the player character in Castlevania: Symphony of the Night is very small ...
James Anderson's user avatar
1 vote
2 answers
485 views

How to make sure my UI remains the same across multiple screens?

How to make sure my UI remains the same across multiple screens? I've looked at some tutorials, but they didn't seem to apply to my situation. I tried the following, but they didn't resolve my problem:...
Cei's user avatar
  • 863
2 votes
1 answer
2k views

Start debug window on other monitor than the Godot editor

When starting my game for debugging, I'd like to have the game pop up at my second monitor (still in "Windowed" mode), instead of on top of the Godot editor window itself. I've tried several ...
Jeroen's user avatar
  • 555
0 votes
0 answers
36 views

Scale radius used in positioning script to match UI scale

I would like to ask a question about the scaling of objects to the size of the screen. But the question is not a problem that can be solved by setting the "canvas scaler" to "scale with ...
Soya's user avatar
  • 1
3 votes
1 answer
933 views

Screen split in different regions, each with a different scene

I am a complete beginner in Unity and, after having search for a while, I am still not sure if it is actually possible to achieve what I would like to do. My goal is to have a game where the screen is ...
Federico Tomasi's user avatar
1 vote
1 answer
93 views

Last hole artifact in screen space refection with Hierarchical Z

After lot of efforts I have an almost nice shader doing SSR with HiZ. The shader is provided below. Some parameters are tunable and you can speed up things but the difficulty in my scene (picture) are ...
philB's user avatar
  • 129
-1 votes
1 answer
272 views

Does Screen.orientation not work in simulator?

I use the Screen.orientation property to reposition my UI when the screen is rotated. But when I rotate the simulator to left or right, ...
利维坦's user avatar
1 vote
1 answer
1k views

How screen scaling works in Unity?

I created a very simple scene, to understand how screen scaling works in Unity. The scene has only a SpriteRenderer object and a TextMeshPro object - no Canvas or other UI elements. The TextMeshPro ...
Erel Segal-Halevi's user avatar
2 votes
1 answer
81 views

How to dim the device backlight using libGDX?

I have an idea for a very minimalistic game. To fit in with this theme. I want no explicit messages or tutorials etc. I want to experiment with ways to very gently, implicitly prompt the player to ...
andrew hughes's user avatar
0 votes
1 answer
224 views

Pygame having trouble with surface.blits method

I got used to blit every image into the screen on a seperate line in Pygame but now I want to start using the pygame.Surface.blits() method. According to the ...
Salem's user avatar
  • 216
0 votes
1 answer
814 views

What is surface locking and unlocking in Pygame?

I've read a little about surface locking and unlocking in pygame in Beginning Game Development with Python and Pygame. However, I still don't understand it. I've read that it can improve the game ...
Salem's user avatar
  • 216
0 votes
1 answer
76 views

Box2d: High screen resolution / frequency causes high friction?

I'm using Cocos Creator with (built-in) box2d for physics. Recently our game behaves weirdly on our new device Galaxy S20 Ultra 5G - which has screen size = 1440 x 3200 - frequency = 120Hz. After stop ...
David Tran's user avatar
1 vote
1 answer
481 views

How to expand the limit of screen mouse access for FPS side rotation

I started coding in Godot and i have a working FPS controller but the problem is that when i move my mouse sideways , it cannot move my sight beyinid that side of my screen , in other words the ...
SHikha Mittal's user avatar
1 vote
1 answer
2k views

Get all supported resolutions for a monitor

I've been receiving complaints from users that my game doesn't support the 16:10 aspect ratio. Currently I list everything in Screen.resolutions in a dropdown and ...
mr-matt's user avatar
  • 2,759
1 vote
1 answer
126 views

How to use WorldToScreenPoint function in a texture context?

I am rendering a scene into a RenderTexture and I have a set of 3D points. I want to convert these points from 3D to texture coordinate frame. It worked, when I rendered into screen and used ...
Hillbilly Joe's user avatar
1 vote
1 answer
783 views

Unity difficulty placing text within the reference resolution of the canvas

I have a TextMeshPro GameObject, which I placed within the Canvas. The canvas is set to Scale with Screen Size and has a reference resolution of 1440x1080. The ...
sdfsd's user avatar
  • 113
0 votes
1 answer
6k views

Unity Screen.height / Screen.dpi is *not* equal to the screens height in real life

On mobile, I was planning on using Screen.dpi to work out the physical size of the screen and size controls accordingly. But this quick test on my Galaxy S5 proves that the numbers from Unity are ...
Guye Incognito's user avatar
0 votes
0 answers
958 views

How to make game playable in all mobile screen resolution using Unity Cinemachine with perspective mode?

I want my 2D game to be playable (auto scale) in all screen resolution. I'm using Cinemachine & under "perspective" mode. I found tutorial to change the screen in "orthographic" mode but there is ...
Min's user avatar
  • 1
1 vote
0 answers
414 views

The most popular Resolutions and Aspect Ratios in Android OS 2019

I develop the game with Libgdx framework. When I tried to deal with support multiple screen resolutions it turns out that Libgdx is not following Android approach how to deal with Screen sizes and ...
John Robinson's user avatar
0 votes
1 answer
1k views

Not getting proper height in unity when android device has notch or navigation bar on screen

Screen.height is not giving the proper resolution of an Android device when that device has a notch or navigation bar. Due to this there is offset at bottom of ...
Wrong Turn's user avatar
1 vote
1 answer
269 views

Unity / How to access my screen pixels outside of unity?

I want to run unity in background and get the pixel colors of my screen. i didnt find anything on the assetstore or somewhere else that could make that possible. Texture.ReadPixels() also does only ...
OC_RaizW's user avatar
  • 1,450
0 votes
1 answer
3k views

libgdx - creating static HUD/widgets on screen

I'm having problems with creating static HUD/buttons on the game screen. Currently my game has a character moving on the tiled map, with OrthographicCamera put on, everything works fine. I wanted to ...
spectral's user avatar
1 vote
1 answer
5k views

LibGDX Stage and Viewport management for Actors?

So I've done research about how to use Stage, Actor and Viewports etc. To optimize the game for most devices running Android. I'm pretty sure that the viewport is configured or the background image is ...
kevvex's user avatar
  • 137
1 vote
1 answer
1k views

How to create a split screen display with one frame and canvas

I am creating a 2D Java game, which looks like this: My question is what should I do to my display to create two 'separate' displays. I plan on doubling the height of the program, and have a second ...
Fusha's user avatar
  • 13
0 votes
1 answer
1k views

Screen Capture rendered on a RenderTexture in Unity

I have a pretty wild idea for a unity application that would work on a multi-display setup. The app would be running in full screen mode on one of my displays, and the contents of the remaining two ...
Lázár Zsolt's user avatar
1 vote
0 answers
58 views

Android Game Screen Limits [closed]

I'm trying to do a game but I'm stuck. I have a player and I move it with the buttons but I can't make the player stop when it reachs the screen limits. What am I doing wrong? Main Activity: ...
Agustin Val's user avatar
9 votes
2 answers
31k views

How to force keep the aspect ratio and specific resolution without stretching the output screen view?

I'm using Screen.SetResolution() But when I run in Android device, it shows the output image is stretched to fill up the full screen which I don't want. I want it to keep the aspect ratio properly. ...
elliotching's user avatar
0 votes
1 answer
631 views

How to make the main menu screen fade out when the game starts in libGDX?

I am creating the main menu of my game, and I want the main menu screen to disappears with a fade out. I thought that if I used a Stage to make the menu and added ...
TwoDent's user avatar
  • 115
1 vote
1 answer
55 views

mobile: Is every position in percentages when you support multiple screen sizes (different aspect ratios)?

Is every position in percentages when you support different aspect ratios? Or do you do if-else statements for each aspect ratio and put absolute positions? What are the pros and cons of each?
Zik's user avatar
  • 209
1 vote
0 answers
61 views

How can I convey to a player that they need to hold the screen?

My game has similar mechanics as Flappy Bird game. When you tap or hold the screen with your finger, character goes up. Everybody who tested the game forgot to hold touching the screen, instead they ...
berkc's user avatar
  • 123
0 votes
1 answer
40k views

Controlling screen and window size in Unity

In Java I know how to make a window of a certain size and make it not resizable. How do I control my game's window size in Unity and prevent players from resizing it?
Joza100's user avatar
  • 259
2 votes
3 answers
514 views

The proper name for a state, view, screen, etc

Most of my experience is in programming in HTML, JavaScript, etc. I'm taking on a relatively large project, and while I'm the only developer, I eventually want to open source my code for other ...
RoboticRenaissance's user avatar
0 votes
1 answer
212 views

How to make a death screen without making it a new state?

You must be confused by the question, let me explain. In some games, when you die, it shows a death screen but the background is sometimes transparent and shows the game play. how to do that. here are ...
Sree's user avatar
  • 43
8 votes
3 answers
11k views

Why is OpenGL point (0,0) not in top-left corner of the screen?

Most of computer graphics systems use screen's top-left corner as staring point, but OpenGL uses bottom-to-top direction, why?
madneon's user avatar
  • 295
0 votes
1 answer
857 views

Gamemaker display orientation detection

I am making a game that needs to detect when the device gets turned over in landscape mode to landscape-flipped to change some game mechanics when the player does so. The project is already set to ...
PayToPwn's user avatar
  • 123
3 votes
1 answer
1k views

LibGDX - FPS drops

I've been trying to record some gameplay footage of the game I'm currently working on, using the Android SDK and ADB to do it. Whilst the game runs at constant 60 fps in my medium-end phone, as soon ...
Francisco's user avatar
  • 231
0 votes
1 answer
2k views

How to split a screen in half using LibGDX without scaling?

I am currently working on a racing game with libGDX and I need to split the screen in half for a two-players mode. (Player 1 in first half and Player 2 in second half). I already have Camera1 that ...
Rasoplast's user avatar
1 vote
1 answer
268 views

Switching Screens without initializing them every time

I have a UI with four Screens (all extending a "main Screen") that users switch between very frequently, at the moment I am switching Screens using ...
Green_qaue's user avatar
  • 1,893
1 vote
1 answer
358 views

Vertically mirroring the screen in LibGDX

I'm developing a game in which the screen layout is different for right and lefty players, so i'll put a button in it to mirror the screen vertically. For displaying textures and fonts, i use a ...
Davide Cattani's user avatar
2 votes
2 answers
5k views

Handling Back Button in Android without implementing InputProcessor

Please advice/clarifyon below issue in libgdx while handling back button in Screens. I have already gone through these 2 threads, https://stackoverflow.com/questions/7223723/in-libgdx-how-do-i-get-...
kingAm's user avatar
  • 266
2 votes
1 answer
468 views

Scalling down libgdx game to fit a smaller screen appears only the half of the stage?

Hello I have made a game in 1280x720, but I want it to fit devices with smaller size, so far no luck with the current code it only shows the left half of the screen, it also does not work with bigger ...
nitheism's user avatar
  • 151
1 vote
2 answers
1k views

Libgdx change to other screen and dispose current one

I am trying to switch to a GameScreen when the LinearVelocity of a Box2D - Object is x = 0. If it is so, I am using the setScreen() - Method by calling the main class. This works perfekt, but when ...
Niemand's user avatar
  • 35
1 vote
0 answers
74 views

How to use GetViewProjMatrix().TransformVector(LineDirection) in UE4?

I try to project a 3D vector (a direction, not a position) in screen space, but it does not return satisfying results: ...
arthur.sw's user avatar
  • 291
1 vote
2 answers
3k views

Section cut through (solid) geometry

I'm looking for image based (screen space) technique to render section cuts through arbitrary (solid) geometry. I found and studied image based CSG (Kirsch 05 / OpenCSG) but I found it to be perhaps a ...
skrat's user avatar
  • 173
0 votes
2 answers
96 views

the half of the screen does not seem to work correctly

I am not such a professional coder but trying to code something on Unity. However, when I try to play the application in my android phone, the half of the screen does not seem to work correctly: Can ...
Atlok's user avatar
  • 1
1 vote
0 answers
78 views

SpriteKit Obj-C – How to add a force on a node a certain distance according to screen size

I have an SKSpriteNode that I'm trying to throw up to a certain point on the screen. I've tried applying an impulse and/or force according to the screen size, but that has strange results. I've also ...
Christian Kreiter's user avatar
1 vote
1 answer
1k views

Switch beetween Screen on LibGdx application

i have set main class like this: ...
Dev4Ever's user avatar