mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 15:33:10 +02:00
clean up constants for voxels
This commit is contained in:
parent
78e8751a79
commit
781721b79c
7 changed files with 4 additions and 17 deletions
|
@ -18,15 +18,10 @@
|
|||
#include <OctalCode.h>
|
||||
#include <pthread.h>
|
||||
#include "Log.h"
|
||||
#include "VoxelConstants.h"
|
||||
|
||||
#include "VoxelSystem.h"
|
||||
|
||||
const int MAX_VOXELS_PER_SYSTEM = 250000;
|
||||
|
||||
const int VERTICES_PER_VOXEL = 24;
|
||||
const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
||||
const int INDICES_PER_VOXEL = 3 * 12;
|
||||
|
||||
float identityVertices[] = { 0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,
|
||||
0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1,
|
||||
0,0,0, 1,0,0, 1,1,0, 0,1,0, 0,0,1, 1,0,1, 1,1,1, 0,1,1 };
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
#include "SharedUtil.h"
|
||||
#include "voxels_Log.h"
|
||||
#include "VoxelNode.h"
|
||||
#include "VoxelConstants.h"
|
||||
#include "OctalCode.h"
|
||||
#include "AABox.h"
|
||||
|
||||
using voxels_lib::printLog;
|
||||
|
||||
// using voxels_lib::printLog;
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
typedef unsigned char colorPart;
|
||||
typedef unsigned char nodeColor[4];
|
||||
|
||||
const int TREE_SCALE = 10;
|
||||
|
||||
|
||||
class VoxelNode {
|
||||
private:
|
||||
nodeColor _trueColor;
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
#include "VoxelNodeBag.h"
|
||||
#include "ViewFrustum.h"
|
||||
#include <fstream> // to load voxels from file
|
||||
#include "VoxelConstants.h"
|
||||
|
||||
using voxels_lib::printLog;
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
#include "VoxelNodeBag.h"
|
||||
#include "MarkerNode.h"
|
||||
|
||||
const int MAX_VOXEL_PACKET_SIZE = 1492;
|
||||
const int MAX_TREE_SLICE_BYTES = 26;
|
||||
|
||||
// Callback function, for recuseTreeWithOperation
|
||||
typedef bool (*RecurseVoxelTreeOperation)(VoxelNode* node, bool down, void* extraData);
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <AvatarData.h>
|
||||
#include "MarkerNode.h"
|
||||
#include "VoxelNodeBag.h"
|
||||
#include "VoxelTree.h" // for MAX_VOXEL_PACKET_SIZE
|
||||
#include "VoxelConstants.h"
|
||||
|
||||
class VoxelAgentData : public AvatarData {
|
||||
public:
|
||||
|
|
|
@ -29,9 +29,6 @@
|
|||
|
||||
const int VOXEL_LISTEN_PORT = 40106;
|
||||
|
||||
const int VERTICES_PER_VOXEL = 8;
|
||||
const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
||||
const int COLOR_VALUES_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
||||
|
||||
const int VOXEL_SIZE_BYTES = 3 + (3 * sizeof(float));
|
||||
const int VOXELS_PER_PACKET = (MAX_PACKET_SIZE - 1) / VOXEL_SIZE_BYTES;
|
||||
|
|
Loading…
Reference in a new issue