1 / 22

Portal & Particle

Portal & Particle. Index. Portal Particles. Portal. Room-Portal visibility system Determine which room is shown at this time Determine which object is shown at this time. Portal (cont.). Portal Generation By Designer Primitives NiRoomGroup NiRoom Convex Region NiRoom::Wall NiPortal

brianw
Download Presentation

Portal & Particle

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Portal & Particle

  2. Index • Portal • Particles

  3. Portal • Room-Portal visibility system • Determine which room is shown at this time • Determine which object is shown at this time

  4. Portal (cont.) • Portal Generation • By Designer • Primitives • NiRoomGroup • NiRoom • Convex Region • NiRoom::Wall • NiPortal • Fixtures and Shell

  5. Portal (cont.)Rooms • Convex Region • Components • Walls, Fixtures, Portals if the current room is being visited then return to calling room else mark the current room as being visited for each portal in the room test the portal against the current view rectangle if the portal is visible then downsize the view rectangle to bound the portal and recursivelyprocess the adjoining room end for process the current room's fixtures mark the current room as not being visited return to calling room

  6. Portal (cont.)Portals • “room” to “adjoiner” • Represent a way of seeing from a part of a scene graph “through” a polygon to another part of a scene graph • Making “View Frustum” smaller

  7. Portal (cont.)Walls

  8. Portal (cont.)Fixtures • Objects in a Room

  9. Portal (cont.)

  10. Portal (cont.)Design Strategy

  11. Portal (cont.)Collision Detection • Collision Detection pkRoomGroup->WhichRoom(pkObject->GetWorldBound().GetCenter())

  12. Portal (cont.)Class Details • NiPortal • *_NDLPR • NiRoom • *_NDLRM • NiRoom::Wall - _NDLWL • NiRoomGroup • *_NDLRG • Sorting with accumulator, Shell • NiFixtureCuller • NiCullingProcess • Avoid Multiple Render with Map

  13. Particle System Overview NiParticleSystem 1 1 1 * * * NiProperty NiTimeController NiPSysModifier

  14. Particles (cont.) • World Space Particles • Model Space Particles • Mesh Particle • Sprite-Based Particles • Pools for Reusing • Classes • NiMeshParticleSystem • NiMeshPSysData • NiPSysMeshUpdateModifier

  15. Particles (cont.) • Modifier Order Flags enum { ORDER_KILLOLDPARTICLES = 0, ORDER_EMITTER = 1000, ORDER_SPAWN = 2000, ORDER_GENERAL = 3000, ORDER_FORCE = 4000, ORDER_COLLIDER = 5000, ORDER_POSUPDATE = 6000, ORDER_POSTPOSUPDATE = 6500, ORDER_BOUNDUPDATE = 7000 };

  16. Particles (cont.) • Required Modifiers

  17. Particles (cont.) • Common Optional Modifiers

  18. Particles (cont.) • Force Modifier

  19. Particles (cont.) • Force Modifiers (cont.)

  20. Particles (cont.) • Particle Colliders • NiPSysColliderManager • Collection of NiPSysCollider • NiPSysPlanarCollider • NiPSysSphericalCollider

  21. Particles (cont.) • Particle System Time Controllers

  22. QA 김종욱 freewill@nexon.co.kr

More Related