13
@agatestudio Introduction to Particle System Agustinus Arya Adhinugraha Knight Agate Studio

Introduction to Particle System by Aryo

Embed Size (px)

DESCRIPTION

Presentasi dari Agustinus Arya Adhinugraha, Crew dari Agate Studio dalam event Talent Development Saturday Agate Studio. http://agatestudio.com Talent Development Saturday adalah acara Agate Studio crew sharing berbagai topik. Mulai dari Art, Programming, Game Production dan General Business/Management. TDS ini dilakukan tanggal 8 Februari 2014 di Bandung Digital Valley.

Citation preview

Page 1: Introduction to Particle System by Aryo

@agatestudio

Introduction to Particle System

Agustinus Arya AdhinugrahaKnight

Agate Studio

Page 2: Introduction to Particle System by Aryo

@agatestudio

DAFTAR ISIBillboards

Particle

Drawing

Instancing

Main Loop

Topik Lanjutan

Contoh dalam Unity

Page 3: Introduction to Particle System by Aryo

@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

Page 4: Introduction to Particle System by Aryo

@agatestudio

Particle

• Serupa dengan billboards

• Sangat banyak

• Bergerak

• Muncul & hilang

• Semi transparan

Page 5: Introduction to Particle System by Aryo

@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

Page 6: Introduction to Particle System by Aryo

@agatestudio

Instancing

• Base mesh

• Beberapa VBO

– VBO untuk vertex

– VBO untuk posisi dan ukuran

– VBO untuk warna

• glDrawArraysInstanced

Page 7: Introduction to Particle System by Aryo

@agatestudio

Main Loop

• Muncul & Hilang

– Buat banyak particle

– Maksimum particle & lifetime

– Lifetime berkurang setiap loop

• Semi Transparent

– Sort back to front

Page 8: Introduction to Particle System by Aryo

Hasil

Page 9: Introduction to Particle System by Aryo

@agatestudio

Topik Lanjutan

• Animated Particle

• Smooth Particle

• Particle Physics

• GPU Simulation

Page 10: Introduction to Particle System by Aryo

@agatestudio

Contoh dalam Unity

• Menggunakan Unity Particle System

• Set variabel-variabel

– lifetime

– size, rotation, color

– max particle

• Animated Particle

• Particle Physics

Page 11: Introduction to Particle System by Aryo

Contoh dalam Unity

Page 12: Introduction to Particle System by Aryo

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

Page 13: Introduction to Particle System by Aryo

Thank you!