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.

Geek Culture / Programming to sCaLe?

Author
Message
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th May 2011 15:56
I have had this question in my head for a few months now, to be honest since last september... when i started to learn DBPro...

I am currently working on an app in 3D and my biggest issue is getting thr scale right...

I am aware of having too many polygons on screen causing a sluggish reaction from the app, but how do i figure out how to scale everything?

I have a few ideas including in engine inc and dec with on screen print of current values, but its still a guessing game...

Any help is very appreciated, sorry if this is already here on the forums, but I would expect it to be shrouded in many pages of un direct questions relating to my specific needs, Cheers

Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 27th May 2011 16:32
It really depends on how big your game is, because along with polygon limitations, you have to consider scale limitations due to floating point accuracy too.

I would suggest that if it's a terrain based game, use 1 DBPro unit to represent 1 metre - so each tile on your terrain is 1 metre, or therabouts. If your game is set inside, maybe extend that so 1 DBPro unit represents 1 foot.

Once you decide that, modelling to scale is a lot easier - if you know that 7x4 units is a good sized door, or 5 units is a good width for a corridor.

Even once you have a strict scale in place, it's still a good idea to make a manekin - like a basic 3D character model, that you use as a guide for modelling - especially usefull for vehicle modelling too.

Health, Ammo, and bacon and eggs!
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th May 2011 16:38
Thank you Van B, but I have tried the manekin approach, and models come in various sizes... how do I pick the right one?


(thanks for the above also)

Interplanetary Funk
15
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 27th May 2011 19:13
calculate a scalar for each object to set them to a certain height
something like:

note: above code doesn't work, don't know why, but the general principle should work.


Visit my blog for any and all info on what I do coding wise.
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th May 2011 19:22
will give that a try Funk, cheers

Login to post a reply

Server time is: 2025-05-21 12:13:08
Your offset time is: 2025-05-21 12:13:08