Seth Alves
55028f6cb0
voxel data sent over wire and saved to json
2015-05-26 16:34:35 -07:00
Seth Alves
cdef502e2e
expose setVoxelSphere to js
2015-05-26 14:26:05 -07:00
Seth Alves
1ec384ab4d
allow QByteArray data to be sent with a length. Use appendRawData in places that used to append raw byte-arrays
2015-05-26 13:43:22 -07:00
Seth Alves
988ecf9d55
send PolyVox voxel dimensions and compressed data over the wire
2015-05-26 13:18:52 -07:00
Howard Stearns
bbdf9f1d9f
Remove changingEntityID.
2015-05-26 11:14:23 -07:00
ZappoMan
c4f96b09a2
sam's feedback on shared pointers in master
2015-05-26 09:55:28 -07:00
ZappoMan
c92e7bed87
andrews CR feedback
2015-05-26 09:44:02 -07:00
ZappoMan
5f6978a517
sam's CR feedback, more use of share_ptr<>
2015-05-26 09:41:51 -07:00
ZappoMan
d1520c5502
andrews CR feedback
2015-05-26 09:23:27 -07:00
Seth Alves
727f457f91
hook up RenderablePolyVoxEntityItem::findDetailedRayIntersection to polyvox library's version
2015-05-25 21:01:20 -07:00
Anthony Thibault
18d683bced
Particle entities should avoid resetting simulation when setMaxParticles is called.
...
This caused all particles to disappear when a network packet was received.
2015-05-25 12:22:38 -07:00
Howard Stearns
599886079d
Restore blank line for minimum diff.
2015-05-25 11:33:12 -07:00
Howard Stearns
4266a99d78
Put the javascript methods on Script, not Entities, and other minimum-diff cleanup.
2015-05-25 11:28:33 -07:00
Atlante45
3d7a834356
Ignore new entity dimensions if one of them is 0
2015-05-24 20:20:20 +02:00
Howard Stearns
b884d3cf90
Handle all the signals.
2015-05-24 09:57:12 -07:00
Howard Stearns
1dd2b7275e
Simpler and more uniform version that handles all the standard entity-script events.
2015-05-23 18:11:05 -07:00
Howard Stearns
277f5ef3a4
Working experimental first version.
2015-05-23 13:35:35 -07:00
ZappoMan
bcac50b362
verify that entityitem cleanup is happening correctly
2015-05-22 22:39:41 -07:00
ZappoMan
72ffd01920
more work on smart pointers
2015-05-22 22:39:37 -07:00
ZappoMan
9988f2d1cd
EnitityItem smart pointers
2015-05-22 22:38:02 -07:00
ZappoMan
76c5bd1ab7
verify that entityitem cleanup is happening correctly
2015-05-22 22:01:25 -07:00
ZappoMan
9fa9942861
more work on smart pointers
2015-05-22 21:45:57 -07:00
ZappoMan
8b78fc4190
EnitityItem smart pointers
2015-05-22 17:57:50 -07:00
Seth Alves
6c67d14fbc
experimenting with physics
2015-05-22 16:21:09 -07:00
Seth Alves
e702518041
adjust logic around timestamps used by entity-server to know if something was sent. adjust which physics variables are adjusted by a non-sim-owner packet
2015-05-22 16:11:29 -07:00
Seth Alves
ed082800f5
Merge branch 'master' of github.com:highfidelity/hifi into polyvox
2015-05-22 08:38:22 -07:00
Atlante45
f089143cf1
Merge branch 'master' of https://github.com/highfidelity/hifi into team-teaching
2015-05-22 17:16:51 +02:00
Eric Levin
fe99941de3
fixed problem with particle entities not showing up on other clients by adding properties to decodeEditEntityPacket and encodeEntityEditPacket methods in EntityItemProperties.cpp
2015-05-21 19:35:27 -07:00
Seth Alves
f85cc89946
clean up diff
2015-05-21 18:17:07 -07:00
Seth Alves
478cb40135
draws in the right place, now
2015-05-21 16:46:27 -07:00
Seth Alves
2cb73b5430
added a volex-volume size member variable. drawing transform still isn't quite right
2015-05-21 16:31:01 -07:00
Seth Alves
fe188f9a43
something draws, now
2015-05-21 10:42:14 -07:00
ZappoMan
c7fb8fab85
Merge branch 'master' of https://github.com/highfidelity/hifi into team-teaching-scene-api
2015-05-21 10:36:22 -07:00
Seth Alves
72e227eefe
Merge branch 'master' of github.com:highfidelity/hifi into polyvox
2015-05-21 09:55:14 -07:00
ZappoMan
ce81d9a817
fix merge issue
2015-05-20 19:30:44 -07:00
ZappoMan
e1c5c5b12e
Merge branch 'team-teaching' of https://github.com/highfidelity/hifi into team-teaching-scene-api
2015-05-20 18:42:54 -07:00
Seth Alves
d7ccd23b07
Merge branch 'master' of github.com:highfidelity/hifi into polyvox
2015-05-20 18:08:29 -07:00
Seth Alves
aa1d3eb82a
respond to code review
2015-05-20 17:31:57 -07:00
Seth Alves
782402b4c8
Merge branch 'master' of github.com:highfidelity/hifi into no-id-swap-redux
2015-05-20 14:53:05 -07:00
Seth Alves
4a59dc24c5
split entity-add and entity-edit messages
2015-05-20 14:52:03 -07:00
Seth Alves
124ff68cee
make EntityItemID a subclass of QUuid
2015-05-20 14:22:08 -07:00
Seth Alves
f522334c99
sort out script interface changes
2015-05-20 12:30:06 -07:00
Seth Alves
a769cfdaf2
client decides on new entity-ids, keep EntityItemID class
2015-05-20 10:42:19 -07:00
Ryan Huffman
6f69ed2561
Fix calculated dimensions of spotlight
...
The spotlights region of effect is the intersection of the spotlight
with radius r, and the sphere of radius r
2015-05-20 09:11:48 -07:00
Ryan Huffman
bb38b3eb3f
Update default light cutoff to PI / 2
2015-05-20 09:11:21 -07:00
Seth Alves
f2c1c43da3
polyvox code runs, no rendering yet
2015-05-20 08:44:41 -07:00
Seth Alves
4b263cf5c8
derieve PolyVox Entity from Model Entity
2015-05-19 21:40:05 -07:00
Seth Alves
4166c3224f
link polyvox library in with entities
2015-05-19 16:24:13 -07:00
Seth Alves
f9d46b0cb5
interface decides on entityIDs rather than bouncing a temporary id through the entity server
2015-05-19 14:25:23 -07:00
Atlante45
ede94e4248
Merge branch 'master' of https://github.com/highfidelity/hifi into remove_gl_transform
2015-05-18 11:39:17 +02:00
Andrew Meadows
180590145d
check for NULL before using pointer to EntityItem
2015-05-16 11:12:19 -07:00
Atlante45
4725d5e676
Merge branch 'primitives_batch' into remove_gl_transform
2015-05-16 05:22:12 +02:00
Seth Alves
bb3d1a6a58
rays never pick a line entity. some fixes to pointer.js
2015-05-15 13:10:16 -07:00
Atlante45
21d9ae7cf3
Transform compute + Magic numbers
2015-05-15 21:34:54 +02:00
Atlante45
c13ad83cc4
Rename getCenter by get CenterPosition
2015-05-15 18:34:28 +02:00
Atlante45
e5c3a93e54
Make sure get/set pos/rot/dim are inlined
2015-05-15 17:52:29 +02:00
Atlante45
92d4b08c38
Init _transform with correct values
2015-05-15 17:52:06 +02:00
Atlante45
d0cd18d6c0
Replace entities pos/rot/dim with transform
...
Removed _position, _rotation, _dimensions
Added Transform _transform
2015-05-15 17:35:24 +02:00
Andrew Meadows
53e241fb07
merge upstream/master into andrew/thermonuclear
2015-05-14 12:37:41 -07:00
Andrew Meadows
d28c400cea
add restitution and friction Entity properties
2015-05-14 12:36:59 -07:00
Andrew Meadows
81d06e0dc3
Merge upstream/master into andrew/nova
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/entities/src/EntityItemProperties.cpp
2015-05-14 10:09:55 -07:00
ZappoMan
0dcb89fce7
Merge branch 'master' of https://github.com/highfidelity/hifi into typeSafePropertyCleanup
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/entities/src/EntityItemProperties.cpp
2015-05-13 20:33:10 -07:00
Brad Hefta-Gaub
5da0a8d7a3
Merge pull request #4860 from howard-stearns/entity-sound
...
Entity sound.
2015-05-13 20:07:44 -07:00
ZappoMan
045c0141e8
Merge branch 'master' of https://github.com/highfidelity/hifi into typeSafePropertyCleanup
...
Conflicts:
libraries/entities/src/EntityItemProperties.cpp
2015-05-13 17:09:21 -07:00
Howard Stearns
dc2e923583
Ordering for packets.
2015-05-13 15:51:11 -07:00
Howard Stearns
1a87ca04da
Entity sound.
2015-05-13 13:18:02 -07:00
ZappoMan
b4f15304ba
standardize COPY_PROPERTY_FROM_QSCRIPTVALUE for vec3, quat, and color
2015-05-13 13:12:47 -07:00
ZappoMan
4fecd33115
use new macros in Line entity
2015-05-13 12:38:11 -07:00
ZappoMan
095b7701d8
Merge branch 'master' of https://github.com/highfidelity/hifi into typeSafePropertyCleanup
2015-05-13 12:12:12 -07:00
ZappoMan
f28ca90ac5
clean up COPY_GROUP_PROPERTY_FROM_QSCRIPTVALUE to be type safe
2015-05-13 09:38:49 -07:00
Brad Davis
a8d343bbf1
Working on web entities
2015-05-13 00:27:57 -07:00
Andrew Meadows
7e9e223b3e
merge upstream/master into andrew/nova
2015-05-12 21:48:55 -07:00
Andrew Meadows
4872a565c9
bid for simulation ownership
2015-05-12 21:46:52 -07:00
Andrew Meadows
45d4fa91ab
add a TODO comment
2015-05-12 21:46:04 -07:00
Andrew Meadows
2165d18c05
don't copy simulatorID from script value
2015-05-12 21:45:36 -07:00
Brad Davis
e9b83e1c02
Working on web entities
2015-05-12 21:15:54 -07:00
ZappoMan
8d731b15ee
some warning fixes
2015-05-12 17:21:59 -07:00
ZappoMan
8169d82141
consolidate COPY_PROPERTY_TO_QSCRIPTVALUE and COPY_GROUP_PROPERTY_TO_QSCRIPTVALUE to be type safe
2015-05-12 17:13:20 -07:00
ZappoMan
67df6e3c62
make READ_ENTITY_PROPERTY_TO_PROPERTIES() type safe
2015-05-12 16:24:16 -07:00
ZappoMan
98474376de
consolidate READ_ENTITY_PROPERTY() macros into single typesafe version
2015-05-12 15:59:45 -07:00
Brad Davis
8c4f802dbf
Merge remote-tracking branch 'upstream/master' into web-entity
...
Conflicts:
libraries/entities/src/EntityItemProperties.h
libraries/entities/src/EntityTypes.h
2015-05-12 15:56:02 -07:00
Brad Davis
745182a963
Working on web entities
2015-05-12 14:39:54 -07:00
ZappoMan
83d212861d
make APPEND_ENTITY_PROPERTY type safe
2015-05-12 11:41:04 -07:00
Seth Alves
f647db3bf0
Merge branch 'master' of github.com:highfidelity/hifi into line-entity
2015-05-12 11:36:56 -07:00
ZappoMan
c81f6dc69c
fix particle properties
2015-05-12 11:03:16 -07:00
Seth Alves
38caed00ca
Attempt to draw line entity item
2015-05-12 10:25:50 -07:00
Brad Hefta-Gaub
cbaa503934
Merge pull request #4838 from Atlante45/quiet_compiler
...
Quiet compiler
2015-05-12 08:57:57 -07:00
Brad Hefta-Gaub
4d9e413b3f
Merge pull request #4820 from hyperlogic/ajt/particle-system-improvements
...
Improvements to particle entity.
2015-05-12 08:40:11 -07:00
Atlante45
00864afe53
Quiet compiler
2015-05-12 17:06:40 +02:00
Seth Alves
4881b0c53c
copy box to make a new type of line entity item
2015-05-11 19:25:14 -07:00
Anthony Thibault
e1cbfcd901
Merge branch 'master' into ajt/particle-system-improvements
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
libraries/networking/src/PacketHeaders.h
2015-05-11 19:24:13 -07:00
Anthony Thibault
b3af515224
Particle entity improvements based on code review.
...
* Updated variable naming to match coding standards.
* Changed particle raw float arrays to vectors.
* Bug fix: changing maxParticles will no longer lead to memory corruption.
* Made particle ring buffer more explicit, added _particleTailIndex.
* Added getLivingParticleCount() private method.
* Moved integration and bounds code into private methods.
* Bug fix: high emit rates now properly integrate particles forward for the
remaing frame time, not the entire frame.
* Bug fix: new particles were not initiaized to origin.
* Added more particles to ajt-test.js.
* Bug fix: ajt-test.js script was not shutting down properly.
* Removed random seed, unless we have a psudo random number generator per
particle system instance, it's unlikely that this will preserve sync.
* Bumped packet version number.
2015-05-11 19:21:33 -07:00
ZappoMan
73428ec12d
add support to not displace very large clipboards on import
2015-05-11 14:21:58 -07:00
Clément Brisset
5160eb5b94
Merge pull request #4819 from ZappoMan/moreZoneProperties
...
More Zone Atmosphere Work: add automatic day/hour calculation
2015-05-11 19:38:27 +02:00
Clément Brisset
421ebeb3d7
Merge pull request #4795 from birarda/sequence-numbers
...
add sequence number support to NL, don't double send data from AvatarMixer
2015-05-11 19:23:33 +02:00
Anthony J. Thibault
ede42285b1
Improvements to particle entity.
...
* Changed particle geometry to billboarded quads
* Added texture support
* Added ajt-test.js particle test script.
* GeometryCache support for batched quads with texCoords.
* Bug fix for infinite loop if _lifetime was very large.
* Don't reset the simulation on animation loop.
* stop emitting particles on animation stop, but keep simulating until there are no more living particles.
* Removed some trailing whitespace
2015-05-10 17:13:46 -07:00
ZappoMan
17c3c1a18d
add support for automatic hour/day calculations and backward compatibility on stage properties
2015-05-10 15:22:02 -07:00
ZappoMan
0b6a815a20
moved zone stage properties into a group
2015-05-08 20:17:01 -07:00
Andrew Meadows
289dcb0e7f
only set ACTIVATE flag on non-zero velocity
2015-05-08 15:39:45 -07:00
ZappoMan
e8f43c7f4b
set default atmosphere properties to match the default atmosphere
2015-05-08 10:03:24 -07:00
Stephen Birarda
305835ea79
Merge branch 'master' of https://github.com/highfidelity/hifi into sequence-numbers
2015-05-07 15:38:35 -07:00
Andrew Meadows
1879a67804
cleanup
2015-05-07 14:42:09 -07:00
Philip Rosedale
b7b62c8d42
Merge pull request #4772 from AndrewMeadows/nova
...
PhysicsEngine cleanup in preparation for collidable avatars
2015-05-07 14:33:35 -07:00
ZappoMan
20fe43c852
wire up new zone properties, fix bug in group proprties decode
2015-05-07 13:05:00 -07:00
Seth Alves
f52747d8c1
re-enable code that ignores old packets
2015-05-07 11:53:57 -07:00
Seth Alves
d52a45b57e
Merge branch 'master' of github.com:highfidelity/hifi into dice-on-table-1
2015-05-07 11:30:46 -07:00
Andrew Meadows
f0618501dd
fix non-physical kinematic motion
...
also can set objects collisionless again
2015-05-07 11:29:42 -07:00
Atlante45
faabf29e84
Merge branch 'master' of https://github.com/highfidelity/hifi into display_zones
2015-05-07 19:58:26 +02:00
ZappoMan
496da6fcd5
wire up the skybox color property to the new skybox renderer
2015-05-06 20:36:06 -07:00
Andrew Meadows
00c6944125
merge
2015-05-06 17:49:18 -07:00
Andrew Meadows
411bf1a35c
fix for entity-server kinematic simulation
2015-05-06 17:48:10 -07:00
Seth Alves
5ac8558168
flash yellow box when transmitting an edit packet
2015-05-06 17:03:27 -07:00
Seth Alves
c63b8a93ec
oops fix endless loop
2015-05-06 15:48:45 -07:00
Seth Alves
4c3cbea261
don't auto-remove simulation owner unless the Node is gone. put back code that causes interfaces to give up ownership
2015-05-06 15:32:02 -07:00
Seth Alves
86ec12b22c
don't increase moving-without-simulator counter unless the thing is moving enough
2015-05-06 14:30:45 -07:00
Andrew Meadows
6e6fec158d
split ignore/activation thresholds for updates
2015-05-06 11:47:33 -07:00
ZappoMan
f2ebb6e821
fix output of group names to be lowercase
2015-05-06 11:30:41 -07:00
Andrew Meadows
e61470517c
track all entities added to simulation
2015-05-06 11:01:16 -07:00
Stephen Birarda
5b1514a390
Merge branch 'master' of https://github.com/highfidelity/hifi into sequence-numbers
2015-05-06 10:12:17 -07:00
Atlante45
8de5e636bb
Bit of cleanup
2015-05-06 17:39:18 +02:00
Seth Alves
4a7fe50084
Merge branch 'master' of github.com:highfidelity/hifi into dice-on-table-1
2015-05-05 16:43:43 -07:00
Seth Alves
c35edd8eb4
some debugging on Andrew's refactor
2015-05-05 16:40:10 -07:00
ZappoMan
0cb14650b6
added skybox group properties to zones
2015-05-05 14:12:02 -07:00
Seth Alves
1cd93b9ec8
pull andrew's branch, add back in visual indicator of an entity being active in bullet
2015-05-05 13:14:22 -07:00
Seth Alves
8aafce6382
Merge branch 'nova' of github.com:AndrewMeadows/hifi into dice-on-table-1
2015-05-05 12:53:28 -07:00
ZappoMan
5fc5df7c55
change skyboxMode to backgroundMode
2015-05-05 12:38:44 -07:00
Stephen Birarda
6b3cf1ba4a
remove dependency of PacketHeaders on NodeList
2015-05-05 12:19:42 -07:00
Andrew Meadows
25ff9e4b59
fix warning about order of ctor initialization
2015-05-05 10:27:48 -07:00
Andrew Meadows
aa5a59c3dc
merge upstream/master into andrew/nova
...
Conflicts:
libraries/entities/src/EntityItem.cpp
libraries/physics/src/PhysicsEngine.cpp
2015-05-05 10:24:17 -07:00
Andrew Meadows
6be3cc6efb
remove debug stuff
2015-05-05 10:18:03 -07:00
Andrew Meadows
d5f4c5a0ef
add/delete/cleanup of physical entities works
2015-05-05 10:10:08 -07:00
ZappoMan
4b9c6728e7
fix issue with skyboxMode getting randomly set
2015-05-04 18:58:35 -07:00
ZappoMan
77232e35f8
Merge branch 'master' of https://github.com/highfidelity/hifi into atmosphereInZones
2015-05-04 17:16:33 -07:00
ZappoMan
3f8c52cdd4
attempt to fix unix build buster
2015-05-04 16:36:38 -07:00
ZappoMan
32ef0c2010
removed some dead code
2015-05-04 15:49:21 -07:00
ZappoMan
403ed6d77b
wire up sunlocation from keylight direction
2015-05-04 15:20:16 -07:00
ZappoMan
741323e6c1
wire up atmosphere.hasStars property
2015-05-04 14:19:13 -07:00
ZappoMan
4561c59203
wire up zone to environment atmosphere rendering
2015-05-04 13:49:43 -07:00
ZappoMan
8c47736c3b
add skybox mode property
2015-05-04 11:41:03 -07:00
ZappoMan
78f7870cbb
more tweaks to atmosphere properties
2015-05-04 11:13:05 -07:00
Stephen Birarda
6cff75f7c1
resolve conflicts on merge with upstream/master
2015-05-04 10:05:44 -07:00
Andrew Meadows
35ed755b13
make EntityItem::getID() const
2015-05-03 09:26:28 -07:00
Philip Rosedale
0f22b9beb8
Merge pull request #4741 from sethalves/box-stacking-1
...
move common debugging rendering into a new class
2015-05-02 00:34:44 -07:00
ZappoMan
7ae5ed1aaf
next pass at atmosphere properties
2015-05-01 17:48:09 -07:00
Brad Hefta-Gaub
417810c683
Merge pull request #4744 from huffman/show-zone-boundaries
...
Add draw zone boundaries bool
2015-05-01 17:34:15 -07:00
Stephen Birarda
edade7baba
resolve conflicts on merge with upstream master
2015-05-01 16:24:16 -07:00
Andrew Meadows
3c9474b736
non-phys kinematic objs move to EntitySimulation
...
out of SimpleEntitySimulation
2015-05-01 13:43:50 -07:00
Ryan Huffman
8ed5284dfa
Add drawZoneBoundaries get/set to EntitiesScriptingInterface
2015-05-01 12:52:59 -07:00
Ryan Huffman
51c2a8273e
Add drawZoneBoundaries
2015-05-01 12:52:40 -07:00
ZappoMan
2128b7499e
first cut at adding atmosphere properties to zones
2015-05-01 12:10:12 -07:00
Seth Alves
6139fc0d73
Merge pull request #4738 from huffman/entity-naming
...
Add 'name' property to entities
2015-05-01 11:58:30 -07:00
Ryan Huffman
c506c36d7c
Fix initialized-out-of-order warnings for name property
2015-05-01 11:26:43 -07:00
Andrew Meadows
c2d614b884
remove _movableButStoppedEntities
2015-05-01 11:19:01 -07:00
Seth Alves
3765ace7ef
move common debugging rendering into a new class
2015-05-01 11:17:46 -07:00
Andrew Meadows
3031d55c8e
merge upstream/master into andrew/nova
2015-05-01 11:03:51 -07:00
Andrew Meadows
b023fe582a
make things compile
2015-05-01 10:44:50 -07:00
Andrew Meadows
31ca5b9eef
add EntityTree::_pendingDelete for delayed deletes
...
for case where EntitySimuation needs time to remove pointers
2015-05-01 10:43:58 -07:00
Stephen Birarda
94739cf8d3
move number constants out of SharedUtil to NumericalConstants
2015-05-01 10:26:53 -07:00
Ryan Huffman
b49a04c638
Add name property to entities
2015-05-01 08:40:24 -07:00
Andrew Meadows
9f8b266a03
fix some compile problems
2015-04-30 13:56:37 -07:00
Andrew Meadows
195dd1420c
DIRTY_PHYSICS_ACTIVATION not DIRTY_PHYSICS_NO_WAKE
...
also add separate flag for rotation
and separate flags for linear vs angular velocity
and some combined flag masks for convenience
2015-04-30 13:17:13 -07:00
Andrew Meadows
c3901939e6
make some things compile after reorganization
2015-04-30 13:02:18 -07:00
Seth Alves
f75b599288
don't save default values in json file
2015-04-30 11:28:27 -07:00
Andrew Meadows
9c5f51917a
declare EntitySimulation::getEntitiesToDelete()
2015-04-29 16:26:46 -07:00
Andrew Meadows
c0a5753317
PhysicalEntitySimulation sends outgoing packets
2015-04-28 17:12:29 -07:00
Andrew Meadows
2f9306ee77
SimpleEntitySimulation abides to new API
2015-04-28 16:28:03 -07:00
Andrew Meadows
14b6ee608a
more PhysicalEntitySimulation implementation
...
with changes to API's accordingly (does not compile yet)
2015-04-28 15:07:37 -07:00
Seth Alves
6f441e3490
if our Node isn't allowed to create entities in this domain, don't try.
2015-04-27 19:07:53 -07:00
Andrew Meadows
72deb2e49b
merge upstream/master into andrew/thermonuclear
...
Conflicts:
libraries/entities/src/EntityItem.h
libraries/physics/src/EntityMotionState.cpp
2015-04-27 12:54:21 -07:00
Seth Alves
2cdbe8bf7b
merge from upstream
2015-04-27 09:57:36 -07:00
Seth Alves
e007617112
hook up menu-items to control debug rendering of collision hulls and owned simulations
2015-04-27 09:56:24 -07:00
Seth Alves
26511575c2
Merge branch 'master' of github.com:highfidelity/hifi into detect-ballistic
2015-04-27 06:44:59 -07:00
Andrew Meadows
b760a03360
pass arguments by const reference
2015-04-26 15:24:00 -07:00
Seth Alves
d1d4b0f0ee
merge from upstream
2015-04-25 12:50:00 -07:00
Seth Alves
0fb1a83e3b
quiet compiler, remove some trailing control-Ms
2015-04-25 09:20:00 -07:00
Atlante45
ba507cef98
Fix a few warnings
2015-04-25 11:01:02 +02:00
Seth Alves
ac46f84291
cleanups
2015-04-24 18:36:41 -07:00
Seth Alves
03706359f5
cleanups
2015-04-24 17:44:52 -07:00
Seth Alves
218393a2b3
rather than keeping track of previous pos/rot sent by server, use a new flag that indicates that the values should be updated in the physics engine, but that the object should not be woken
2015-04-24 17:37:19 -07:00
Seth Alves
6e6793cbcc
remove debugging prints
2015-04-24 15:18:02 -07:00
Andrew Meadows
3ecf959b3e
removed cached copies of damping and restitution
2015-04-24 14:50:37 -07:00
Seth Alves
fea8d84618
sync
2015-04-24 14:09:10 -07:00
Seth Alves
ad85837b5a
sync
2015-04-24 13:44:34 -07:00
Seth Alves
a27f8f3f10
sync
2015-04-24 11:28:44 -07:00
Seth Alves
926694517f
sync
2015-04-24 11:07:45 -07:00
Seth Alves
b40e78311b
disable hack to notice that the server is sending the same thing repeatedly
2015-04-24 11:00:06 -07:00
Seth Alves
1b84be6e10
attempting to have visual indicator of simulatorID
2015-04-24 10:55:43 -07:00
Seth Alves
c2422c2382
Merge branch 'master' of github.com:highfidelity/hifi into detect-ballistic
2015-04-24 09:29:26 -07:00
Brad Hefta-Gaub
22ff2ba1b8
Merge pull request #4687 from Atlante45/zone_shape_edit_js
...
Zone ShapeType/CompoundShapeURL in edit.js
2015-04-24 09:08:56 -07:00
Atlante45
a26d9ef353
Fix ShapeType/String conversion
2015-04-24 16:49:18 +02:00
Atlante45
fff8b99d10
Fix keylight color
...
Was an integer division producing a float
2015-04-24 15:31:25 +02:00
Seth Alves
cf0499e671
various physics-related experiments
2015-04-23 21:07:04 -07:00
Andrew Meadows
0daaf20f01
Merge pull request #4675 from sethalves/detect-ballistic
...
Detect ballistic motion + fix up simulation-owner code + fix up EntityItem constructor
2015-04-23 14:19:51 -07:00
ZappoMan
5dddca37ca
fix default shape of zones
2015-04-23 13:44:39 -07:00
Seth Alves
bc65616bb3
Merge branch 'master' of github.com:highfidelity/hifi into detect-ballistic
2015-04-23 13:09:22 -07:00
Atlante45
0b1d4fb1d6
Merge branch 'master' of https://github.com/highfidelity/hifi into zones
2015-04-23 21:16:11 +02:00
Brad Hefta-Gaub
945433be28
Merge pull request #4678 from sethalves/fix-pile-at-origin
...
don't pile things up at the origin during a load
2015-04-23 11:40:46 -07:00
Atlante45
b776ea8110
Make ::contains() back into a const
2015-04-23 19:15:06 +02:00
Seth Alves
c21e06e7a7
don't pile things up at the origin during a load
2015-04-23 10:08:59 -07:00
Atlante45
83490051d9
Move shape related contains() to ShapeInfo
2015-04-23 18:55:20 +02:00
Ryan Huffman
e0d4a0b1e1
Add functionality to turn zone picking off
2015-04-23 09:36:41 -07:00
Atlante45
51d99da29f
Magic number
2015-04-23 17:50:26 +02:00
Atlante45
f494f86ee5
Handle registration point in transforms
2015-04-23 17:48:29 +02:00
Atlante45
bda72025af
Check mesh extend before going through triangles
2015-04-23 16:40:40 +02:00
Atlante45
d18229d52d
Merge branch 'master' of https://github.com/highfidelity/hifi into zones
2015-04-23 15:58:57 +02:00
Atlante45
15482d6a57
Don't compute shape for zones
2015-04-23 15:21:51 +02:00
Atlante45
fb4d1d3557
Fix compoundShapeURL reseting shapeType
2015-04-23 14:24:20 +02:00
Atlante45
f117941c8d
Macro fixing
2015-04-23 13:25:14 +02:00
Atlante45
01f4f34911
Centralize contains standard cases
2015-04-23 13:04:59 +02:00
Atlante45
837a0d3ba8
rename collision model in edit.js
2015-04-23 12:13:52 +02:00
Atlante45
3ebe72f025
Fix read macro
2015-04-23 12:12:42 +02:00
Seth Alves
9e96026c52
move _accelerationNearlyGravityCount and _shouldClaimSimulationOwnership from EntityItem to EntityMotionState
2015-04-22 21:36:36 -07:00
Seth Alves
d51f5a0ae8
remove commented out code
2015-04-22 17:22:37 -07:00
Seth Alves
5a7f8a2f5a
git rid of unneeded bump code. re-indent billiards.js and rez in balls with some y velocity so they fall to the table
2015-04-22 17:06:21 -07:00
Seth Alves
96b4517e6e
when removing something from bullet, attempt to wake up anything that was touching it
2015-04-22 16:05:31 -07:00
Seth Alves
07a848c9ce
added bump call in physics engine for when an entity is deleted and may have something resting on top of it
2015-04-22 15:50:39 -07:00
Seth Alves
7781808bea
remove debug prints, fix a comment
2015-04-22 15:25:09 -07:00
Seth Alves
3450597d70
remove some debugging prints
2015-04-22 15:03:23 -07:00
Seth Alves
92ceff1a03
clean up EntityItem constructors
2015-04-22 14:53:23 -07:00
Seth Alves
cd3ee39fcc
experimenting
2015-04-22 13:42:04 -07:00
ZappoMan
fb4e334c70
implement volume priority for zones
2015-04-22 12:38:34 -07:00
Atlante45
9cec256142
Rename collisionModelURL members/methods
2015-04-22 21:16:09 +02:00
Atlante45
7f3be9c89b
Add shapeType/compoundShapeURL to ZoneEntities
2015-04-22 21:14:10 +02:00
Atlante45
b446644549
Rename CollisionModelURL handle
2015-04-22 21:03:56 +02:00
Atlante45
8db9f80779
Reimplements "contains" for sphere and particles
2015-04-22 21:03:55 +02:00
Atlante45
dbf40afa47
Remove deprecated "*InDomainUnit" getter/setter
2015-04-22 21:03:55 +02:00
Seth Alves
3f705f3172
keep track of the number of simulation steps each entity has been accelerated at nearly its gravity. if we get 4 in a row, start sending acceleration equal to gravity to the entity server, so it will include gravity in its estimates
2015-04-22 10:39:13 -07:00
Seth Alves
e334c456ea
add a place to keep track of the number of simulation steps where acceleration was close to gravity for a given Entity
2015-04-22 10:13:13 -07:00
ZappoMan
19386d5a5d
Merge branch 'master' of https://github.com/highfidelity/hifi into ZoneEntity2
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
libraries/networking/src/PacketHeaders.h
2015-04-22 09:35:08 -07:00
Seth Alves
cde64893af
coding standard
2015-04-21 18:36:06 -07:00
ZappoMan
486ab044a0
use piggyback properties to save on property bit space
2015-04-21 15:16:46 -07:00
ZappoMan
4ce451f984
wire up zone rendering again
2015-04-21 14:55:45 -07:00
ZappoMan
e436c95212
first cut at reworking zones
2015-04-21 14:36:13 -07:00
ZappoMan
8ce4cb628a
another attempt at zones starting from box
2015-04-20 18:18:01 -07:00
ZappoMan
a9c2a6e048
another attempt at zones starting from box
2015-04-20 18:17:21 -07:00
Seth Alves
c49e2c1804
cleanups, diff minimization
2015-04-20 16:52:29 -07:00
Seth Alves
4a5631fca6
cleanups, diff minimization
2015-04-20 16:51:28 -07:00
Seth Alves
6107682658
handle ignoring simulation data echoed back to us differently
2015-04-20 16:36:56 -07:00
Seth Alves
d6c8bd94cf
clean up some debugging prints
2015-04-20 15:59:33 -07:00
Seth Alves
56b005a872
packets should be ignore if they contain local nodeID, not if local entity contains nodeID
2015-04-20 12:19:36 -07:00
Seth Alves
08d300afcd
use a flag to indicate that simulation ownership should be grabbed
2015-04-20 11:49:10 -07:00
Seth Alves
adfc82e169
remove commented-out code
2015-04-17 15:10:34 -07:00
Seth Alves
dac57c44da
if measured acceleration is close to zero, send zero to entity server, else send gravity
2015-04-17 15:05:47 -07:00
Seth Alves
d90dec066c
if an entity has no simulatorID, pull it out of list of entities with simulatorIDs
2015-04-17 11:12:13 -07:00
Seth Alves
32ced31f60
adjust logic related to claiming and releasing simulation ownership during scripted changes to entities
2015-04-17 10:57:00 -07:00
Seth Alves
3da2d1680d
fix code that causes scripted changes to physics-related entity properties to claim simulation ownership
2015-04-17 10:41:11 -07:00
Seth Alves
deec577db6
if nodes are fighting over phyics variables, squash physics-related properties in the updates from the loser of the race
2015-04-17 10:21:52 -07:00
Seth Alves
c69aaa806b
if a uuid is null, don't send a uuid of all zeros
2015-04-17 09:55:49 -07:00
Seth Alves
f77038c52d
when ignoring an incoming packet, still read it so the data-stream pointer doesn't get screwed up
2015-04-17 09:37:48 -07:00
Seth Alves
f48f9caea4
cut back on debuging prints
2015-04-16 16:18:13 -07:00
Seth Alves
1484d6e37f
fix READ_ENTITY_PROPERTY_UUID_TO_PROPERTIES to use binary version
2015-04-16 16:10:01 -07:00
Seth Alves
3b2a15f76a
more debugging
2015-04-16 15:52:48 -07:00
Seth Alves
ea8dcfa5b5
read UUIDs as UUIDs rather than as strings. more debugging prints
2015-04-16 15:33:43 -07:00
Seth Alves
d7881f1891
adjust logic for releasing ownership of simulation
2015-04-16 15:15:28 -07:00
Seth Alves
d7059d8f2d
add code for uuids in wire protocol. some debugging prints
2015-04-16 14:46:38 -07:00
Andrew Meadows
94c6053d52
fix formatting
2015-04-16 12:15:03 -07:00
Seth Alves
b30b9a0a30
don't update _simulatorIDChangedTime unless the value is different than the current one. if a script changes an entity, attempt to claim ownership
2015-04-16 12:03:34 -07:00
Seth Alves
df37b853f7
setup test of lockout-period oafter simulator-owner-id change
2015-04-16 08:57:57 -07:00
Seth Alves
6c4d232ad9
respond to code review
2015-04-15 16:08:15 -07:00
Seth Alves
e3a90b80a4
fix typo in comment
2015-04-15 16:04:18 -07:00
Seth Alves
62b59b7ccc
remove uneeded debug print
2015-04-15 11:02:12 -07:00
Seth Alves
afca5440f0
entity-server will automatically clear simulation-owner ID if it doesn't get an update for 2 seconds
2015-04-15 10:58:56 -07:00
Seth Alves
e5db2380bf
Merge branch 'bispinor' of github.com:AndrewMeadows/hifi into acceleration-and-owner-in-wire-protocol
2015-04-14 15:44:59 -07:00
Seth Alves
2a87eb9ce1
pull from andrew's branch
2015-04-14 15:44:53 -07:00
Andrew Meadows
aec42cf2dc
enforce ShapeType agreement for ModeEntityItem
2015-04-14 15:39:49 -07:00
Andrew Meadows
5b81b5b11b
removing SHAPE_TYPE_CONVEX_HULL from entities lib
2015-04-14 14:56:32 -07:00
Seth Alves
3cf31ff701
fix to allow modelEntityItems with shape of box into physicsengine. ignore entity updates echoed back to us. stop broadcasting after 3 non-moving updates
2015-04-14 13:32:02 -07:00
Seth Alves
b5bfbba759
only set simulationID on scripted entity creation if the entity has velocity or rotation
2015-04-14 10:17:54 -07:00
Seth Alves
d330319ed9
when a script creates and object, set the local Node as the simulation owner
2015-04-14 09:56:39 -07:00
Seth Alves
f7c0637952
oops
2015-04-13 16:51:05 -07:00
Seth Alves
cf6259c5d7
turn down debugging
2015-04-13 16:41:38 -07:00
Seth Alves
a30e807051
get rid of unneeded updateSimulatorID, set changed simulator id in properties so it gets included in outgoing packet
2015-04-13 16:20:30 -07:00
Seth Alves
396f6b1987
mess with debugging prints
2015-04-13 15:22:54 -07:00
Seth Alves
9c2fec36fd
adjust debugging, try a different DIRTY flag
2015-04-13 12:52:31 -07:00
Seth Alves
f42a43e180
cause changes to _simulatorID to be broadcast
2015-04-13 12:39:40 -07:00
Seth Alves
f44f823649
Merge branch 'master' of github.com:highfidelity/hifi into acceleration-and-owner-in-wire-protocol
2015-04-13 10:45:07 -07:00
Andrew Meadows
e9159304d2
Merge pull request #4617 from sethalves/acceleration-and-owner-in-wire-protocol
...
Acceleration and owner in wire protocol
2015-04-10 09:07:47 -07:00
Seth Alves
b472edbebb
remove debug print for something that no longer exists
2015-04-09 09:26:14 -07:00
Atlante45
298a81cea9
Trim entity properties set from JS that are strings
2015-04-09 14:42:26 +02:00
Seth Alves
62ff8bf735
set PROP_LAST_ITEM automatically
2015-04-08 17:07:20 -07:00
Seth Alves
51a0fdf3d4
formatting
2015-04-08 15:43:49 -07:00
Seth Alves
1dd01cde00
expand svo to hold acceleration and id of current simulator node
2015-04-08 15:39:34 -07:00
Seth Alves
9014397167
try again without macro
2015-04-07 09:59:04 -07:00
Seth Alves
d4461f1ecb
put avatars and embedded-webserver and entities logging into their own QLoggingCategory
2015-04-06 16:22:54 -07:00
Clément Brisset
efbd74f539
Merge pull request #4597 from huffman/light-overlays
...
Light overlays
2015-04-06 16:02:44 +02:00
Ryan Huffman
5fd960fb43
Add entity light cutoff/dimensions constraints
2015-04-03 15:32:53 -07:00
Andrew Meadows
abd78fede5
fix: change of dimensions would not update physics
2015-04-03 15:11:57 -07:00
ZappoMan
45ab438339
add logging for delete operations in the server
2015-04-02 16:44:04 -07:00
ZappoMan
84940d8e43
fix SVO import
2015-04-02 14:13:19 -07:00
Seth Alves
4e83301c65
add a bool value to Node which indicates if it is allowed to rez new entities
2015-03-31 18:27:46 -07:00
ZappoMan
df99c314aa
fix issue with preload not being called on import
2015-03-31 12:44:44 -07:00
Seth Alves
186cb1ec7a
merge from upstream
2015-03-30 11:28:47 -07:00
Philip Rosedale
685de8cc7f
Merge pull request #4522 from huffman/rename-attribution
...
Rename attribution to marketplaceID
2015-03-30 10:57:28 -07:00
ZappoMan
a765b4c8a5
fix to preload getting called when you change a script
2015-03-27 18:56:55 -07:00
Ryan Huffman
81cb1e98ba
Rename attribution to marketplaceID
2015-03-27 13:35:58 -07:00
Seth Alves
212f564131
Merge branch 'master' of github.com:highfidelity/hifi into multi-hull-collisions
2015-03-26 13:08:44 -07:00
Seth Alves
a3a54e8d7d
style
2015-03-25 15:21:36 -07:00
Seth Alves
dccedeadff
diff minimization
2015-03-24 16:59:12 -07:00
Seth Alves
2f47f7c7ba
diff minimization
2015-03-24 16:51:42 -07:00
Seth Alves
8d2c942509
diff minimization
2015-03-24 16:38:11 -07:00