Installation:
Download the addon and save it somewhere you can remember. Do not unzip it.
Inside Blender, go to "Edit" -> "Preferences" -> "Add-ons" and then click install. Now go to the location where your addon file is stored and double-click it.
Now, simply click the little box next to the addon to enable it.
Using the addon:
Select the object that you want to apply the camera culling to, go to the addon panel, and click "Cull!"
Now, select the camera that you're using, and it should now work.
If it looks weird, try changing the "Width", "Height", and "Camera Focal length" to get the desired result.
FAQ:
Q: If I move the object, the camera culling isn't updating. How can I fix this?
A: Simply click the "Refresh" button in the addon panel, and now it should work again.
Q: What does "Collide Ray With Object" mean?
A: This simply means that if one part of the object is obscuring another part, the part that is hidden behind the other part will be removed to save even more resources. But becareful! On an object with a high polycount, this can be quite slow.
Q: What is the "Extra Colliders" option for?
A: Using this option, you can select a collection. If any objects in this collection block part of the mesh that you have the camera culling applied to, it will remove the part of the mesh that is not visible.
Q: Can I make the addon follow my cameras focal length?
A: Yes! Simply select your camera, go to the object data properties, right click on the focal length value and select "Copy as New Driver". Now click on the object that you're culling, then go to the addon panel on the focal length value, simply right click, and select "Paste Driver". Now if you change the camera focal length, it will automatically update in the addon as well.
Q: What if I need more help with the addon?
A: If you need any help with an addon, you're always welcome to send an email at the following address and we'll reply within 1-2 business days:
contactsolarminds@gmail.com