Particle System in sourceengine

Source: Internet
Author: User
Https://developer.valvesoftware.com/wiki/Particle_System_Overview
  • File Format: PCF
  • Editor particle Editor
  • Memory Fields
    • This is actually an application of the component mode. Otherwise, the memory and CPU overhead will increase.
  • Control Points
    • Each particle system has a maximum of 64 control points. The default value 0 is the particle's origin point.
    • You can set positions, orientations, and entities for each control point.
    • The doctor's treatment light in TF uses control points to establish a connection between weapons and target players.
  • Components
    • The particle system is composed of components. Each item can have multiple elements.
    • Renderers
      • Spirit, the most common
      • Rope, a continuous "rope", such as lightning
      • Trail, tail
      • Blob, water drop
      • Model: uses a model to replace particles, such as explosive fragments.
      • Project, sticker?
    • Emitters
      • There can be multiple different types of transmitters
      • Main attributes: Time (start/end/fadein/fadeout), number of launches (min/max), speed, random
    • Initializers
      • Initialization position, color, size, transparency, speed, etc., can be random
      • Random position shape
      • Move Between Two Control Points
    • Operators
      • Each frame affects the attributes of each particle.
      • It can affect the location of the control point.
    • Forces
      • Force field simulation
    • Contraints
      • Physical collision
      • Constraint relationships with Control Points
      • Space constraints
    • Children
      • Develop a particle system to achieve more complex results
  • Performance
    • Limit the maximum number of particles in each particle system. The memory is pre-allocated so much space.
    • Multithreading
      • Multiple particle systems are allocated to multiple threads for calculation.
      • The subsystem is in the same thread as the parent system.
    • SIMD
    • Overdraw
      • Use as few, small, and opaque particles as possible
      • Defines the minimum screen space in the material, which is too small to remove (or fade out)
      • Close soft particles whenever possible
    • Shared data
      • Flexible use of control points
    • Collision
  • Create a particle file for a low-end server, such as xxxx_dx80.pcf.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.