kool-engine / kool

An OpenGL / WebGPU engine for Desktop JVM, Android and Javascript written in Kotlin
https://fabmax.github.io/kool/kool-js
Apache License 2.0
306 stars 20 forks source link

Advice: guidelines for using kool for a simulation tool #64

Open nort3x opened 6 months ago

nort3x commented 6 months ago

Hi, I'm not sure this is the right place to ask this, I'm thinking about using kool for a massive molecular dynamic visualization tool,

main headline is:

can you give me some advice? is kool the right fit? anything i should review before starting this project? Satellite_tobacco_mosaic_virus_rendering_produced_by_VMD_and_Tachyon

fabmax commented 6 months ago

Hmm 10^6 is a lot but should work if done right.

The easiest way would be to use a PointMesh and simply add your particles as points. However, points have a fixed size (independent of camera distance) and no ligthing effects, which can look a bit odd.

The alternative is to use a low resolution sphere or cube mesh with instancing. This also works with lighting but might get slow when you hit large particle numbers.