Skip to content

Commit

Permalink
Diffusion example vis now uses orthographic projection.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Sep 22, 2023
1 parent 439fe48 commit 71a0501
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/cpp/diffusion/src/main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ int main(int argc, const char ** argv) {

/**
* Create visualisation
* @note FLAMEGPU2 doesn't currently have proper support for discrete/2d visualisations
*/
#ifdef FLAMEGPU_VISUALISATION
flamegpu::visualiser::ModelVis visualisation = cudaSimulation.getVisualisation();
Expand All @@ -149,6 +148,8 @@ int main(int argc, const char ** argv) {
visualisation.setCameraSpeed(0.001f * SQRT_AGENT_COUNT);
visualisation.setViewClips(0.01f, 2500);
visualisation.setClearColor(0.0f, 0.0f, 0.0f);
visualisation.setOrthographic(true);
visualisation.setOrthographicZoomModifier(0.284f);
auto agt = visualisation.addAgent("cell");
// Position vars are named x, y, z; so they are used by default
agt.setModel(flamegpu::visualiser::Stock::Models::CUBE); // 5 unwanted faces!
Expand Down

0 comments on commit 71a0501

Please sign in to comment.