Difference between revisions of "GPU Instancer:Features"
GurBu Admin (talk | contribs) (→Automatic 2D Billboard Generation System) |
GurBu Admin (talk | contribs) (→Automatic 2D Billboard Generation System) |
||
Line 9: | Line 9: | ||
[[File:GPUInstancer-Scr-BillboardGenerator.png|thumb|450px|left]] | [[File:GPUInstancer-Scr-BillboardGenerator.png|thumb|450px|left]] | ||
+ | |||
+ | |||
GPU Instancer comes with a billboard generator system. A GPUI [[GPU Instancer:Terminology#Billboards|billboard]] is a simple quad that shows snapshots of the object from different angles depending on the camera viewing angle. GPUI's billboard generator is mainly designed for use with trees so it generates snapshots of view angles around the world y axis. This means that the billboards do not have view perspectives from up or down. | GPU Instancer comes with a billboard generator system. A GPUI [[GPU Instancer:Terminology#Billboards|billboard]] is a simple quad that shows snapshots of the object from different angles depending on the camera viewing angle. GPUI's billboard generator is mainly designed for use with trees so it generates snapshots of view angles around the world y axis. This means that the billboards do not have view perspectives from up or down. | ||
Revision as of 00:24, 8 December 2018
About | Features | Getting Started | Terminology | Best Practices | F.A.Q.
Contents
[hide]General Features
Automatic 2D Billboard Generation System
GPU Instancer comes with a billboard generator system. A GPUI billboard is a simple quad that shows snapshots of the object from different angles depending on the camera viewing angle. GPUI's billboard generator is mainly designed for use with trees so it generates snapshots of view angles around the world y axis. This means that the billboards do not have view perspectives from up or down.
Bilboards are a great way to increase performance while having vast viewing distances. GPUI adds the generated billboard automatically as the final LOD level (even if the prefab does not have an LOD Group on it). You can also use a custom mesh and material for the billboard if you do not wish to use the billboard that GPUI generates.
Prefab Instancing Features
Automatically Add-Remove prefab instances without any aditional code
1. Easiest way is to enable Auto. Add/Remove Instances option in the prototype options. When enabled, the Prefab Manager will add a script called "GPUInstancerPrefabRuntimeHandler" to the prefab object and handle all runtime changes automatically.
2. Optionally you can add prefab instances through our API methods with the AddPrefabInstance and RemovePrefabInstance methods. Keep in mind that Add/Remove Instances At Runtime option should be enabled in the prototype definition for this API methods to work. Also Extra Buffer Size should have high enough number to add all the prefab instances generated at runtime.
3. Another option is to register the prefab instances and reinitialize the Prefab Manager with first calling RegisterPrefabInstanceList method and then calling InitializeGPUInstancer method.
Nested Prefabs support (Unity 2018.3 and later)
Add-Remove-Update prefab instances with or without instantiating GameObjects
With GPU Instancer, you can render prefab instances without instantiating GameObjects by supplying an array of Matrix4x4s.