Skip to main content
gamedev.net
🔒 Locked

torque help

Started by zeldatoothemax Aug 19, 2006 at 1:14 AM 2 replies 600+ views
Original Post
zeldatoothemax
zeldatoothemax
im a begining programmer but lol ... im really bad but i enjoy the concept. but my problem is im trying to get my own model into the engine but the camera rotates around a un seen object at the very bottem of the model i have tried everything but i can not ge tthe camera to revolve and rotate around the head or anywhere else. if you have any suggestions thank you. p.s when i mean everything i mean i tried everything lol but please help
dawidjoubert
dawidjoubert
Quote:
Original post by zeldatoothemax
im a begining programmer but lol ... im really bad but i enjoy the concept. but my problem is im trying to get my own model into the engine but the camera rotates around a un seen object at the very bottem of the model i have tried everything but i can not ge tthe camera to revolve and rotate around the head or anywhere else. if you have any suggestions thank you. p.s when i mean everything i mean i tried everything lol but please help


Have you tried using Torque Showtool Pro to view your models before loading them into torque?
----------------------------http://djoubert.co.uk
TheAdmiral
TheAdmiral
I don't know much (well, anything) about Torque, but it sounds like your camera is rotating about the model's origin. Two ways to fix it, though I don't know which (if any) Torque supports:

You could change the model's origin, at design time, to be the centre of the head. Now your rotation code will work, but you'll possibly have problems with your model sinking below the floor.

Alternatively, if you're defining the camera's rotation yourself, you'll want to surround the rotate call with two (mutually inverse) translates to reposition the model so its head is at the origin at the moment of rotation.

Regards
Admiral
Ring3 Circus - Diary of a programmer, journal of a hacker.
Plasmadog
Plasmadog
Sounds like you have failed to create a "Cam" or "Eye" node in your model. See the DTS character tutorials for your modelling app on the Torque Developer Network.
You are not the one beautiful and unique snowflake who, unlike the rest of us, doesn't have to go through the tedious and difficult process of science in order to establish the truth. You're as foolable as anyone else. And since you have taken no precautions to avoid fooling yourself, the self-evident fact that countless millions of humans before you have also fooled themselves leads me to the parsimonious belief that you have too.--Daniel Rutter

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.