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.

Author
Message
Xaron
10
Years of Service
User Offline
Joined: 3rd May 2014
Location: Germany
Posted: 4th Jan 2018 20:29
Hey there,

using GetVerticesProcessed() on a terrain I always get the maximum number of vertices the complete terrain has. Is there really no culling implemented in AppGameKit?
Scraggle
Moderator
21
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 4th Jan 2018 21:35
I don't know what culling happens in AppGameKit but I would argue that culling is a process and should therefore be counted by GetVerticesProcessed().
Maybe you should try GetPolygonsDrawn() instead.

Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 5th Jan 2018 02:33

You can enable culling using this command "SetObjectScreenCulling" , but it should be on by default ?

And you should also be able to see it using both GetPolygonsDrawn and GetVerticesProcessed, just tried it and both change values when i move around

Subscribe and checkout great AppGameKit video's here: Videos click here
Latest GameGuru Loader news: News click here
best regards Preben Eriksen,
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 5th Jan 2018 10:32
I think it will be only culled if it is completely out of sight.
Running Windows 7 Home, 64 bit, 8 GB ram, Athlon II X2 255, ATI Radeon HD 4200. Using AGK2 Tier 1.
Preben
AGK Studio Developer
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location:
Posted: 5th Jan 2018 11:08
MikeHart: True

Xaron: When you create your terrain using CreateObjectFromHeightMap , make sure to set the "split" parameter to perhaps "4" (sixteen meshes) so the culling is able to work, if you only use one mesh culling will not work
Subscribe and checkout great AppGameKit video's here: Videos click here
Latest GameGuru Loader news: News click here
best regards Preben Eriksen,

Login to post a reply

Server time is: 2024-11-24 03:36:15
Your offset time is: 2024-11-24 03:36:15