Andrew Meadows
4c3cdf5b7a
move stuff out of shared and into physics library
2014-10-28 13:51:45 -07:00
Stephen Birarda
2711ff2b5f
move functionality from VerboseLoggingHelper into the Logging class
2014-10-28 13:48:53 -07:00
Stephen Birarda
8a4c716452
leverage the VerboseLoggingHelper for packets from unknown nodes
2014-10-28 12:15:52 -07:00
Stephen Birarda
9c30903eb6
add the VerboseLoggingHelper class for repeated messages
2014-10-28 12:05:56 -07:00
ZappoMan
fc507850be
Merge branch 'master' of https://github.com/highfidelity/hifi into removeParticles
2014-10-16 20:36:28 -07:00
samcake
3d13792a9d
Merge pull request #3599 from ZappoMan/frustumCullModelParts
...
Frustum cull model parts
2014-10-15 11:56:00 -07:00
ZappoMan
64fecba011
removed some unneeded scaling to AABox and AACube debug
2014-10-14 17:17:30 -07:00
ZappoMan
e235af1331
add debeg streaming to Extents
2014-10-14 17:16:49 -07:00
ZappoMan
f04c2b6e6f
fix possible buffer overrun asserts
2014-10-14 17:14:12 -07:00
Andrzej Kapolka
60576bdcbd
Basic metavoxel scripting bits.
2014-10-13 15:05:16 -07:00
ZappoMan
4c85e9f581
removing particles
2014-10-13 14:10:57 -07:00
Stephen Birarda
c16ab0a19f
remove definition for an unused method
2014-09-29 15:27:45 -07:00
Stephen Birarda
bd4a32551b
fix for settings save without organization
2014-09-29 10:09:33 -07:00
Stephen Birarda
5e2870ac5f
require a distinction between master config and user config
2014-09-29 09:30:08 -07:00
Stephen Birarda
7c738edbd8
Merge pull request #3488 from PhilipRosedale/master
...
Correct eye contact for Oculus users
2014-09-26 15:42:03 -07:00
Stephen Birarda
e75a2d355e
Merge branch 'master' of https://github.com/highfidelity/hifi into domain-wizard
2014-09-26 14:31:52 -07:00
Stephen Birarda
94f30fe4d9
handle password setting by not converting to double
2014-09-26 12:20:12 -07:00
Stephen Birarda
21809cc9df
fix http username with no password
2014-09-26 12:09:29 -07:00
Stephen Birarda
e6449da890
repair a crash while overriding a config map
2014-09-26 11:10:56 -07:00
Stephen Birarda
954fbc2017
use DomainServerSettingsManager to handle simulation settings and config
2014-09-26 11:06:05 -07:00
Philip Rosedale
f66f565f53
update stDev (standard deviation) class to coding standard
2014-09-25 18:14:02 -07:00
Stephen Birarda
a684191cf1
change the default config path to system config path
2014-09-25 14:50:07 -07:00
ZappoMan
9cd76983a2
swith to using shape collider instead of spheres
2014-09-25 14:35:20 -07:00
Andrew Meadows
58bcb98dd6
remove virtual for ListShape::findRayIntersection()
2014-09-23 10:04:36 -07:00
Andrew Meadows
7dd9587d20
remove warning about hidden virtual override
2014-09-23 09:07:23 -07:00
Stephen Birarda
0033dfe5af
use quat orientation to store locations and user locations
2014-09-16 09:57:21 -07:00
Andrew Meadows
0539246089
merge upstream/master into andrew/ragdoll
2014-09-15 13:56:51 -07:00
ZappoMan
fd9f64cb44
normalize all quats before packing
2014-09-15 08:46:28 -07:00
ZappoMan
4ae3360f83
fix warning
2014-09-13 08:50:52 -07:00
ZappoMan
e76ffb2ecb
fixed another warning
2014-09-13 08:44:13 -07:00
ZappoMan
973479d1ac
fix warning in ByteCountCoded<>
2014-09-13 07:57:45 -07:00
Andrew Meadows
f2882618be
merge upstream/master into andrew/inertia
...
Conflicts:
interface/src/avatar/MyAvatar.cpp
2014-09-12 17:50:26 -07:00
Andrew Meadows
62867391a3
collide against PhysSimulation instead of VoxelTree
2014-09-12 17:38:45 -07:00
Andrew Meadows
32b07027d3
namechange planeNormal --> faceNormal
2014-09-12 17:27:56 -07:00
Andrew Meadows
4e7a7667b1
remove unused variable
2014-09-12 09:19:03 -07:00
Andrew Meadows
825be3e1e7
fix for ray-vs-AACubeShape intersection test
2014-09-12 08:40:48 -07:00
Andrew Meadows
a9957ac7df
the real fix for ray-vs-plane intersection
2014-09-12 08:40:03 -07:00
Andrew Meadows
ff0872a5f0
add RayIntersectionInfo::getIntersectionPoint()
2014-09-12 08:38:44 -07:00
Andrew Meadows
46089a0611
fix ray-vs-AACube logic
2014-09-12 08:37:47 -07:00
ZappoMan
9f4d199440
move bound proxy rendering to EntityTreeRedering, added helper functions for various bounding boxes
2014-09-11 15:36:13 -07:00
ZappoMan
d616c7fa0c
handy conversions between AABox, AACube, and Extents
2014-09-11 12:23:35 -07:00
ZappoMan
7cadc3433a
improve constness for operators on PropertyFlags<>
2014-09-11 12:13:34 -07:00
ZappoMan
13cffa6e44
moved Extents to shared
2014-09-11 12:12:25 -07:00
Andrew Meadows
0494ffcf38
implement Ray-vs-Capsule and Ray-vs-AACube
2014-09-10 17:01:51 -07:00
Andrew Meadows
4da1ca22ba
Add RayIntersectionInfo and use for shape-vs-ray
2014-09-09 17:35:06 -07:00
Ryan Huffman
ecadf7dd33
Add include for QtGlobal to ensure OS global has been defined
2014-09-08 12:40:53 -07:00
Ryan Huffman
b0a0760be2
Update ShutdownEventListener to not stop event handling
2014-09-05 11:26:22 -07:00
Ryan Huffman
38a14c3864
Reapply "Update assignment client to close on WM_CLOSE message on Windows"
...
This reverts commit a603453cf2
.
2014-09-05 11:19:36 -07:00
Leonardo Murillo
a603453cf2
Revert "Update assignment client to close on WM_CLOSE message on Windows"
2014-09-05 11:36:56 -06:00
Brad Hefta-Gaub
9648c0d64e
Merge pull request #3343 from AndrewMeadows/ragdoll
...
Ragdoll Part 12: first pass avatar skeleton collides with voxels
2014-09-04 23:09:08 -07:00
Andrew Meadows
7cde6811ca
remove unecessary AACube::operator<()
2014-09-04 15:21:19 -07:00
AndrewMeadows
8223481ecb
Merge pull request #3341 from huffman/19967
...
Code Review for Job #19967
2014-09-03 16:51:19 -07:00
AndrewMeadows
9036954d38
Merge pull request #3311 from huffman/fix-wm-close
...
Update assignment client to close on WM_CLOSE message on Windows
2014-09-03 16:43:12 -07:00
Andrew Meadows
e120697a9b
merge upstream/master into andrew/ragdoll
2014-09-03 15:49:32 -07:00
AndrewMeadows
bd55da4a83
Merge pull request #3335 from ZappoMan/virtualEntities
...
Model Server to Entity Server Refactoring
2014-09-03 15:48:58 -07:00
Andrew Meadows
a3b26582ba
fix for nan in sphereVsAACubeHelper()
2014-09-03 15:39:26 -07:00
Andrew Meadows
4270c4d989
merge upstream/master into andrew/ragdoll
2014-09-03 14:42:17 -07:00
Andrew Meadows
361d1e83b0
use PhysicsEntity::stepForward() in simulation loop
2014-09-03 13:18:35 -07:00
Andrew Meadows
6454fd2627
add PhysicsEntity::stepForward()
2014-09-03 13:18:12 -07:00
Andrew Meadows
06e1d4a8bc
init Shape::_mass in all ctors
2014-09-03 13:16:49 -07:00
Andrew Meadows
0cc6f559d4
add AACube::operator<() so they can be sorted
2014-09-03 13:13:54 -07:00
Ryan Huffman
5937830443
Update getWindowTitleBarHeight signature
2014-09-03 08:27:18 -07:00
Ryan Huffman
1ee23a1661
Add Windows.h include to ShutdownEventListener
2014-09-03 08:04:39 -07:00
Ryan Huffman
76bede04aa
Move stdout/err disabling to a library class
2014-09-03 07:06:08 -07:00
Ryan Huffman
c27bee2c06
Move wm_close handling to a shared library
2014-09-03 07:05:24 -07:00
Andrew Meadows
7c04a25095
fix whitespace formatting of curly braces
2014-09-02 16:29:20 -07:00
Ryan Huffman
67cefc8d54
Reduce height of RunningScripts so titlebar is inside main window
2014-09-02 13:12:52 -07:00
ZappoMan
ea22073ddc
removed some accidentally added code
2014-09-01 23:05:23 -07:00
ZappoMan
d1a046e6ed
properly handle LOD in rendering by not rendering small entities
2014-08-29 21:18:31 -07:00
Andrew Meadows
aeb355e3da
re-enabling legacy avatar-vs-voxel collisions
...
so that I don't break anything when this merges with upstream
2014-08-29 15:53:20 -07:00
Andrew Meadows
ebcc960ec7
merge upstream/master into andrew/ragdoll
2014-08-29 15:48:40 -07:00
Andrew Meadows
a0eb13f6db
collision logic for capsule-side-vs-cube-face
...
with unit tests
2014-08-29 14:23:00 -07:00
ZappoMan
2bcad6ab2b
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
assignment-client/src/Agent.cpp
examples/editModels.js
2014-08-28 21:19:56 -07:00
Andrew Meadows
00913d4422
fixes for capsuleVsAACube() with unit tests
2014-08-28 16:51:16 -07:00
ZappoMan
76c77d6994
first cut at properly working lifetime
2014-08-28 13:46:54 -07:00
Andrew Meadows
921c8cfec3
fix broken build for using unititialized const float
2014-08-27 12:21:15 -07:00
Andrew Meadows
e133a696f5
merge andrew/ragdoll into some ShapeCollider work
2014-08-27 12:12:08 -07:00
Andrew Meadows
c6253bb51a
AACube vs Sphere and Capsule collision tests
...
Sphere is unit tested.
Also removed the shape collision query against Octree
2014-08-27 12:09:41 -07:00
Craig Hansen-Sturm
e941e58626
merge HEAD with PR-3281
2014-08-26 18:25:40 -07:00
Andrew Meadows
7a5c4fdb16
remove commented out #includes
2014-08-25 15:25:46 -07:00
ZappoMan
1764839223
get basics of referentials working
2014-08-25 14:07:01 -07:00
Andrew Meadows
681c526fe1
exploit symmetry of collision pairings
2014-08-25 08:52:45 -07:00
Andrew Meadows
f684608d1f
Added AACubeShape with stubbed collision functions
2014-08-25 08:24:44 -07:00
Andrew Meadows
1bd7734ec1
sometimes swap order of shapes for simpler code
2014-08-22 18:07:11 -07:00
Andrew Meadows
1be922f986
add shapeVsList etc to dispatch table
...
renamed some functions for more readability
2014-08-22 11:20:53 -07:00
Andrew Meadows
3ebd8c1969
use dispatchTable for shape-vs-shape collisions
2014-08-21 16:40:25 -07:00
Andrew Meadows
f511fe2657
Ragdoll cannot assume skeleton's rootIndex is 0
...
some Models have extra "joints" not part of the normal skeleton
2014-08-19 11:31:50 -07:00
ZappoMan
32d5eb3cea
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
assignment-client/CMakeLists.txt
interface/CMakeLists.txt
libraries/entities/CMakeLists.txt
libraries/models/src/ModelEditPacketSender.cpp
libraries/models/src/ModelEditPacketSender.h
libraries/models/src/ModelItem.cpp
libraries/models/src/ModelItem.h
libraries/octree/src/OctreeEditPacketSender.cpp
libraries/octree/src/OctreeEditPacketSender.h
libraries/octree/src/OctreePacketData.h
libraries/octree/src/OctreeQuery.cpp
libraries/particles/src/ParticleEditPacketSender.cpp
libraries/particles/src/ParticleEditPacketSender.h
libraries/script-engine/CMakeLists.txt
tests/octree/CMakeLists.txt
2014-08-18 15:16:35 -07:00
Andrew Meadows
543bf5224c
add VerletPoint::shift()
2014-08-18 12:54:26 -07:00
Andrew Meadows
7e7978de1a
compute and store Ragdoll::_accumulatedMovement
2014-08-18 12:53:04 -07:00
Andrew Meadows
fe5f9f8fe5
use relative mass when enforcing ContactPoint
2014-08-18 12:49:47 -07:00
Andrew Meadows
54851c5ced
add Ragdoll::_accumulatedMovement
2014-08-18 12:49:12 -07:00
Andrew Meadows
432c14408c
removed hackery from ContactPoint enforcement
2014-08-14 15:29:57 -07:00
Andrew Meadows
98d27ad2b5
more correct names for ContactPoint API
...
renamed (and disabled) the useless enforce() to applyFriction()
changed the buildConstraints() method to more correct name: enforce()
will eventually change how ContactPoint actually works, but later
2014-08-14 15:17:03 -07:00
Andrew Meadows
60d411ead5
cleanup Ragdoll API (less "ragdoll" qualifiers)
2014-08-14 14:41:51 -07:00
Andrew Meadows
46c91052c9
split SkeletonModel and Ragdoll classes apart
2014-08-14 14:29:03 -07:00
Andrew Meadows
ee0d0a1566
remove ragdoll from simulation in dtor
2014-08-14 09:20:53 -07:00
wangyix
81fa5ed41f
readPendingDatagrams stats printed and sent to domain page
...
jittertester now prints out send or receive error msgs
2014-08-13 16:48:06 -07:00
Andrew Meadows
f66398d366
adding comment about parameter's purpose
2014-08-13 15:06:34 -07:00
Andrew Meadows
7852321152
merge upstream/master into andrew/ragdoll
2014-08-13 14:52:14 -07:00
Andrew Meadows
b177686f74
minor tweak to how ContactPoint is updated
2014-08-13 14:50:25 -07:00
Andrew Meadows
2f1a56a87c
ContactPoint tries to help maintain collisions
...
so that collision events will continue to update the contact
2014-08-13 13:48:04 -07:00
wangyix
b17c9102c9
added stats for readPendingDatagrams in audiomixer
2014-08-13 13:30:02 -07:00
Andrew Meadows
bc432aa8e8
use relative masses for ContactPoint contsrtaint
2014-08-13 11:29:54 -07:00
Andrew Meadows
4de43b7cbe
cleanup and reordering of code
2014-08-13 11:19:32 -07:00
wangyix
db0fbcab97
merge with upstream
2014-08-13 11:09:55 -07:00
ZappoMan
3551bd676f
quiet a lot of debugging, fix issue with updating entities that overhang the domain bounds
2014-08-12 13:14:28 -07:00
ZappoMan
027b1d58cc
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
interface/src/Application.h
interface/src/entities/EntityTreeRenderer.h
interface/src/models/ModelTreeRenderer.cpp
libraries/models/src/ModelItem.h
libraries/models/src/ModelTree.h
2014-08-08 14:26:56 -07:00
Stephen Birarda
d5b1bee13c
resolve conflicts on merge with upstream master
2014-08-08 13:48:32 -07:00
Stephen Birarda
6eb2c73624
add assert include to SharedUtil
2014-08-08 13:23:54 -07:00
Stephen Birarda
b1310c065c
remove TARGET_NAME from cmake macros where it is not required
2014-08-08 13:17:54 -07:00
Stephen Birarda
27419b7b6b
fix some build blockers in test directory
2014-08-08 13:17:54 -07:00
Stephen Birarda
26f7b1ba62
add macro to link shared dependencies to target
2014-08-08 13:17:54 -07:00
Stephen Birarda
c9f8433a2d
tweak setup_hifi_library to bubble up full path of Qt modules
2014-08-08 13:17:54 -07:00
Stephen Birarda
87cf262b9e
get to successful cmake after library link macro changes
2014-08-08 13:17:53 -07:00
Stephen Birarda
0378fb3049
break glm helpers out of SharedUtil
2014-08-08 13:17:53 -07:00
Stephen Birarda
892e30c5e1
get past assignment-client build after cmake auditing
2014-08-08 13:17:53 -07:00
Stephen Birarda
b5c8a4d2c6
fix requirement of networking in audio library
2014-08-08 13:17:52 -07:00
Stephen Birarda
fa26957b23
more CMakeLists cleanup for sub-dependencies
2014-08-08 13:17:52 -07:00
Stephen Birarda
33e5826842
remove animation server, bubble up qt modules
2014-08-08 13:17:52 -07:00
Stephen Birarda
9a50532b1f
bubble up sub dependencies to link_hifi_library
2014-08-08 13:17:52 -07:00
wangyix
63624fae7d
cleaned up code, fixed typos
2014-08-08 11:40:48 -07:00
wangyix
b670226ee3
removed printf, removed random copy of some file
2014-08-08 11:22:04 -07:00
Philip Rosedale
96a795eea4
Merge pull request #3263 from AndrewMeadows/ragdoll
...
Ragdoll Part 9:
2014-08-07 22:12:31 -07:00
wangyix
1153a76ab1
new option knobs added, no new behavior yet
2014-08-07 16:37:36 -07:00
ZappoMan
84f3ede32f
small change to force rebuild
2014-08-07 15:09:24 -07:00
Andrew Meadows
bb33266635
merge upstream/master into andrew/ragdoll
2014-08-07 14:37:10 -07:00
Andrew Meadows
94da63006c
VerletPoint::_mass is now private
...
We set the mass of other avatars artificially high
so they are less movable.
2014-08-07 14:35:32 -07:00
Andrew Meadows
0f784a9cc5
add other ragdolls to simulation
2014-08-07 13:09:05 -07:00
wangyix
357ba92181
working towards more dials for InboundAdioStream
2014-08-07 12:41:09 -07:00
Andrew Meadows
87350ad2d0
ragdoll simulation now in model-relative frame
...
(same rotation as world-frame, but translated to MyAvatar origin)
2014-08-07 11:45:06 -07:00
Andrew Meadows
27b876e84c
namechange _frame --> _frameCount
2014-08-07 09:02:31 -07:00
AndrewMeadows
2653b33b67
Merge pull request #3257 from Atlante45/referentials
...
Referentials
2014-08-06 14:12:18 -07:00
Andrew Meadows
cb8c0792b2
make main ragdoll and entity special
...
also addded some logic (unused) to add ragdolls of other avatars
2014-08-06 10:43:56 -07:00
Andrew Meadows
a1fccdb177
remove dangling shape pointers from PhysicsSimulation
2014-08-05 08:32:14 -07:00
Andrew Meadows
39d3deee90
merge upstream/master into andrew/ragdoll
2014-08-04 17:37:28 -07:00
Andrew Meadows
f126ce299a
ContactPoint = set of assymetric distance consraints
2014-08-04 17:34:24 -07:00
Andrew Meadows
4beee3fecf
add Shape::getVerletPoints()
2014-08-04 17:33:24 -07:00
Andrew Meadows
d1b2ba4a43
fix bug: false positive capsuleCapsule() collision
...
for capsules with parallel axes and negative pojection of
center-to-center separation
also replace fabs() with fabsf()
2014-08-04 17:30:23 -07:00
Stephen Birarda
9fc545001c
look for a config.json file by default in resources
2014-08-04 15:40:45 -07:00
Atlante45
d9dde06c14
Various tweaks to referentials
2014-08-04 14:59:15 -07:00
ZappoMan
3a8c5018ee
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
interface/src/Application.h
libraries/entities/src/EntityTreeElement.h
libraries/models/src/ModelItem.cpp
libraries/models/src/ModelItem.h
libraries/models/src/ModelTree.cpp
libraries/models/src/ModelTree.h
libraries/models/src/ModelTreeElement.cpp
libraries/networking/src/PacketHeaders.h
libraries/octree/src/OctreeEditPacketSender.cpp
libraries/octree/src/OctreeEditPacketSender.h
2014-08-04 12:01:23 -07:00
Andrew Meadows
1ec6ee05f3
Rename ContactConstraint to ContactPoint
2014-08-01 15:08:21 -07:00
Andrew Meadows
3305f5edf9
merge upstream/master into andrew/ragdoll
2014-08-01 11:13:18 -07:00
Andrew Meadows
789eeed760
limit action of ContactConstraint to penetration
2014-08-01 11:11:41 -07:00
Andrew Meadows
9d2744296e
update physics stats names
2014-07-31 13:33:46 -07:00
Andrew Meadows
fc1d805d54
add ContactConstraint and use to impede muscles
2014-07-31 13:16:06 -07:00
Andrew Meadows
0f82236f2c
minor cleanup
2014-07-31 13:09:10 -07:00
Andrew Meadows
0b9f246661
set the shape ID in the ctor's NOT the dtor
2014-07-31 13:08:27 -07:00
ZappoMan
77e1867b11
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
assignment-client/src/Agent.cpp
assignment-client/src/Agent.h
examples/editModels.js
interface/src/Application.h
2014-07-31 10:34:23 -07:00
Brad Hefta-Gaub
d4d4069f11
Merge pull request #3225 from birarda/master
...
cmake file cleanup to suppress warnings on cmake 3.0
2014-07-30 19:20:18 -07:00
Brad Hefta-Gaub
d6e6cfd585
Merge pull request #3216 from wangyix/inbound_audio_stream
...
Audio ringbuffer classes refactored into subclasses of InboundAudioStream
2014-07-30 18:00:17 -07:00
Stephen Birarda
2796f71419
library cleanup to suppress warnings on cmake 3.0
2014-07-30 15:06:15 -07:00
Andrew Meadows
f579d2a0e2
add CollisionInfo::getShapePairKey()
2014-07-30 13:11:45 -07:00
Andrew Meadows
176d8d157d
remove unused Constraint::_type
2014-07-30 13:07:32 -07:00
Andrew Meadows
7b76753daf
add PhysicsSimulation::_frame
2014-07-30 11:45:53 -07:00
Andrew Meadows
c0689f3784
fix old bug: rotation of CapsuleShape not updated
...
when setting endpoints directly
2014-07-30 11:30:08 -07:00
Andrew Meadows
53db6dec13
fix old copy-n-paste typo
2014-07-30 11:29:43 -07:00
Andrew Meadows
917833d92a
namechange for Shape::_id
2014-07-30 11:29:07 -07:00
Andrew Meadows
dde0cbddcc
add Shape::_id
2014-07-30 11:09:19 -07:00
Andrew Meadows
81ba686fdf
more perfstats for ragdoll simulation
2014-07-30 11:02:47 -07:00
Andrew Meadows
67b9c185eb
formatting and minor tweaks to constraint strengths
2014-07-29 16:48:34 -07:00
wangyix
71c23eac1e
added TimeWeightedAvg to InboundAudioStream
...
_maxFramesOverDesired hardcoded right now
2014-07-29 13:51:46 -07:00
Atlante45
03031c4c04
Outdated link
2014-07-28 16:36:12 -07:00
ZappoMan
805a88b73b
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
examples/editModels.js
interface/src/entities/EntityTreeRenderer.h
libraries/models/src/ModelsScriptingInterface.cpp
libraries/script-engine/src/ScriptEngine.cpp
2014-07-28 13:39:35 -07:00
wangyix
9bbd055404
added stdev method of jitter calc to InboundAudioStream
2014-07-28 11:41:08 -07:00
Andrew Meadows
60612f6397
implement VerletPoint::integrateForward()
2014-07-25 15:23:12 -07:00
Andrew Meadows
b2c2cfec79
implement base Ragdoll::stepRagdollForward()
2014-07-25 15:22:25 -07:00
Andrew Meadows
2ddca4fbf9
split independent classes out of Ragdoll files
2014-07-24 09:50:16 -07:00
Andrew Meadows
b62f04e9fe
check for nan's coming out of rotationBetween()
2014-07-23 16:51:53 -07:00
Andrew Meadows
c0e02107c5
minor cleanup
2014-07-23 16:51:26 -07:00
ZappoMan
30aee70346
latest work
2014-07-21 09:18:21 -07:00
Philip Rosedale
1b265f3adb
Merge pull request #3180 from AndrewMeadows/ragdoll
...
Ragdoll Part4: ragdoll shapes follow target joints, visible joints follow ragdoll shapes
2014-07-17 16:00:02 -07:00
Brad Hefta-Gaub
437e3efbc2
Merge pull request #3179 from wangyix/quick_audio_PR
...
Lost audio packets are replaced with silent frames in AudioMixer; AudioMixer silent-packet-dropping now enabled no matter what; Moving avg of audio frames available replaces _currentJitterBufferFrames
2014-07-17 11:44:05 -07:00
Andrew Meadows
b22652f441
merge upstream/master into andrew/ragdoll
2014-07-17 10:52:27 -07:00
Andrew Meadows
66158cb8a2
fix capsule-vs-capule collision test
2014-07-17 09:19:17 -07:00
wangyix
6764ace8eb
droppable silent packets are added for dropped packets;
...
_currentJitterBufferFrames replaced with moving average of frames
available. Downstream framesAvailable stat now includes the frames in
QAudioOutput as well as the ringbuffer.
2014-07-16 14:41:24 -07:00
Andrew Meadows
922912b784
merge upstream/master into andrew/ragdoll
...
Conflicts:
interface/src/Menu.h
2014-07-16 09:00:36 -07:00
Andrzej Kapolka
469e31cc05
Script bindings for QColor.
2014-07-15 16:44:02 -07:00
ZappoMan
1eb472c43a
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
2014-07-15 10:05:06 -07:00
ZappoMan
2baac96665
Merge branch 'master' of https://github.com/highfidelity/hifi into virtualEntities
...
Conflicts:
examples/sit.js
interface/src/Application.cpp
libraries/models/src/ModelItem.cpp
libraries/models/src/ModelsScriptingInterface.cpp
2014-07-15 10:04:40 -07:00
wangyix
1047ec7c87
merge with upstream
2014-07-14 16:25:26 -07:00
Aleric Inglewood
935f28aa35
Type fix. That that even compiled :/
2014-07-14 21:18:37 +02:00
wangyix
cb5a9bf668
moved some const defs to avoid redefinition
2014-07-14 10:43:02 -07:00
Aleric Inglewood
13c2c69d06
Fix another typo in previous commit
2014-07-13 20:54:27 +02:00
Aleric Inglewood
ea98b58b40
Debug support: allow printing of glm types to QDebug.
...
This adds support for serialization to QDebug of
glm::vec3, glm::quat and glm::mat4.
Output example:
qDebug().nospace() << "Calling PhysicsEntity::findRayIntersection(" << origin << ", " << direction << ", &distance) const; numShapes = " << numShapes;
leads to:
[2014-07-13T20:24:47] Calling PhysicsEntity::findRayIntersection({type='glm::vec3', x=5222.45, y=2159.05, z=6527.79}, {type='glm::vec3', x=0, y=-0.119145, z=-0.992877}, &distance) const; numShapes = 0
Note that we explicitly don't return dbg.space() because
we want to be able to print these things comma separated
as follows: {...}, {...}, ... as opposed to {...} , {...} etc.
I changed the already existing operator<< for Box to
the more general case, where it just prints its members
and doesn't mess with the internals of its members.
The result is more verbose, but also more recognizable when
in the future everything will look the same, allowing
for speed reading the debug output.
The constructor of Box needed to made explicit because
it was too annoying that when one forgets to #include "StreamUtils.h"
that writing a glm::vec3 resulted in printing out a Box,
implicitly converted from the vector.
2014-07-13 20:43:02 +02:00
wangyix
82e9aa8bb7
made stats easier to read; reverted injected stream deletion conditions
2014-07-11 16:08:15 -07:00
Andrew Meadows
c5a5f8c5d4
bug fix: bad logic in capsule-vs-capsule
2014-07-11 10:54:16 -07:00
Andrew Meadows
7c8f5e2c12
Remove some old TODO comments
2014-07-11 10:54:03 -07:00
wangyix
25f4f63a1e
added window PacketStreamStats to AudioStreamStats
2014-07-10 16:42:23 -07:00
ZappoMan
780532bfd8
more model to entity renaming, adding AABox:clamp() and AACube::clamp() fix AddEntity to support adding an entity that extends over bounds of universe
2014-07-10 13:42:49 -07:00
wangyix
35419eb939
Merge remote-tracking branch 'upstream/master' into quick_audio_PR
2014-07-10 11:56:35 -07:00
wangyix
a955a17472
changed RingBufferHistory to use qvector instead of raw array
2014-07-10 11:55:19 -07:00
wangyix
0b213f9616
streamlined AudioStreamStats packing; added #include <limits>
2014-07-10 10:44:33 -07:00
wangyix
35e4b253c2
added typename keyword in MovingMinMaxAvg.h
2014-07-10 10:35:29 -07:00
wangyix
763cc26fa9
added operator= to RingBufferHistory<T>::Iterator
2014-07-10 10:21:03 -07:00
wangyix
37b60a63b2
removed spaces
2014-07-10 10:01:32 -07:00
wangyix
0d83b9a6f6
tidied up code
2014-07-10 09:51:01 -07:00
wangyix
01f10024ae
all stats added, needs testing; created PacketStreamStats struct
2014-07-09 18:13:33 -07:00
wangyix
81e168f657
added RingBufferHistory template class, used it in SentPacketHistory and MovingMinMaxAvg
2014-07-09 15:38:03 -07:00
Andrew Meadows
9ce6844e9d
fix accidental broken class definition
2014-07-09 14:39:08 -07:00
Andrew Meadows
63bcee0229
fix whitespace formatting
2014-07-09 14:33:09 -07:00
wangyix
d03d3ef817
new auidostreamstats displayed in interface, domain page stats updated
2014-07-09 11:59:50 -07:00
Andrew Meadows
d26585728b
Improved stat accumulation and context names
2014-07-09 11:53:53 -07:00
Andrew Meadows
d214998d1a
enforce coding standard: explicit casts
2014-07-09 11:53:09 -07:00
wangyix
54e8ed5e11
added MovingMinMaxAvg and unit test; added additional stats to AudioStreamStats struct
2014-07-09 09:41:49 -07:00
ZappoMan
c449ba27a9
more virtual entity work
2014-07-03 15:18:17 -07:00
ZappoMan
ec0c350f60
Merge branch 'master' of https://github.com/worklist/hifi into virtualEntities
...
Conflicts:
interface/src/Application.cpp
interface/src/DatagramProcessor.cpp
libraries/script-engine/src/ScriptEngine.cpp
2014-07-03 14:20:40 -07:00
Andrew Meadows
8c8a29f477
merge upstream/master into andrew/ragdoll
2014-07-03 09:27:52 -07:00
Andrew Meadows
356a29c2fb
add AngularConstraint::softClamp() for hands
2014-07-03 08:40:34 -07:00
Atlante45
106e5b578b
Merge branch 'master' of https://github.com/highfidelity/hifi into replace_qnetworkaccessmanager
2014-07-02 16:06:41 -07:00
Clément Brisset
1f92d57230
Merge pull request #3103 from AlericInglewood/19827
...
Code Review for Job #19827
2014-07-02 15:53:57 -07:00
Atlante45
6e02561d96
Merge branch 'master' of https://github.com/highfidelity/hifi into replace_qnetworkaccessmanager
2014-07-02 14:08:57 -07:00
Andrew Meadows
f5debdb930
merge upstream/master into andrew/bispinor
2014-07-02 11:23:42 -07:00
Atlante45
15b37ec3d1
Switched ResourceCache to NetworkAccessManager
2014-07-02 11:21:07 -07:00
Andrew Meadows
5934ee5b22
added tests for ConeRollerConstraint
2014-07-01 09:35:47 -07:00
Andrew Meadows
9ca1bfdfe5
add AngularConstraint.* with some unit tests
...
more unit tests to follow
2014-06-30 18:05:22 -07:00
Aleric Inglewood
f13bbdfae6
Compile fix for non-standard Qt5 install.
...
When Qt5 5.2.1 is compiled from source, configured with
-developer-build, and used without being installed;
then compiling interface results in the following compile error:
libraries/shared/src/RegisteredMetaTypes.h:17:34: fatal error: QtScript/QScriptEngine: No such file or directory
This commit fixes this by explicitely adding the include
directory for QtScript/QScriptEngine to libraries/shared/CMakeLists.txt
Likewise we get the compile error:
In file included from /opt/highfidelity/hifi/hifi/animation-server/../libraries/voxels/src/VoxelEditPacketSender.h:18:0,
from /opt/highfidelity/hifi/hifi/animation-server/src/AnimationServer.cpp:26:
/opt/highfidelity/hifi/hifi/animation-server/../libraries/voxels/src/VoxelDetail.h:15:34:
fatal error: QtScript/QScriptEngine: No such file or directory
which is fixed by added the include directory for QtScript/QScriptEngine
to animation-server/CMakeLists.txt
Finally, compile errors like
In file included from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjectorOptions.h:20:0,
from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjector.h:21,
from /opt/highfidelity/hifi/hifi/libraries/audio/src/AudioInjector.cpp:22:
/opt/highfidelity/hifi/hifi/assignment-client/../libraries/shared/src/RegisteredMetaTypes.h:17:34: fatal error: QtScript/QScriptEngine: No such file or directory
that requires to do the same in libraries/audio/CMakeLists.txt
2014-06-30 02:06:44 +02:00
Andrew Meadows
552efa3e91
remove warning: unused variables
2014-06-25 09:01:49 -07:00
ZappoMan
a019b70e58
Merge branch 'master' of https://github.com/worklist/hifi into experimentalStoreModel
...
Conflicts:
tests/octree/CMakeLists.txt
tests/octree/src/ModelTests.cpp
tests/octree/src/main.cpp
2014-06-24 15:59:17 -07:00
Andrew Meadows
df740dd82a
Fix bad static const inside class.
2014-06-23 14:07:09 -07:00
Andrew Meadows
e2204ab78e
friend foo --> friend class foo
2014-06-23 13:59:44 -07:00
Andrew Meadows
3e0673418f
more complete physics iteration for stability
2014-06-23 12:32:23 -07:00
Andrew Meadows
5e4d757e4e
merge upstream/master into andrew/ragdoll
2014-06-23 10:43:40 -07:00
Andrew Meadows
b50bf09c93
findPlaneCollisions() works in theory, not used
2014-06-23 10:39:50 -07:00
Andrew Meadows
8986be5f1c
remove old collideAgaintsOurself() code
2014-06-23 10:36:31 -07:00
Andrew Meadows
c1c2df5933
remove debug include
2014-06-23 08:53:58 -07:00
Andrew Meadows
b2ea8c0bf9
Compute more correct masses for ragdoll parts
...
also pin root ragdoll shape at the local-frame origin
for stability
2014-06-23 08:37:11 -07:00
Andrew Meadows
ea83a97b75
Add getVolume() method to Shape
2014-06-23 08:36:45 -07:00
Andrzej Kapolka
de0c45a919
Spanner mutation in test.
2014-06-20 18:09:51 -07:00
Andrew Meadows
dcd9d8871d
re-enabling some temporary debug stuff
2014-06-20 16:36:44 -07:00
Andrew Meadows
c17b8fdb60
collisions update shapes
...
VerletShapes keep pointers to VerletPoints (rather than to glm::vec3's)
VerletShapes compute lagrangian coefficients
VerletShapes send their movement accumulations to their VerletPoints
2014-06-20 16:31:39 -07:00
Andrew Meadows
c7ad3da47d
stubbery for processing collisions
...
PhysicsSimulation tells CollisionInfos to apply() themselves
CollisionInfo knows how to apply() itself to affected shapes
Shape gets _mass and some stubbed methods for accumulating movement
VerletPoint gets movement accumulator
2014-06-20 10:55:57 -07:00
Andrew Meadows
4a0ce7a9ae
support disabling collisions btw adjacent joints
2014-06-19 17:39:50 -07:00
Andrew Meadows
f0c2417206
Split PhysicsSimulation::stepForward() into parts
2014-06-19 15:50:16 -07:00
Andrew Meadows
716ae3e479
add MyAvatar's skeleton to its PhysicsSimulation
2014-06-19 12:32:17 -07:00
Andrew Meadows
828c365b25
more dtor cleanup of back pointers
2014-06-19 11:57:32 -07:00
Andrew Meadows
9950c5b209
remove entities in PhysicsSimulation dtor
2014-06-19 11:52:44 -07:00
Andrew Meadows
fbafcb6fd8
Fix distance constraint lengths
2014-06-19 11:46:09 -07:00
Andrew Meadows
2453e9c36a
build ragdoll constraints again
2014-06-19 10:31:55 -07:00
Andrew Meadows
5e74ee8c05
VerletPoint has position, lastPosition, and mass
2014-06-19 09:54:32 -07:00
Andrew Meadows
d3a78c9fc2
simulation step stubbed out
2014-06-19 09:14:36 -07:00
Andrew Meadows
a8c2003fe6
namechange SimulationEngine --> PhysicsSimulation
2014-06-19 08:34:12 -07:00
Andrew Meadows
7cd1f75282
PhysicalEntity gets backpointer to SimulationEngine
2014-06-18 20:47:57 -07:00
Andrew Meadows
c98631f820
merge upstream/master into andrew/ragdoll
2014-06-18 17:23:24 -07:00
Andrew Meadows
d4b5550cda
Skeleton now creates VerletShape
2014-06-18 17:22:39 -07:00
ZappoMan
28c7c24399
Merge branch 'master' of https://github.com/worklist/hifi into experimentalStoreModel
...
Conflicts:
libraries/octree/src/AABox.h
2014-06-18 15:27:36 -07:00
ZappoMan
c54bdb3e8d
Merge branch 'master' of https://github.com/worklist/hifi into experimentalStoreModel
2014-06-18 15:20:08 -07:00
Andrew Meadows
3791b4712b
adding some documentation about the VerletShapes
2014-06-18 14:17:12 -07:00
Andrew Meadows
96eebec0fc
unit tests for VerletShapes
2014-06-18 14:06:00 -07:00