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.

Dark GDK / Problem with dbScaleObject

Author
Message
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 15th Jun 2008 22:05
I have loaded a terrain into a game, and then i do dbScaleObject. After that, I setup the object in sparky's collision.

The problem is that the terrain LOOKs bigger, but it actually isn't. Sparky's acts like the object is still at miniature size.

Is there a way around this? Or another way of resizing the object?

Thanks.

Your signature has been erased by a mod - 120 high maximum please
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 16th Jun 2008 03:31 Edited at: 16th Jun 2008 03:32
If you are using GDK native terrains, use dbSetTerrainScale before you build the terrain. I think that dbScaleObject only scales when the object is rendered. The actual object will remain unchanged, which is what Sparky's will use.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 16th Jun 2008 03:46
ok, but the terrain in an imported .x file

Your signature has been erased by a mod - 120 high maximum please
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 16th Jun 2008 04:04
That's too bad. I'd recommend that you scale it in the modeling program in that case.
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 16th Jun 2008 04:28
ok, will do

Your signature has been erased by a mod - 120 high maximum please

Login to post a reply

Server time is: 2024-09-29 23:20:06
Your offset time is: 2024-09-29 23:20:06