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 / 'Move Object' question

Author
Message
JeKu
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: Vancouver
Posted: 8th Jan 2004 05:17 Edited at: 8th Jan 2004 05:27
Hey all,

I'm not really a noob but I have a noob question with DBPro. I'm working on a 3D update of Atari 2600 Combat, and I have a question on how to orient my tank. You see, when I load the tank model in, and use the Move Object command with a positive integer, the tank moves backward. There's got to be a way for me to orient it so when I use a positive integer, it moves forward.

Here are two screenshots that outline my problem.

The original tank position.


The tank position which, with my code, occurs when I use 'move object objPlayer1, -10'

I would rather have it so I could use 'move object objPlayer1, 10'



I usually hate asking for help for easy questions, I always scan the manuals and everything else first. I found a fiew orient type commands with DBPro, but I don't think they accomplish what I'm thinking. To be thorough, I've included a snippet of my code with the offending negative integer.



Thanks,

- JeKu


-- http://www.automatongames.com --
-- http://www.jeku.com --
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Jan 2004 05:22 Edited at: 8th Jan 2004 05:27
fix object pivot objnum will lock your models orientation to the current rotation if the 3d exported model is incorrectly aligned.

Rotate it the way you think is correct then fix it.

It is a lot safer tho to just rexport your model in the correct alignment in 3d space to reflect your gameworld, this will create a lot less dramas if you want your players to be able to import models on there own accord and will help identify the correct size or unitsize and rotation for each modelling packages.



Part(b) if your looking top down froma camera and moving it along the Z axis then the positive aspect will be forward and the negative aspect will be downwards.

eg: Positive will move upwards
and Negative will appear to move downwards.
JeKu
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: Vancouver
Posted: 8th Jan 2004 05:26
@indi - Hey thanks for the quick response! I would re-export it but I'm using one of the models from the 'Christmas gift' package from the last TGC newsletter. I would have thought it would've been correctly aligned. I don't yet have any 3D modelling software other than Cart. Shop--- perhaps I'll invest in Milkshape.

Thanks for the cool command though

- JeKu


-- http://www.automatongames.com --
-- http://www.jeku.com --
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 8th Jan 2004 05:30
yeah milkshape(ms3d) and unwrap3d are well worth investing in.
I just ordered unwrap3d today since in my country (australia) the dollar is rising and the price is coming more comparible to a 1:1 ratio.

I purchased Ms3d ages ago and have made a tonne of models from the package for my game.

I ordered it for $20 and have already made one commercial job from it retailing in at $600 so its paid for itself over many times.

Granted I had to outsource the rotation component to a company who owns 3dsmax for the rendering of the targa images for television im still in the profit margins
diablo fan
20
Years of Service
User Offline
Joined: 7th Jan 2004
Location: michigan usa
Posted: 8th Jan 2004 05:32
just like this....it should be exact

me
JeKu
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: Vancouver
Posted: 8th Jan 2004 05:37
@diablo - Hey thanks for the source!

@indi - Well I took a few 3D Studio Max courses a few years ago, but now I know zilch about 3D modelling. If I get the gameplay right with my tank game, I'll have to hire a friend to do (and redo) all the models for me. I mostly always start out with cubes and spheres for everything but when I found the free tank model in the newsletter I couldn't resist--- seeing as how this is a tank game hehehe

- JeKu


-- http://www.automatongames.com --
-- http://www.jeku.com --

Login to post a reply

Server time is: 2024-11-11 04:51:51
Your offset time is: 2024-11-11 04:51:51