Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 3d objects

Author
Message
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 24th Mar 2003 21:20
i've loaded an object into my game but its facing the wrong way, i've tried using the yobject rotate command but it doesn't seem to work, i'm using a 3rd person camera view of an object on a matrix, my object code looks like this


and my camera code looks like this


i think it may be something to do with the camera code but i can't work it out,
it all seemed to work when i was just using a sphere for my object, could any one give me a hand???
'You were born crying while people around you smiled'
Mirthin
21
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Land of the Rising Haggis
Posted: 24th Mar 2003 23:22
try adding SET AUTOCAM OFF or words to that effect. This will stop moving th camera everytime you load a new 3D object. This may help.

Who wants cake? I've got a little slice of hell for everyone.
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 25th Mar 2003 09:30
sorry that doesn't seem to make a difference, any more suggestions???

'You were born crying while people around you smiled'
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Mar 2003 10:17
once u rotate it lets say its facing the right way up but totally around the wrong way.


u either reverse it in your 3d program or in DB and DBP u can do this

rotate object OBJNUM,0,180,0
set object pivot OBJNUM

Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 25th Mar 2003 10:18
Try this (no idea if it will work:

Object Code:



Camera Code:




Fixed the object pivot in the object code and aligned the camera with the bike. So it may work now.

"Computers are useless they can only give you answers."
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Mar 2003 10:25
Dave J
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Feb 2003
Location: Secret Military Pub, Down Under
Posted: 25th Mar 2003 14:13
Well you posted a minute before me so I didn't see your solution. Bleh!

"Computers are useless they can only give you answers."
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 25th Mar 2003 18:07
thanks guys, x-d x-d x-d the set object pivot command was all that was needed

'You were born crying while people around you smiled'

Login to post a reply

Server time is: 2024-09-20 00:53:50
Your offset time is: 2024-09-20 00:53:50