Jump to content

SetWorldCullRange & EntityViewRange


Recommended Posts







Function signatures are different between the 2 pages. Why was it changed to take predefined values instead of the actual distances? I potentially would like to have is less than the lowest possible (VIEWRANGE_NEAR = 0 // default: 50 units). So I assume maybe if I want that for all entities that's where the SetWorldCullRange() comes into play?



What does the near, med, far parameters mean for the SetWorldCullRange() function? I would have thought it would just be a radius around the camera to show entities and everything outside that radius doesn't get drawn?

Link to comment
Share on other sites

Using global near, medium, and far view ranges results in much much faster distance culling because it allows large chunks of the scene to be discarded without having to iterate through each entity.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...