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 / The count of polygons of an object

Author
Message
george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 21st Aug 2010 18:31
Hi,
How can I get the number of polygons of an object?

Thanks.
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 21st Aug 2010 20:12
dbStatistic(1)
This will return the amount of polys on screen.

george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 21st Aug 2010 23:05
I want to learn the number of polygons of an individual object, if this is possible.
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 21st Aug 2010 23:29
Yeh, just load that object, or hide all other objects.

george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 22nd Aug 2010 15:17
For reasons are not to important to mention here, it is not practical for me, to hide all other objects or load only the model.
Thanks any way
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 22nd Aug 2010 17:43
Oh ok, try looking in the header files, there are a few undocumented commands, you may be able to write a function that gets that info for you.

Here are a few commands:


I have not done anything like this for a while but it might be as simple as geting the amount of verts and dividing by three, depending on how the model is set up.

If you do write something then it would be great if you could share it with us

george++
AGK Tool Maker
17
Years of Service
User Offline
Joined: 13th May 2007
Location: Thessaloniki, Hellas
Posted: 23rd Aug 2010 11:46
Thanks matty, this is a great help. If I will find something, I will gladly share this with the community
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 23rd Aug 2010 15:36
Cool, I may have got that wrong, it might be the index count you divide by three, again depending how the model is set up.

Login to post a reply

Server time is: 2024-11-19 18:36:33
Your offset time is: 2024-11-19 18:36:33