FLAMEGPU / FLAMEGPU2

FLAME GPU 2 is a GPU accelerated agent based modelling framework for CUDA C++ and Python
https://flamegpu.com
MIT License
104 stars 20 forks source link

Visualiser with FP64 `x`/`y`/`z` runtime error #1217

Open ptheywood opened 1 month ago

ptheywood commented 1 month ago

Using doubple precision (64 bit) floating point values for X/Y/Z (and presumably glm position) types results in an error at runtime in ModelVis.cpp.

Agent 'agent' has not had x, y or z variables set, agent requires location to render, in ModelVis::activate()

https://github.com/FLAMEGPU/FLAMEGPU2/blob/4e0260476353710860a4c29c7bd96da27c80aa05/src/flamegpu/visualiser/ModelVis.cpp#L134

This might actually need a change in the vis repo, where core_text_buffers is set, but the error is thrown from ModelVis.cpp in this repo.

Robadob commented 1 month ago

Yeah, will need implementing on the visualiser side. May need to do some type conversion, not too sure about double precision floats in shader texture buffers.