Applied-Scientific-Research / Omega3D

GPU-accelerated 3D vortex methods solver with easy GUI
GNU General Public License v3.0
12 stars 6 forks source link

Draw 3D stuff better #5

Open markstock opened 3 years ago

markstock commented 3 years ago

Both drawing boundaries (triangles) and particles (billboards) can be better, as can upgrading the view from orthogonal to perspective. There are three tasks here. 1) Render in perspective, this means implementing an arcball-like rotation and an allowance to move the center of rotation. 2) Render boundaries as solid with basic direct and ambient lighting. 3) Instead of drawing billboards with transparency (costly with lots of overlap, and difficulty when depth culling), we may consider using instanced rendering or geometry shaders to convert each point into a screen-space fan of 7 or 9 opaque triangles. I have code for that in my lidar viewer. With the size ratio properly set, this would look much more 3D.