The viewpoint from which the game world is observed from.
1
vote
1answer
74 views
Optimize maximum performance “Frustum.contain ()” on XNA?
I wonder if it is possible to optimize the performance of "BoundingFrustum" requesting return of the visible elements that are found only on the part of the ground before the player .. Checker and not ...
1
vote
1answer
166 views
Tiled map seen from an angle
I have working code to display a tiled map. It's composed of a OrthogonalTiledMapRenderer and an OrthoGraphicCamera :
camera.setToOrtho(false, WORLD_WINDOW_SIZE.x,
WORLD_WINDOW_SIZE.y);
...
1
vote
1answer
226 views
XNA - moving the 3rd person camera
I'm having following problem:
Can't set my camera to follow object from behind and rotate when I use left/right arrow. I've tried different tutorial and examples but it still doesn't work for me. ...
1
vote
1answer
298 views
OpenGL ModelView matrix
Hello I am trying to understand matrix operations behind OpenGL and I have some questions.
1- When we first create a simple window using glut and opengl, we use such a command below to draw a simple ...
1
vote
1answer
73 views
XNA 3D coordinates seem off
I'm going through a book, and the example it gave me seems like is should work, but when I try and implement it, it falls short.
My Camera class takes three vectors in to generate View and Projection ...
1
vote
3answers
692 views
2D camera perspective projection from 3D coordinates — HOW?
I am developing a camera for a 2D game with a top-down view that has depth.
It's almost a 3D camera. Basically, every object has a Z even though it is in 2D, and similarly to parallax layers their ...
1
vote
3answers
847 views
How to add a scrolling camera to a 2D Java game?
I am attempting to create a game where the camera follows the player, always making sure the player is in the center of the screen. How would I go about this? This game is a 2D Java game, made with no ...
1
vote
1answer
122 views
Camera wont stay behind model after pitch, then rotation
I have a camera position behind a model. Currently, if I push the left thumbstick making my model move forward, backward, or strafe, the camera stays with the model. If I push the right thumbstick ...
1
vote
1answer
384 views
Pitch camera around model
Currently, my camera rotates with my model's Y-Axis (yaw) perfectly. What I'm having trouble with is rotating the X-Axis (pitch) along with it. I've tried the same method for cameraYaw() in the form ...
1
vote
1answer
146 views
Averaging Camera Position
I'm making a camera which tracks the player. I am using a basic algorithm to calculate a position for the camera relative to the player. Then I am taking an average of this over the last x number of ...
1
vote
3answers
2k views
3D XNA Tracking Camera
I'm trying to implement a camera that tracks a 3D model in my game. I've taken a look at this MSDN article on creating a 3rd person camera, as well as experimenting on my own; but I don't get the ...
1
vote
1answer
287 views
How to prevent 2D camera rotation if it would violate the bounds of the camera?
I'm working on a Camera class and I have a rectangle field named Bounds that determines the bounds of the camera. I have it working for zooming and moving the camera so that the camera cannot exit its ...
1
vote
2answers
361 views
Creating a rotation offset based on camera position with XNA
I have an XNA project where characters have the ability to pick up and move objects around (in 3d). When an object is picked up by a character, I want ithe objects position to always be out in front ...
1
vote
1answer
112 views
What game systems exist which uses camera input?
The group and I is in the middle of a semester project where we are currently researching on which game systems are using camera as input or as an interactive medium?
We would like some help listing ...
1
vote
1answer
2k views
OpenGL 3D Camera
And here I am again, looking for help with my OpenGL camera once again. This is starting to get embarrassing. Anyway, here's the deal: I think my OpenGL First Person free roaming camera is starting ...
1
vote
1answer
111 views
relationship between eye height and collision body in UDK
We are using the UDK in a research lab setting so we must understand exactly how tall users feel in the virtual world (camera position). By Googling and digging through code, we have discovered the ...
1
vote
2answers
263 views
Camera frustum calculation coming out wrong
I'm trying to calculate a view/projection/bounding frustum for the 6 directions of a point light and I'm having trouble with the views pointing along the Y axis. Our game uses a right-handed, Y-up ...
1
vote
1answer
65 views
Dealing with field of view when zooming into a terrain from a height
I'm creating a tech demo featuring a small planet. The problem I'm having is that the planet doesn't really feel like the right "scale" when the camera in down on the surface, I think it could be the ...
1
vote
0answers
31 views
resizing directx control so that more of my object's environment is visible
I'm very new in 3D. I have a DirectX control which I want to be able to resize. A 3D object is shown in the control. On resize, I would like that object to stay the same size, only more of its ...
1
vote
0answers
169 views
Drawing two orthogonal strings in 3d space in Android Canvas?
I want to draw two strings in canvas. The first string must be rotated around the Y axis, for example 45 degrees. The second string must start at the end of the first string and also it must be ...
1
vote
0answers
142 views
How do I convert my matrix from OpenGL to Marmalade?
I am using a third party rendering API, Marmalade, on top of OpenGL code and I cannot get my matrices correct. One of the API's authors states this:
We're right handed by default, and we treat y ...
1
vote
0answers
169 views
Camera not staying behind model while moving in circle
I have a camera behind a model (3rd Person) and I'm having problems KEEPING it behind the model. When I first start my game, you see the back of the model. If the model moves forward, backward or ...
1
vote
1answer
533 views
2d game view camera zoom, rotation & offset using 'Filter' / 'Shader' processing?
I wish to add the ability to zoom-in, zoom-out, rotate and move the view in a top-down view over a collection of points and lines in a large 2d map. I split the map into a grid so I only need to ...
1
vote
0answers
117 views
reflection plane 3d
Hey there I'm trying to create a plane that can have a texture on it and reflect the 3d elements around it. for example a plane with a laminate floor texture and above it a cube rotating. I want the ...
1
vote
1answer
324 views
xna orbit camera troubles
I have a Model named cube to which I load in LoadContent(): cube = Content.Load<Model>("untitled");.
In the Draw Method I call DrawModel:
private void DrawModel(Model m, Matrix world)
...
1
vote
0answers
659 views
Orthographic Camera Zooming
In XNA I am using a spritebatch to render a board. I have created a camera class which can provide me a view and projection matrix. Currently I am supplying the view matrix to my sprite batch when I ...
1
vote
0answers
476 views
How to turn a 3d camera (in HTML5 2D Canvas)
A few years back I started experimenting with 3d in canvas. Everything went pretty well untill I had to to turn the camera, I couldn't get it done.
A few days back I just happened to stumble upon ...
1
vote
0answers
164 views
Smooth Camera Offsets
I am attempting to implement a sort of, smooth camera that has angle offsets from the player as they turn, creating a cinematic effect as well as visual feedback for when the player turns.
Here is an ...
1
vote
0answers
117 views
Issues with Spherical Coords and gluLookAt
I am currently developing a game set in a planet(A sphere), in which my camera mostly works though some issues arise from this method: ...
1
vote
0answers
439 views
Picking 3D object with Mouse when using Camera Zooming in XNA 4.0
I've tried to figure out how to do picking with the mouse, and things work great when zoomed in all the way with the camera (Third Person Camera). And it works perfectly when using First Person ...
0
votes
2answers
144 views
3D Camera manager tool – is there any?
Are there some libraries or example codes, of a camera manager – a tool, that would move camera using some smooth lines (bsplines or similar)? So basically I request an animation to move to a new ...
0
votes
3answers
196 views
Understanding how to go from a scene to what's actually rendered to screen in OpenGL?
I want something that explains step by step how, after setting up a simple scene I can go from that 'world' space, to what's finally rendered on my screen (ie, actually implement something). I need ...
0
votes
4answers
2k views
XNA spritebatch drawing to the centre of screen
I have bit of a silly problem.
Is is possible to use SpriteBatch.Draw() method to draw to the centre of screen using coords from the beginning of window (So resolution 800x600 would use 400;300) ...
0
votes
1answer
479 views
XNA 3rd Person Camera - pitch reverses when facing backwards?
I have a 3rd person camera which rotates around the Y axis fine (yaw) and when I am facing forward (0, 0, -1) moving the mouse up moves the camera up and down great. But the more I turn the player and ...
0
votes
1answer
46 views
What values to construct “Projection Matrix” from?
I am curious to what standard values I should use to create a camera's projection matrix, as well as if certain measurements need to be taken if I want to represent a very small world or a very big ...
0
votes
1answer
87 views
gluLookAt strange behavior implementing camera
I'm having a super tough time trying to implement what I thought would be a very straightforward problem. I'm trying to demonstrate a free camera that can move forward/back, strafe left/right, fly ...
0
votes
1answer
55 views
A view and projection matrix oddity?
I have a bit of a dilemma ...
So i setup my scene how I want it with some bits in it and now I want to move all my camera related code in to a camera class however doing so is proving to be a pain in ...
0
votes
1answer
210 views
Implementing a camera on HTML5 canvas?
I am trying to work out the best way of implementing a camera in my simple 2d game.
The way it is structured at the moment is my game objects all have draw functions, which are passed a canvas ...
0
votes
1answer
130 views
Use of FlxG.camera.follow to follow a character vertically
I am developing a prototype for a game in Flixel in which a character floats upward continually to traverse the level. I would like to have a "tall" layout for levels and set the FlxG.camera to follow ...
0
votes
1answer
1k views
How to add isometric (rts-alike) perspective and scolling in unity?
I want to develop some RTS/simulation game. Therefore I need a camera perspective like one knows it from Anno 1602 - 1404, as well as the camera scrolling.
I think this is called isometric perspective ...
0
votes
1answer
109 views
Connect camera class to game
I've been following a tutorial on making a free camera for a 3D model. What the camera class does is allow the player to move and rotate in respects to the model's current position using the right ...
0
votes
1answer
303 views
Conversion from matrix defining rotation and position to camera matrix
I have a matrix that defines the rotation and translation of an object, relative to (0, 0, 0). Assuming that the identity matrix defines the camera to be at (0, 0, 0) pointing at (0, 0, 1), how would ...
0
votes
2answers
68 views
Moving camera along generated terrain?
I'm generating my terrain on the GPU, using diamond square subdivision (no height map involved). How can I anchor the camera's position to always be on top of the generated terrain?
Thanks
0
votes
2answers
38 views
Min. Distance for Spotlights in Ogre3d?
I have a simple scene with only one empty box. Within that box I have the camera attached to a scene node, which the user can move (translate/rotate). Additionally a spotlight is attached to the ...
0
votes
1answer
123 views
How do I create a camera for a strategy game?
How do I make a camera for a strategy game? Think something in the style of Warcraft 3, so you can lower the camera angel and view the world in a somewhat 3D format. Do I need to have some coordinate ...
0
votes
1answer
279 views
XNA - move camera over tilemap
I am trying to build a game based on Advance Wars in XNA.
I am so far where the tiles are placed on the screen, except here starts my problem. During the game, I ofcourse want to move the camera ...
0
votes
2answers
311 views
Making a Camera look at a target Vector
I have a camera that works as long as its stationary. Now I'm trying to create a child class of that camera class that will look at its target.
The new addition to the class is a method called ...
0
votes
1answer
153 views
Limit the amount a camera can pitch
I'm having problems trying to limit the range my camera can pitch. Currently my camera can pitch around a model without restriction, but having a hard time trying to find the value of the ...
0
votes
1answer
47 views
Camera changes view when controller connected
I have a weird situation. I have a model set to 0 for X,Y and Z. My camera's position is set to:
0 (X-value, but updates when the model moves around)
the model's height + 20f (about the same level ...
0
votes
1answer
194 views
Java Slick2d - Mouse picking how to take into account camera
When I move it it obviously changes the viewport so my mouse picking is off.
My camera is just a float x and y and I use g.translate(-cam.cameraX+400, -cam.cameraY+300); to translate the graphics. I ...

