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.

AppGameKit Classic Chat / Bug ? GetObjectSizeMaxY() / X / Z

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 19th Mar 2018 11:45 Edited at: 19th Mar 2018 12:37
Hi

it seems to get the size (width, height, length) of an object, we can do :



But it doesnt return the good size with imported 3D model (not primitive) with several meshs.

In blender my model is :
Width = 6.4
height = 11.5
Lenght = 2.8

In agk, I get (with the functions) :
W : 6.04
H : 8
L : 2.33


Even if I use only the MaxY, I can't get the correct height/width/length, as we can see here (this object has several meshs) :
(minY : 2.68 / MaxY : 10.67)


So how to get the correct width/height/length of an imported 3D model with several meshs ?

EDIT :
ok, it seems it works in DAE, but not in x format.
AGK2 tier1 - http://www.dracaena-studio.com
Santman
12
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 19th Mar 2018 16:22
No I hit that......you have to step through the meshes and get the size of each, then take the lowest min value away from the highest max value. A pain, but it works.

Login to post a reply

Server time is: 2024-04-25 07:48:39
Your offset time is: 2024-04-25 07:48:39