FLAMEGPU / FLAMEGPU2

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

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

Open ptheywood opened 3 months ago

ptheywood commented 3 months 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 3 months 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.