options.h (1545B)
1 /* NOTE(rnp): for video output we will render a full rotation in this much time at the 2 * the specified frame rate */ 3 #define OUTPUT_TIME_SECONDS 8.0f 4 #define OUTPUT_FRAME_RATE 60 5 #define OUTPUT_BG_CLEAR_COLOUR (v4){{0.05, 0.05, 0.05, 1}} 6 7 #define RAW_OUTPUT_PATH "/tmp/out.raw" 8 9 #define RENDER_MSAA_SAMPLES 8 10 #define RENDER_TARGET_WIDTH 1920 11 #define RENDER_TARGET_HEIGHT 1080 12 #define CAMERA_ELEVATION_ANGLE 25.0f 13 #define CAMERA_RADIUS 200.0f 14 15 #define BOUNDING_BOX_COLOUR 0.78, 0.07, 0.20, 1 16 #define BOUNDING_BOX_FRACTION 0.007f 17 18 #define DYNAMIC_RANGE 30 19 #define LOG_SCALE 1 20 21 typedef struct { 22 c8 *file_path; 23 u32 width; /* number of points in data */ 24 u32 height; 25 u32 depth; 26 v3 min_coord_mm; 27 v3 max_coord_mm; 28 f32 clip_fraction; /* fraction of half volume used to create pyramidal shape (0 for cube) */ 29 f32 threshold; 30 f32 translate_x; /* mm to translate by when multi display is active */ 31 b32 swizzle; /* 1 -> swap y-z coordinates when sampling texture */ 32 f32 gain; /* uniform image gain */ 33 u32 texture; 34 } VolumeDisplayItem; 35 36 #define DRAW_ALL_VOLUMES 1 37 global u32 single_volume_index = 0; 38 global VolumeDisplayItem volumes[] = { 39 /* WALKING FORCES */ 40 {"./data/walking.bin", 512, 1024, 64, {{-20.5, -9.6, 5}}, {{20.5, 9.6, 50}}, 0.62, 72, 0, 0, 3.7}, 41 /* RCA */ 42 {"./data/tpw.bin", 512, 64, 1024, {{-9.6, -9.6, 5}}, {{9.6, 9.6, 50}}, 0, 92, -5 * 18.5, 1, 5}, 43 {"./data/vls.bin", 512, 64, 1024, {{-9.6, -9.6, 5}}, {{9.6, 9.6, 50}}, 0, 89, 5 * 18.5, 1, 5}, 44 };