ZappoMan
2ba24e1716
fixed a couple bugs in VoxelNodeBag
2013-04-26 00:46:29 -07:00
ZappoMan
d6e27d8f2f
thread safety in VoxelTree (aded mutex to prevent reads and adds/deletes at same time)
...
also added VoxelNodeBag class to handle running out of room in the encode tree functions
2013-04-25 23:45:34 -07:00
ZappoMan
c014abbe6c
new VoxelNodeBag class which is used to store a collection of voxel node pointers
2013-04-25 23:41:07 -07:00
ZappoMan
3c7c85a98c
Added second cut at new bitstream writers
...
- added encodeTreeBitstream() which is new version of bitstream encoder that handles
only encoding nodes that are in view. Also handles detecting packet overflow with
new technique
- added encodeTreeBitstreamRecursion() which is the private work horse function
- moved temporary code to searchAndEncodeMultiTreeBitstream() which is still not
ready for prime time
2013-04-25 17:31:32 -07:00
ZappoMan
667fe11694
added VoxelNode::printDebugDetails()
2013-04-25 17:29:56 -07:00
ZappoMan
785ef88820
Code cleanup, change readBitstreamToTree() to support multiple trees, first cut at new loadBitstream()
...
- some small tweaks to cod to match coding standard for pointers
- changed readBitstreamToTree() to handle multiple trees in a single packet
- first cut at new version of loadBitstream() which is currently not in use
2013-04-24 23:47:38 -07:00
ZappoMan
0c692ca0c0
added isLeaf(), isInView(), and distanceToCamera() helper methods
2013-04-24 22:54:55 -07:00
ZappoMan
f449eafa63
added typedef for location enum
2013-04-24 22:53:34 -07:00
ZappoMan
b291b5d1f6
fixed bug in initialization of false color (actually true color)
2013-04-22 18:07:58 -07:00
ZappoMan
9d17dc0387
make view frustum culling default behavior, removed soem debug printf()s for now
2013-04-22 17:43:28 -07:00
ZappoMan
4e0a3e3b58
switch to boxInFrustum() instead of pointInFrustum() for more accuracy
2013-04-22 17:21:47 -07:00
ZappoMan
a79659a5d4
change VoxelAgentData to not include position, use AvatarData _bodyPosition instead
2013-04-22 15:22:41 -07:00
ZappoMan
7c73964836
code review cleanup
2013-04-22 15:07:46 -07:00
ZappoMan
030f5328f5
First cut at View Frustum Culling between client and server
2013-04-22 14:46:25 -07:00
ZappoMan
e1da39e2bb
Made several ViewFrustum methods const since they don't modify the class
2013-04-22 14:13:56 -07:00
ZappoMan
400ecf6b86
Convert over to standard glm functions for length, normalize, cross, and dot product
2013-04-21 22:57:01 -07:00
ZappoMan
358efb472d
Clean up AABox to coding standard, made several methods const
...
- Cleaned up AABox to be consistent with the coding standard
- converted some methods to const and fixed up callers
2013-04-21 22:46:13 -07:00
ZappoMan
e93ece0f52
Added support for NO_FALSE_COLOR define.
...
- changed VoxelNode to have implementation option for NO_FALSE_COLOR
Need some help from Stephen and/or Leo on how to make cmake support
building the voxels library in NO_FALSE_COLOR mode for the server
but keep false color support in the client
2013-04-21 19:45:54 -07:00
ZappoMan
a02a75f516
fix bug in definition of frustum planes, and general code cleanup
...
- Fixed bug in definition of frustum planes, namely making sure the points are
given in the correct order so that our plane normals point in correct direction
- general code cleanup to match coding standard
2013-04-21 15:21:03 -07:00
ZappoMan
8a150d27b8
Cleanup for coding standard fix bug in creation of plane from points
...
- cleaned up code to match HiFi Coding standard
- fixed bug in creation of plane related to cross product
2013-04-21 15:18:17 -07:00
ZappoMan
67910a2c29
Merge branch 'master' of https://github.com/worklist/hifi into view_frustum_work
2013-04-19 20:08:47 -07:00
ZappoMan
7dbc6bc986
Added inline getters for camera attributes
2013-04-19 19:56:53 -07:00
ZappoMan
8ad51b6c08
got rid of a bunch of this-> at Stephen's request. Added debuging for box in view
2013-04-19 19:56:03 -07:00
ZappoMan
2752918573
Fixed LOD bug, added recurseTree helper, change tree to use safe/true/false colors
...
- Fixed LOD bug in server side sending
- added recurseTreeWithOperation() helper
- changed tree to use new VoxelNode color related API
2013-04-19 18:15:50 -07:00
ZappoMan
3ec920d1b8
added scale() method to AABox
2013-04-19 18:14:10 -07:00
ZappoMan
9c601cedd0
Adding support for false color to voxel nodes, also added AABox to get voxel bounding box
2013-04-19 18:05:38 -07:00
Stephen Birarda
b9a1faf284
add a new SimpleMovingAverage class, replaces CounterStats
2013-04-18 14:46:39 -07:00
tosh
1e6352593a
Merge branch 'master' of git://github.com/worklist/hifi into 19262
...
Conflicts:
interface/src/Head.cpp
interface/src/Util.cpp
interface/src/main.cpp
libraries/avatars/src/Orientation.cpp
2013-04-18 12:38:35 +02:00
tosh
bf5f54c9d0
integrates logging for 'avatars' library, fixes missig return in Log.cpp, adds _lib suffix for log callback namespaces and reverts voxels -> voxLib rename in main
2013-04-17 20:14:29 +02:00
tosh
f899ff9378
adds logging support to voxels library
2013-04-17 20:01:58 +02:00
ZappoMan
4a28e5889b
Merge branch 'master' of https://github.com/worklist/hifi into view_frustum_work
2013-04-16 12:39:58 -07:00
Stephen Birarda
c921fd9b87
remove unnecessary SharedUtil include
2013-04-16 12:26:44 -07:00
Stephen Birarda
0182c29e7b
switch Util for SharedUtil in ViewFrustum
2013-04-16 12:25:23 -07:00
Stephen Birarda
e7e7bd290a
remove debugging on voxel deletion
2013-04-16 12:04:56 -07:00
Stephen Birarda
1dd21a450e
Merge remote-tracking branch 'upstream/master'
2013-04-16 12:00:55 -07:00
ZappoMan
dcca1699d3
Adding first cut at ViewFrustum pointIn,SphereIn,BoxIn code.
...
- Added Plane class
- Added AABox class
- Removed some experimental "slightly inside" code from view frustum
2013-04-16 11:29:31 -07:00
ZappoMan
3b994cbdcf
Latest work on ViewFrustum
...
- added support for specifying lens attributes (fov, near, far, ratio)
- changed constructor and calculate methods to be separate
- coding standard cleanup
2013-04-15 17:54:44 -07:00
Stephen Birarda
ed3f308a0e
pass ROOT_DIR to IncludeGLM macro instead of MACRO_DIR, include glm for AM
2013-04-15 16:08:35 -07:00
Stephen Birarda
4702e6ade0
remove the unecessary trailing slash when setting root dir
2013-04-15 14:59:48 -07:00
Stephen Birarda
d094c6fc3b
refactor LinkHifiLibrary, add SetupHifiLibrary macro
2013-04-15 14:41:59 -07:00
ZappoMan
27165be902
tweak starting fov adjust to 1.65 which seems correct
2013-04-13 13:19:48 -07:00
ZappoMan
4cb986b3f9
tweaks to ViewFrustum's default FOV, added comments
2013-04-13 13:09:20 -07:00
ZappoMan
505b2db935
some spacing cleanup
2013-04-12 17:27:54 -07:00
ZappoMan
54ba0d0224
cleaned up spacing for code review
2013-04-12 17:23:23 -07:00
ZappoMan
ca4286590e
fixed column width to match codeing standard
2013-04-12 17:14:08 -07:00
ZappoMan
5a8c5ff011
coding standards clean up
2013-04-12 16:55:57 -07:00
ZappoMan
5504d87212
Merge and Cleanup
...
-Cleanup glmUtils(as in, get rid of it)
-Merge branch 'master' of https://github.com/worklist/hifi into view_frustum_work
2013-04-12 16:32:46 -07:00
Stephen Birarda
cc2f35ca89
pass a ROOT_DIR to LinkHifiLibrary
2013-04-12 15:59:16 -07:00
ZappoMan
2ea8ce8ef8
Merge branch 'master' of https://github.com/worklist/hifi into view_frustum_work
2013-04-12 15:37:54 -07:00
Stephen Birarda
f6adac1399
change a couple more long ints
2013-04-12 15:35:06 -07:00