2018-11-26

Firefly

  • Implementing an interactive particle system with OpenGL and C++.
  • The particle system simulate a swarm of fireflies attracted by a point light, while every individual of them is doing some kind of random motion.
  • Using modern Core-Profile mode of OpenGL.

Details

  • The player will control a flying camera in a 3D simple scene(mainly composed of a skybox and a mountain-like mesh), and all the fireflies will be attracted by the point where the camera is located.
  • Two scenes are provided, one low poly and another realistic.
  • At most 400 fireflies are supported and each of them can emit 200 second-level particles.
  • Every single firefly act as a light source, which will illuminate the mountain-like mesh. Some optimizations have been done for better performance.
  • Bloom effect is implemented to make fireflies shiny.

Screenshot & Video Record

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,449评论 0 10
  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,726评论 0 3
  • 我是一个三岁宝宝的妈妈,宝上幼儿园小班。在今年5月份的时候,开了一家饮品店。因为房租过高,一年20万,具体来说应该...
    Miya木木阅读 222评论 0 1
  • 01 不可思议!军训竟然是三人间。 同学们都说会不会有其中一个人被孤立,好可怕。 如果我被孤立,我就自嗨,谢谢。 ...
    苏麻布阅读 165评论 5 2
  • 早恋的杀手少女 程诺硬塞给王南的几个水果,一直在他手里紧紧握着,疑似撞鬼的时候没有松手,女孩张口闭口杀人的时候没有...
    诺阳阁阅读 293评论 0 1