The view tag has no wiki summary.
0
votes
1answer
29 views
View Matrix from Camera in Unity Script
I am looking to get a Camera component's "view" matrix in a script. I see that I can get the projection matrix using Camera.projectionMatrix, but I don't see a Camera.viewMatrix property...
I want ...
2
votes
1answer
61 views
Shear transformation in the projection matrix?
I am trying to understand what the shear transformation (l+r/r-l & b+t/t-b) is actually doing in the projection matrix? The only thing I got till now is headache :) Can you please help?
0
votes
2answers
987 views
onTouchEvent only working for one view within activity
I have a parent Activity which contains 2 views. One view is a custom view class, where I am overriding the onDraw method. This view contains an onTouchEvent function, which is checking for user ...
1
vote
1answer
202 views
Show view over existing view in same activity
I am newbie Android developer, and I am starting out with a simple Sudoku game. The problem I am facing right now is that I have my game showing on a dedicated Activity, which is displaying a custom ...
1
vote
2answers
134 views
Top Down bounds of vision
Obviously in a first person view point the player sees only what's in front of them (with the exception of radars and rearview mirrors, etc). My game has a top down perspective, but I still want to ...
2
votes
1answer
70 views
Model View Controller linking dynamic model to view
I currently an implementing a game roughly using a model-view-controller setup. A single game controller instantiates a model and view. The model and view then instantiate child models and views, ...
2
votes
0answers
174 views
Camera - View matrix in Android + openGLES 2
I am trying to use the touch screen on the tablet to control my camera movements and generate the view matrix accordingly.
I get the x and y coordinates of the screen and after doing some sanity ...
11
votes
4answers
1k views
Why is Y up in many Games?
I learned at school that the z-axis is up. It is the same in modeling software like Blender. However in many games the y-axis is up.
What is reason?
0
votes
1answer
138 views
Y Axis inverted on vertex output
I've got my project running and somehow it seems my vertex y components are inverted. 10 in the positive on Y goes down and 10 negative on the Y axis goes up.
I can't find anything with the ...
46
votes
9answers
9k views
Why do we move the world instead of the camera?
I heard that in an OpenGL game what we do to let the player move is not to move the camera but to move the whole world around.
For example here is an extract of this tutorial: OpenGL View matrix
...
1
vote
1answer
927 views
How to switch between views in android?
I've tried several methods to switch between two views in my program. I've tried creating a new thread then have the view run for 5 seconds before creating intent to start my main activity. This is ...
1
vote
2answers
220 views
Matrix camera, movement concept
Someone told me that the movement concept in my 2D game is bad. When left or right arrow is pressed I'm scrolling the background which makes you feel that player avatar is moving (the avatar's ...
1
vote
1answer
285 views
UIView with IrrlichtScene - iOS
i have a UIViewController in a Storyboard and want to draw a IrrlichtScene in this View Controller.
My Code:
WWSViewController.h
#import <UIKit/UIKit.h>
@interface WWSViewController : ...
2
votes
1answer
242 views
Implementing Circular Sprite Masks
So I've been scouring the interwebs for a couple of days with regards to how to implement sprite masking in XNA 4 and C#. Coming from a pet project I did in Flash, this was pretty easy as masks are ...
10
votes
1answer
879 views
Best Method to Simulate Height in a Tiled Top-Down Game
What is the best method to simulate height for a top-down tiled 2D game? One way I thought was to make tiles which are supposed to be higher brighter, but I was wondering if there was a standard or ...
1
vote
1answer
824 views
Android-Handling screen clicks for dynamically moving objects in a view
I have a kind of broad question to ask but I have to start some where so.....What is the best way to handle onscreen clicks for moving objects being drawn on a canvas in a view. Im registering the ...
1
vote
1answer
342 views
Strange 3D game engine camera with X,Y,Zoom instead of X,Y,Z
I'm using a 3D game engine, that uses a 4x4 matrix to modify the camera projection, in this format:
r r r x
r r r y
r r r z
- - - zoom
Strangely though, the camera does not respond to the Z ...
4
votes
1answer
643 views
How can I achieve a zoom-like camera effect?
I have a top down 3D camera:
view = Matrix.CreateLookAt(new Vector3(0,0,20), Vector3.Zero, Vector3.Up);
Now I want to achieve the effect like when I zoom in the scene and only show a section at the ...
5
votes
3answers
366 views
How can I calculate where my camera can be to avoid showing something outside a region?
I have a landscape model, which goes from the coordinate -45, -45 to 90, 90.
The edge of the model just cuts off and i would like to somehow stop the screen from ever passing these points. Basically ...
3
votes
1answer
1k views
Can a 4x4 matrix describe a camera's perspective?
I'm working with a closed-source 3D engine, and it only allows you to set the view projection via a 4x4 matrix. Can this matrix describe the camera's translation, rotation & perspective?
I turned ...