XNA Game Development Forums
2012/05/21 19:58:11 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Camera problem  (Read 1686 times)
Montynis
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: 2007/08/02 05:41:56 »

Hello,

First, thanks for great tutorials.

Now I have got a little problem with a camera class. In third person camera, I call Revolve method when I want to go around the scene:

public void Revolve(Vector3 target, Vector3 axis, float angle)
{
      Rotate(axis, angle);
      axis = Vector3.Transform(axis, Matrix.CreateFromQuaternion(myRotation));
      Quaternion rotate = Quaternion.CreateFromAxisAngle(axis, angle);
      myPosition = Vector3.Transform(target - myPosition, Matrix.CreateFromQuaternion(rotate));

      Update();
}

While rotating it appears to blink and if you let go of the controls at the right moment the objects all dissappear. Why does it happen and how to solve this problem?

Thanks in advance.
Logged
Theoderich
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #1 on: 2007/08/02 09:31:34 »

Hey Montynis,

sounds like your rotation is performed too fast. I had that Problem when I implemented the Revolve-Function with the textured Quad. Try to decrease the Rotation-
Vaule in your Demoproject when you finally call Revolve.

WotanCameraManager.ActiveCamera.Revolve(Vector3.Zero,
                                                               new Vector3(0, 1, 0),
                                                               mouseDistance.X * 0.003f);

Maybe that helps

Greetings
Theoderich
Logged
Montynis
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: 2007/08/02 09:54:14 »

Hey Montynis,

sounds like your rotation is performed too fast. I had that Problem when I implemented the Revolve-Function with the textured Quad. Try to decrease the Rotation-
Vaule in your Demoproject when you finally call Revolve.

Thanks for answer, but this solution doesn't solve the problem. There is another reason which causes the object to appear and dissapear while moving around the scene. I don't have any idea about it  Sad
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
3d Engine-- Tutorial 2 problem. Hazy Mind 3D Engine ZebraHDH 4 2203 Last post 2006/12/03 14:20:43
by tuxdalinux
Tutorial 12 :: Adding in Advanced Camera Functionality Tutorial Discussion « 1 2 3 » mikeschuld 30 11116 Last post 2007/08/01 07:00:20
by Suzume
Parenting Camera to an Object Hazy Mind XNA Engine Requests rstackhouse 4 3098 Last post 2007/03/14 06:13:57
by 5parrowhawk
Strange Problem ( Advice/Assistance Needed Please :-) ) General Discussion DaphydTheBard 4 1778 Last post 2007/03/17 10:23:52
by DaphydTheBard
Camera Issues Hazy Mind XNA Engine minich21 6 3047 Last post 2007/08/14 21:27:30
by mikeschuld
Animations! But one problem... Hazy Mind XNA Engine EclipsE 2 1415 Last post 2007/04/12 02:42:27
by EclipsE
Minimize problem - app crash Hazy Mind XNA Engine nicknz 4 2242 Last post 2007/08/02 04:32:10
by Suzume
Camera Issues Hazy Mind XNA Engine Trano 3 2811 Last post 2008/09/17 08:27:25
by mikeschuld
tutorial 4 problem Hazy Mind 3D Engine precious roy 3 2499 Last post 2007/08/03 12:24:26
by mikeschuld
usercontrols over gamewindow and keyboard problem General Discussion XNASorcerer 2 1465 Last post 2007/05/09 00:52:09
by Chr0n1x
Interface problem. Help!! General Discussion XNASorcerer 5 2112 Last post 2007/05/09 09:46:36
by CarlosFreitas
Camera Tracking Hazy Mind XNA Engine muchrejoicing 4 2007 Last post 2007/05/29 19:50:23
by daenris
ObjectManagers problem Hazy Mind XNA Engine Jonotron 1 1341 Last post 2007/08/03 12:29:19
by mikeschuld
Camera rotation issues (z-axis drift solved!) Hazy Mind XNA Engine ppardee 10 4271 Last post 2008/11/19 11:22:49
by inbreed
extending the camera classes/cameramanager Hazy Mind XNA Engine Mikeske 7 2079 Last post 2009/12/16 01:46:28
by Mikeske
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.102 seconds with 18 queries.