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 / Help - can someone give me the best code to resize a loaded 3d object to size 1.0?

Author
Message
Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Oct 2011 11:52
I've tried re-scaling, re-saving, re-loading then etc. etc. and just fail...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 1st Oct 2011 13:55
Get the object size.


Determine how big the object is in percentage terms in relation to your required size.


Scale your object to that percentage.


If you want to keep that scaling permanent, then you can use my FIX OBJECT SCALE command. This command applied the object's current scaling to the vertex data within the object and resets the object scale back to 100%.

Duffer
23
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Oct 2011 15:38
@IanM,

Many thanks for that - much appreciated - mental block.

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...

Login to post a reply

Server time is: 2026-07-11 14:36:51
Your offset time is: 2026-07-11 14:36:51