Go Back   Community for CG Artists > Main Forums > General Technology > 3D Games Development
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  

Reply
 
LinkBack Thread Tools Rate Thread
Old 11-10-2008, 05:18 AM   #1 (permalink)
Registered User

 
Join Date: Nov 2008
Location: Between the 0's and 1's
Age: 22
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 MstWntd is on a distinguished road
Send a message via MSN to MstWntd
Unhappy SOS: 3Ds in openGL with C++

Hello,

I guess my problem is too simple to be documented as a tutorial, I also searched but wasn't able to find anything on this.



I need to rotate an object (in my case a 3ds bow). I should be able to turn it left, right, up and down on its OWN axis.

I can use

Code:
glRotatef(rotX, 1.0,0.0,0.0);
glRotatef(rotY, 0.0,1.0,0.0);
but this rotates the Bow in a weird way. Also I dont know in which order I should scale, translate and roate the object.

I also have an arrow in 3ds. I have managed to "lock" the arrow and bow together and they rotate in the same weird way.

other then not being able to turn the object on its own axis, I have a few more issues.

Any help is appricated.

Thanks..
MstWntd is offline   Reply With Quote
Old 07-10-2009, 05:56 AM   #2 (permalink)
Registered User

 
Join Date: Jul 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0 Steeeeee is on a distinguished road
I would need to see more of the code to understand better what you are trying to do,

Is you model at the origin when you rotate it?
Steeeeee is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Home - Archive - Top