Author Topic: Quake Angles  (Read 4576 times)

LANS

  • Posts: 6
  • Turrets: +2/-0
Quake Angles
« on: November 13, 2008, 12:41:22 am »
Alright, I've figured out where I need to modify the code to make the camera do what I want, but I'm a bit confused.

When dealing with angles in quake (lets assume a 360-degree scale for reasonability here, not quake's 256-degree scale due to 8-bit constraints)

Does a 0-degree pitch mean facing directly forward, up, or down? Which direction is straight down? Is it 90 degrees or is it 270 degrees?
Does 0-degree yaw refer to north-up (equivalent to a vec3_t {0,1,0} ) or does it refer to where the player is facing? Do degrees increment to the right or left? (If I am facing 0-degrees, is 90-degrees to my right or left?)
Does a 0-degree roll refer to horizontal or vertical? If horizontal, is it right-way-up or upside-down? If vertical, is it right-side-down or left-side-down?

Thanks,
LANS

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: Quake Angles
« Reply #1 on: November 13, 2008, 01:54:51 am »
Code: [Select]
vec3_t forward,right,up;
AngleVectors( { 0.0f, 0.0f, 0.0f }, forward, right, up );
answers all of your questions.
edit: q3 doesn't have 256 angles, angles are measured in degrees
« Last Edit: November 13, 2008, 02:03:42 am by kevlarman »
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

LANS

  • Posts: 6
  • Turrets: +2/-0
Re: Quake Angles
« Reply #2 on: November 15, 2008, 04:19:03 am »
So, after compiling tremulous succesfully once, and then changing nothing, and trying to compile it again, I get perplexing errors.

Code: [Select]
make[2]: *** No rule to make target `src/ui/ui_shared.c', needed by `build/release-darwin-x86/base/ui/ui_shared.o'.  Stop.
make[1]: *** [targets] Error 2
make: *** [release] Error 2

I haven't patched/backported yet, I'm just trying to compile the latest SVN using make. ./make-macosx-ub.sh results in the same error.

Any ideas on how to fix this would be appreciated.

Syntac

  • Posts: 841
  • Turrets: +118/-104
    • Syntac's Stuff
Re: Quake Angles
« Reply #3 on: November 15, 2008, 04:26:00 am »
Doing make clean sometimes solves problems like this.

LANS

  • Posts: 6
  • Turrets: +2/-0
Re: Quake Angles
« Reply #4 on: November 16, 2008, 04:16:36 pm »
make clean doesn't really help. It changes the error to:

Code: [Select]
make[2]: *** No rule to make target `build/debug-darwin-x86/base/ui/ui_shared.o', needed by `build/debug-darwin-x86/base/cgamex86.dylib'.  Stop.
make[1]: *** [targets] Error 2
make: *** [debug] Error 2

At least ui_shared.c is being compiled now, its just being skipped in the linking process. I haven't edited my makefile, so if its in there LD should still be looking at it. If its not in there, what would I need to change to make it link? I'm not too familiar with makefiles.

Syntac

  • Posts: 841
  • Turrets: +118/-104
    • Syntac's Stuff
Re: Quake Angles
« Reply #5 on: November 16, 2008, 04:19:36 pm »
Umm... make toolsclean or make distclean, perhaps?

LANS

  • Posts: 6
  • Turrets: +2/-0
Re: Quake Angles
« Reply #6 on: November 16, 2008, 06:11:02 pm »
distclean and toolsclean don't help. I get the same error. I'll try redownloading the code from the SVN in case something got inadvertently changed and try again.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: Quake Angles
« Reply #7 on: November 16, 2008, 07:37:11 pm »
svn status (or svn st) is a good way of checking you haven't accidentally deleted or modified something. It's a brief overview of your changes on a per-file basis. An ! in the first column indicates svn is expecting a file at that location but couldn't find it, whereas a M indicates that the file has modifications. Try svn help status to see a description of the other letters.

« Last Edit: November 16, 2008, 07:40:00 pm by benmachine »
benmachine