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.

DarkBASIC Professional Discussion / Need help with scaleing 3d object

Author
Message
Firerogue117
15
Years of Service
User Offline
Joined: 31st Dec 2010
Location:
Posted: 31st Dec 2010 21:21
I am in need of help scaling this alien to a descent size. I created a basic map for testing but, the alien is like an ant to it and will not enlarge no matter what i try. Please help.

Heres code.

sync on
sync rate 30
backdrop on
set global collision on

Load object "Media\Test003.x", 2,
position object 2, 0, 0, 0
Load object "Media\H-Alien Mutant-Move.X", 1
scale object 1, 100, 100, 100
loop object 1
position object 1, 0, 0 ,0
position camera 100, 100, 100
o# = 0

Do

If upkey() = 1 then move object 1, -10
If downkey() = 1 then move object 1, 1
If leftkey() = 1 then turn object left 1, 6
If rightkey() = 1 then turn object right 1, 6

x# = object position x(1)
y# = object position y(1)
z# = object position z(1)
cx# = camera position x()
cz# = camera position z()
point camera x#,y#,z#
position camera cx#, y#+25, cz#
if upkey()=0 and downkey()= 0 then inc o#,1
if o# > 10 then o# = 10
if o# < 10 then move camera 10
if upkey()=1 or downkey()=1 then o# = 0


Sync
loop
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 31st Dec 2010 23:19
Scaling is as a percentage, so when you scale to 100,100,100, you are scaling it to 100%, AKA, no change. Scale it to 10,10,10 to be 10% of the size, or 200,200,200 to be 200%, etc.

Login to post a reply

Server time is: 2026-07-18 05:40:02
Your offset time is: 2026-07-18 05:40:02