Introduction into the Physics and Technology of Particle Accelerators
Introduction to Particle System by Aryo
-
Upload
agate-studio -
Category
Education
-
view
374 -
download
14
description
Transcript of Introduction to Particle System by Aryo
@agatestudio
Introduction to Particle System
Agustinus Arya AdhinugrahaKnight
Agate Studio
@agatestudio
DAFTAR ISIBillboards
Particle
Drawing
Instancing
Main Loop
Topik Lanjutan
Contoh dalam Unity
@agatestudio
Billboards
• Cara 2D
– Billboard ukurannya selalu sama
– Billboard selalu paling atas
• Cara 3D
– Menggunakan koordinat worldspace
– Ukuran bisa berubah tergantung kamera
• Cara fixed-size 3D
– Menggunakan koordinat screenspace
– Ukuran selalu tetap
@agatestudio
Particle
• Serupa dengan billboards
• Sangat banyak
• Bergerak
• Muncul & hilang
• Semi transparan
@agatestudio
Draw Particle
• glDrawArrays setiap particle
– Tidak efisien
• Gabungkan semua particle ke dalam satu VBO
– Mudah dan efektif
• Geometry shader
– Banyak yang belum support
• Instancing
– Sudah disupport kebanyakan komputer
@agatestudio
Instancing
• Base mesh
• Beberapa VBO
– VBO untuk vertex
– VBO untuk posisi dan ukuran
– VBO untuk warna
• glDrawArraysInstanced
@agatestudio
Main Loop
• Muncul & Hilang
– Buat banyak particle
– Maksimum particle & lifetime
– Lifetime berkurang setiap loop
• Semi Transparent
– Sort back to front
Hasil
@agatestudio
Topik Lanjutan
• Animated Particle
• Smooth Particle
• Particle Physics
• GPU Simulation
@agatestudio
Contoh dalam Unity
• Menggunakan Unity Particle System
• Set variabel-variabel
– lifetime
– size, rotation, color
– max particle
• Animated Particle
• Particle Physics
Contoh dalam Unity
Referensi
• http://www.opengl-tutorial.org/intermediate-tutorials/billboards-particles/billboards/
• http://www.opengl-tutorial.org/intermediate-tutorials/billboards-particles/particles-instancing/
• http://3dgep.com/?p=4313
Thank you!