mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-03 22:33:08 +02:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
//
|
|
// VoxelConstants.h
|
|
// hifi
|
|
//
|
|
// Created by Brad Hefta-Gaub on 4/29/13.
|
|
//
|
|
//
|
|
// Various important constants used throughout the system related to voxels
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi_VoxelConstants_h__
|
|
#define __hifi_VoxelConstants_h__
|
|
|
|
#include <limits.h>
|
|
#include <OctalCode.h>
|
|
|
|
// this is where the coordinate system is represented
|
|
const glm::vec3 IDENTITY_RIGHT = glm::vec3( 1.0f, 0.0f, 0.0f);
|
|
const glm::vec3 IDENTITY_UP = glm::vec3( 0.0f, 1.0f, 0.0f);
|
|
const glm::vec3 IDENTITY_FRONT = glm::vec3( 0.0f, 0.0f,-1.0f);
|
|
|
|
const int TREE_SCALE = 128;
|
|
|
|
const int NUMBER_OF_CHILDREN = 8;
|
|
const int MAX_VOXEL_PACKET_SIZE = 1492;
|
|
const int MAX_TREE_SLICE_BYTES = 26;
|
|
const int MAX_VOXELS_PER_SYSTEM = 200000;
|
|
const int VERTICES_PER_VOXEL = 24;
|
|
const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
|
const int INDICES_PER_VOXEL = 3 * 12;
|
|
const int COLOR_VALUES_PER_VOXEL = NUMBER_OF_COLORS * VERTICES_PER_VOXEL;
|
|
|
|
typedef unsigned long int glBufferIndex;
|
|
const glBufferIndex GLBUFFER_INDEX_UNKNOWN = ULONG_MAX;
|
|
|
|
const double SIXTY_FPS_IN_MILLISECONDS = 1000.0/60;
|
|
const double VIEW_CULLING_RATE_IN_MILLISECONDS = 1000.0; // once a second is fine
|
|
|
|
#endif
|