Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question CFD Volume rendering in Unity

Discussion in 'General Discussion' started by haakonflaar, Sep 12, 2023.

  1. haakonflaar

    haakonflaar

    Joined:
    Jun 13, 2023
    Posts:
    8
    I want to display data from a CFD simulation in Unity. Basically, I want to alter the color of voxels inside a 3D volume to reflect the velocity in that region (much like displayed in the picture below). I have data on the velocity in different voxels over time so the job is simply to read the data and display the correct colors in the right voxels over time. Is this possible to do in Unity? What is a good approach?


     
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,556
    Perhaps a shader.
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    8,955
    for testing it,
    could draw it as (animated) point cloud (where each voxel = billboard quad or box)
    maybe 3d texture could be tested also.

    if you need to create actual mesh surface from the data,
    look for unity marching cubes or metaballs..
     
  4. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,005
    You might also try to use DOTS for this.