Page 3 of 3

Posted: Tue Jan 04, 2005 10:49 pm
by oconv
yeah, much smoother :D

thanks alot :lol:

Posted: Thu Feb 17, 2005 7:55 pm
by Guest
isn't

Code: Select all

  if (cursorpos.X < 0.5f || cursorpos.X > 0.5f ||
    cursorpos.Y < 0.5f || cursorpos.Y > 0.5f)
the same as

Code: Select all

  if (cursorpos.X != 0.5f || cursorpos.Y != 0.5f)
if so, and I'm not completly dumb, why not use the other option?

Posted: Fri Feb 18, 2005 5:33 pm
by Guest
why dont u just test out ur option and let us know of any differnece

Posted: Sun Feb 27, 2005 12:00 am
by StickyBit
FYI: I´ve just used Warui´s hack on ver. 0.8 - and it still does magic. :-)

Regards Stickybit

Posted: Sun Feb 27, 2005 1:39 am
by afecelis
it sure does, dunno why it hasn't been made official.

Posted: Tue Mar 01, 2005 5:49 am
by Guest
Anonymous wrote:isn't

Code: Select all

  if (cursorpos.X < 0.5f || cursorpos.X > 0.5f ||
    cursorpos.Y < 0.5f || cursorpos.Y > 0.5f)
the same as

Code: Select all

  if (cursorpos.X != 0.5f || cursorpos.Y != 0.5f)
if so, and I'm not completly dumb, why not use the other option?
Yes, I saw the same thing. That would be a better way of checking cursorpos.

Posted: Sun Mar 13, 2005 10:02 pm
by Wintran
You can use this code to set the fov using degrees instead of radians:

Code: Select all

3.14159f / (180f / (180 - degrees))
Simply replace "degrees" with the desired number of degrees (1-180) that you want your fov to be.

Regarding the smooth mouse code, I would also love to see this or a similar code being implemented to the official game engine. It is a requirement for any serious 3D app using the mouse for camera movements.

Posted: Sat Mar 19, 2005 5:46 am
by yes
sounds like it is using radians instead of degrees. radians are fractions of pi.

1.4 rads is very close to 90 degrees.

Posted: Mon Aug 15, 2005 12:11 pm
by Myth
In case anyone doesn't understand how to use it... use this funtion.
Thanks to wintran.

Code: Select all

// Myth
void setFOVdegrees(ISceneNode *cam, const float degrees)
{
 cam->setFOV(3.14159f  / ( 180.0f / (180 - degrees)));
 return;
}

Posted: Mon Aug 15, 2005 8:29 pm
by Myth
It gives sqrt: DOMAIN EXPECTION ERROR at runtime.

Any idea why?