Tagged Questions
4
votes
1answer
3k views
Mouse location is off due to camera
I'm building a top down shooter but I have a little issue with my camera and mouse.
When I add the camera that I use to my game (see here) my mouse pointer seems to be in the wrong location.
When I ...
3
votes
1answer
2k views
Orbiting a specific point - Orbiting Camera
How would I create a camera that with the mouse, it allows you to orbit around a specifc position, with the camera always facing that point? I would also like it to be able to always be at a constant ...
9
votes
2answers
3k views
XNA 2d Camera Scrolling - why use matrix transform?
I am making a test game where I want the level to be constantly scrolling. To create this effect I have established a camera class which simply stores a vector2 position and an enum direction. It also ...
3
votes
1answer
289 views
Unity3D Camera constantly moving
I'm trying to make my own first person camera controls in unity that use both thumbsticks on a joypad. I have this working fine. However, when I move the right thumb stick (the one uses to look left / ...
12
votes
2answers
2k views
How to blend two cameras when traveling through a portal in Unity3D
Before I get to my question, I know the most obvious solution would be to use the normalized view port rect, however I need more complex shapes than a rectangle, and I've looked in to using the view ...
2
votes
1answer
242 views
Frustum culling with third person camera
I have a third person camera that contains two matrices: view and projection, and two Vector3's: camPosition and camTarget. I've read up on frustum culling and it makes it seem easy enough for a first ...
1
vote
1answer
851 views
moving 2D camera
I've got a camera that places the character about a 1/4 way into the screen. The problem I'm having is that when the character moves left the character stays in place now placing the character 3/4 the ...
0
votes
1answer
248 views
XNA Arcball and moving model - the model is altered instead of the camera
I'm trying to implement an arcball type camera, I've got all controls working very nicely.
I can rotate the X/Y axis with my mouse and zoom in and out with the Z/X keys.
The problem is, that the ...
0
votes
1answer
293 views
3d world vertex translation to go to 2d screen coords
My technical english is a little rusty so to avoid misunderstands please be patient with me :)
I will try to be brief and clear
Situation:
- I have a 2d sprite character on the screen
- I've just ...
-2
votes
2answers
405 views
Move camera on X and Z only
How would you implement movement on a camera in order to always move it on X and Z coordinates, and if the camera has pitch yaw or roll it still moves only in those coordinates and doesn't fly up?
-5
votes
1answer
146 views
camera2d class will not work [closed]
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ...