# rotation problem

8 replies to this topic

### #1enjoycrf

Banned

• Banned
• 52 posts

Posted 05 March 2011 - 11:32 PM

this is totaly expected and i found some advice online but its still not helping
i have 2 models that im loading and then moving and rotating per my camera
the first model is a human the other one is a gun
no hahaha its not like that
its a nice person and the gun is not real
so anyways lol
when i rotate the human model does as directed
but the gun rotates the same just the other direction
ive tried many things but the gun rotation gets even worse
i looked for moving the rotation axis command in opengl but...
because thats what one would normally do in a 3d modeling program

cant wait to make a video of my engine
i got quake3 based collision working perfectly
all the way down to a 3 plane interaction, whatever THAT means lol

### #2enjoycrf

Banned

• Banned
• 52 posts

Posted 06 March 2011 - 01:10 AM

oh forgot to paste my code

	/* RENDERING MODELS (-25fps) */
model.angle[1] = camera.angle[1];
VectorCopy(camera.pos, model.pos);
model.pos[2] -= 10;
model.scale = 20;

if (camera.duck) {

//if (model.scale > 10) model.scale -= 0.001f;
//else
model.scale = 10;

}

//pModel->draw();		// Draw The Model

vec3_t gun;
gun[0] = 7;
gun[1] = 4;
gun[2] = 31;
model.scale = 5;

//pModel2->draw();		// Draw The Model

/* render map (-50fps) */
g_Level.RenderLevel();


### #3Mihail121

Senior Member

• Members
• 1059 posts

Posted 06 March 2011 - 01:20 PM

Your code does not reveal any details whatsoever about what might be going wrong. And for the x-th time: use code tags, use proper punctuation, do not use "lol", "omg" etc. that often. Edit the first post if you forgot something. Keep violating readability and usability guidelines and you are sure to be removed for good from our peaceful community.

DevMaster Staff

• Moderators
• 1716 posts

Posted 06 March 2011 - 03:29 PM

enjoycrf said:

...
no hahaha its not like that
its a nice person and the gun is not real
so anyways lol
...

I get it now! It's absurdist poetry!
Hyperbole is, like, the absolute best, most wonderful thing ever! However, you'd be an idiot to not think dogmatism is always bad.

### #5enjoycrf

Banned

• Banned
• 52 posts

Posted 07 March 2011 - 08:24 AM

you guys are both weak
jp lol

### #6enjoycrf

Banned

• Banned
• 52 posts

Posted 07 March 2011 - 08:24 AM

### #7.oisyn

DevMaster Staff

• Moderators
• 1842 posts

Posted 07 March 2011 - 10:50 AM

For the last time, edit your last post instead of placing a new one. I *will* delete them in the future.
-
Currently working on: the 3D engine for Tomb Raider.

### #8rouncer

Senior Member

• Members
• 2718 posts

Posted 07 March 2011 - 11:13 AM

Youll have a bit more respect once you get more experience and work out your place amongst the programming population.
you used to be able to fit a game on a disk, then you used to be able to fit a game on a cd, then you used to be able to fit a game on a dvd, now you can barely fit one on your harddrive.

### #9enjoycrf

Banned

• Banned
• 52 posts

Posted 07 March 2011 - 09:10 PM

f the nerdy 4 eyed dork programming population
ive been programming for living for over 10 years
and most of the big claimer programmers turn out to be nothing but big talkers
ill figure this out
the only reason i asked this is because im new to opengl
and i didnt want to spend much time on this
plus its cool to chat on here: LIKE TO reedbeta
hopefully he is not mad at me now
and that he will help me soon

#### 1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users