Questions tagged [viewport]
An area (typically rectangular) expressed in rendering-device-specific coordinates, e.g. pixels for screen coordinates, in which the objects of interest are going to be rendered
10
questions
4
votes
1answer
444 views
Can you help me solve the paradox that has confused me about the glViewport and glOrtho functions?
suppose that I have an image that I want to apply as a texture on a geometry (at time we don't consider texture mapping but this image has a certain width and height here it is a 512x512 image)
I want ...
28
votes
6answers
5k views
Why shouldn't I permit changing the field of view, if the technology allows for it?
This is less of a question aimed at developing a game and more about the technology behind it. A number of gaming journalists and pro gamers (both in the tournament and the home entertainment sector) ...
1
vote
1answer
1k views
Centering GLViewport position within physical screen
I'm developing my app on one device and want it to display at the same ratio on all other devices.
Currently what I have is 'image 1' in my image below - the game fits perfectly onto my development ...
2
votes
1answer
166 views
How do I render a cylindrical world space onto a flat, 2D view port in Unity?
The question is just a logical extension of this question.
So, how should I render a cylindrical world space onto a flat, 2D view port in Unity?
Thank you.
2
votes
1answer
907 views
LibGDX - Camera and viewport initialization in show()?
I'm reading the book LibGDX game development by example and the author tends to follow a pattern like
...
1
vote
0answers
483 views
get position of GameObject on rendertexture from camera
I'm rendering the camera output to an rendertexture on a plane. This works fine. But I want to put GameObjects on the rendertexture on positions of world objects that are visible on the camera.
<...
1
vote
2answers
4k views
Drawing only objects that are currently in viewport [Gamemaker]
Following on from my previous question about optimising large object counts in Gamemaker, I am looking for a method for the solution proposed by liggiorgio.
My game has large numbers of small, sprite-...
1
vote
2answers
2k views
How can I calculate the orthographic projection needed to encompass an object with arbitrary rotation?
So I need to set up the dimensions of a orthographic projection that will encompass the entirety of a bounding box when viewed from any arbitrary position.
That's an eye (programmer art); and the ...
0
votes
2answers
2k views
How to setup glOrtho and Viewport [duplicate]
When setting up a window I set 6 variables in my render class
...
-4
votes
1answer
209 views
Making Minecraft in 2D. Blocks move when player moves
I want to make a 2D Minecraft game and I have drawn the grass blocks and you can dig but when the palyer moves the dirt moves too.
It draws on every block wich the player touches a dirt block because ...