FLAMEGPU / FLAMEGPU2-visualiser

Cross platform real-time OpenGL visualiser for FLAMEGPU2 models.
1 stars 2 forks source link

Draw::resize() loses data (breaking large line drawings) #117

Closed Robadob closed 1 year ago

Robadob commented 1 year ago

As part of Fujitsu, I'm attempting to draw junction shapes as a blue polyline, and edges as a white collection of line segments.

If I create either individually, they work fine.

However, if I create both, only the one that is created second is drawn.

It appears that Draw::resize() is bugged, and losing data. A quick hack to fix this was changing the initial size of Draws buffers to something very big.

Robadob commented 1 year ago

It appears when copy old data back from vbo's, the newly created vbo's were being used instead so null data was being returned. Easy fix.

Robadob commented 1 year ago

Closed by https://github.com/FLAMEGPU/FLAMEGPU2-visualiser/pull/118