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
Seth Alves
1eeb2e89f8
remove some debug spam
2015-03-24 16:23:51 -07:00
Seth Alves
6e3be26013
attempting to figure out why physics motion object doesn't get updated when collision model url changes
2015-03-24 15:28:21 -07:00
Atlante45
3563efb584
extra ;
2015-03-24 21:52:53 +01:00
Seth Alves
c8ad82917e
clean up some debugging spew. take dimensions into account when scaling points used for collision hull creation
2015-03-23 16:54:36 -07:00
ZappoMan
81bf7138a4
also attempt to clean up placement of PROP_ATTRIBUTION in the stream
2015-03-20 13:21:29 -07:00
ZappoMan
ad833b76c8
fix PROP index mismatch
2015-03-20 11:43:01 -07:00
Atlante45
0a3d936427
Merge branch 'master' of https://github.com/highfidelity/hifi into attribution_property
2015-03-20 17:28:32 +01:00
Atlante45
63c51673de
Move PROP_COLLISION_MODEL_URL to the right spot
2015-03-20 17:28:00 +01:00
Atlante45
cbef6e546f
Fix emun placement
2015-03-19 17:25:53 +01:00
Atlante45
d3ae7cf5cf
Merge branch 'master' of https://github.com/highfidelity/hifi into attribution_property
2015-03-19 16:25:26 +01:00
Seth Alves
9161cc8b83
attempt to handle collision models in the same way as render models
2015-03-18 13:00:09 -07:00
Andrew Meadows
517b2648ca
Merge pull request #4465 from sethalves/avatars-can-collide
...
One convex hull shape for models that provide decomposition data.
2015-03-18 12:52:52 -07:00
Atlante45
8b5ade10b8
Initial add of the Attribution property
2015-03-18 18:57:05 +01:00
Seth Alves
906f082a2a
Merge branch 'master' of github.com:highfidelity/hifi into avatars-can-collide
2015-03-18 09:11:35 -07:00
Brad Hefta-Gaub
a5294ae3fa
Merge pull request #4436 from sethalves/persist-entities-as-json
...
Optionally persist entities as json
2015-03-17 21:53:17 -07:00
Seth Alves
2dd75fef2c
remove some unneeded Q_OBJECT macros, diff minimization
2015-03-17 19:12:26 -07:00
Seth Alves
f9be7dda36
bump shape stuff from ModelEntityItem down to RenderableModelEntityItem
2015-03-17 18:55:13 -07:00
Seth Alves
3a126d4840
ModelEntityItem doesn't need to be a QObject
2015-03-17 16:15:55 -07:00
Seth Alves
42122a0bee
EntityItem doesn't need to be a QObject
2015-03-17 15:56:58 -07:00
Seth Alves
5475e76516
merge from upstream
2015-03-17 14:16:00 -07:00
Seth Alves
069c358aa3
Work around a deadlock:
...
thread 15 locks Octree
thread 1 blocks waiting for Octree lock
thread 15 tries to pass a message to thread 1 with QMetaObject::invokeMethod, and hangs
thread 15 is blocked on qt message passing to thread 1
ResourceCache::getResource libraries/networking/src/ResourceCache.cpp:57
GeometryCache::getGeometry libraries/render-utils/src/GeometryCache.cpp:1774
ModelEntityItem::isReadyToComputeShape libraries/entities/src/ModelEntityItem.cpp:431
PhysicsEngine::addEntityInternal libraries/physics/src/PhysicsEngine.cpp:67
EntitySimulation::addEntity libraries/entities/src/EntitySimulation.cpp:129
EntityTree::postAddEntity libraries/entities/src/EntityTree.cpp:91
^ locks simulation
EntityTreeElement::readElementDataFromBuffer libraries/entities/src/EntityTreeElement.cpp:773
Octree::readElementData libraries/octree/src/Octree.cpp:301
Octree::readElementData libraries/octree/src/Octree.cpp:354
...
Octree::readBitstreamToTree libraries/octree/src/Octree.cpp:439
OctreeRenderer::processDatagram libraries/octree/src/OctreeRenderer.cpp:136
^ lockForWrite Octree::_lock
OctreePacketProcessor::processPacket interface/src/octree/OctreePacketProcessor.cpp:91
ReceivedPacketProcessor::process libraries/networking/src/ReceivedPacketProcessor.cpp:51
thread 1 is blocked on lockForWrite of Octree::_lock
Octree::lockForWrite libraries/octree/src/Octree.h:292
EntityTree::update libraries/entities/src/EntityTree.cpp:668
^ lockForWrite on Octree:_lock
EntityTreeRenderer::update libraries/entities-renderer/src/EntityTreeRenderer.cpp:258
Application::update interface/src/Application.cpp:2189
^ calls _physicsEngine.stepSimulation() before this
Application::idle interface/src/Application.cpp:1535
timer
2015-03-17 11:38:42 -07:00
Clément Brisset
9acc4a1a8f
Merge pull request #4457 from ZappoMan/quietLogs
...
dont report deleteEntity warnings in client for delete messages coming back from server
2015-03-17 15:42:20 +01:00
Seth Alves
b76103edb0
clean up debugging spew
2015-03-16 16:44:29 -07:00
Seth Alves
bed37ef49a
incorporate code review feedback
2015-03-16 13:57:22 -07:00
Seth Alves
c90ca4b425
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-16 12:13:26 -07:00
Seth Alves
fe658c0ed0
diff minimization
2015-03-16 12:13:16 -07:00
Seth Alves
5bc2d88ea6
diff minimization
2015-03-16 12:11:41 -07:00
Seth Alves
999324bcaf
remove unused code
2015-03-16 12:06:27 -07:00
Seth Alves
2d4a95c634
move to-map recurse operator class to its own file
2015-03-16 11:54:50 -07:00
Seth Alves
109271de3d
remove unused constant
2015-03-16 11:54:06 -07:00
Seth Alves
ecb958687d
don't crash if we encounter an unknown shape type
2015-03-16 11:53:47 -07:00
Andrew Meadows
fa27b76183
Merge pull request #4442 from Atlante45/edit_entities_box_selection
...
editEntities - select all in/touching box
2015-03-16 11:33:35 -07:00
Seth Alves
08cb13640c
debugging spew
2015-03-16 11:22:42 -07:00
ZappoMan
7ddd54b782
dont report deleteEntity warnings in client for delete messages coming back from server
2015-03-16 11:11:07 -07:00
Seth Alves
32c79f6172
bounce json's QVariants through QScripts before making them into properties, in order to take advantage of existing conversion code
2015-03-16 09:17:32 -07:00
Atlante45
c6167f6893
CR
2015-03-16 14:35:17 +01:00
Atlante45
ad16f49d01
Merge branch 'master' of https://github.com/highfidelity/hifi into edit_entities_box_selection
2015-03-16 14:28:24 +01:00
Seth Alves
bd85179d82
suppress a compiler warning
2015-03-15 08:24:59 -07:00
Seth Alves
6c4b808813
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-15 07:10:56 -07:00
Seth Alves
250567e315
formatting, diff minimization
2015-03-14 12:09:23 -07:00
Seth Alves
6b49b0ed7d
formatting
2015-03-14 11:58:53 -07:00
Seth Alves
a58f0fe76e
remove cruft, formatting
2015-03-14 11:57:08 -07:00
Seth Alves
b815c365eb
formatting
2015-03-13 18:57:27 -07:00
Seth Alves
f7f75cabf4
formatting
2015-03-13 18:49:48 -07:00
Seth Alves
0cfc48ab43
don't copy hull points
2015-03-13 18:05:02 -07:00
Seth Alves
50798398ff
merge from upstream
2015-03-13 18:04:55 -07:00
Seth Alves
43dbd64f4a
fix obj reader
2015-03-13 17:31:52 -07:00
Seth Alves
2368e6e5b7
collision with a hull sort of works. there is a new memory corruption problem
2015-03-13 15:41:57 -07:00
Ryan Huffman
d512a67c8a
Merge branch 'master' of github.com:highfidelity/hifi into edit-lights-overlays
2015-03-13 14:13:56 -07:00
Seth Alves
89b58e2681
trying to get loaded callback for model hooked up to PhysicsEngine
2015-03-13 09:11:15 -07:00
Atlante45
29300e0ae0
Added findEntitiesInBox to JS API
2015-03-13 13:55:26 +01:00
Atlante45
7911974946
Added findEntities for AAbox
2015-03-13 13:55:26 +01:00
Seth Alves
a945421d9d
still trying to make PhysicsEngine::addEntityInternal be async
2015-03-12 16:38:55 -07:00
Seth Alves
4b1fc4fa10
merge from upstream
2015-03-12 15:59:37 -07:00
Seth Alves
2cf0e1ab25
break PhysicsEngine::addEntityInternal in half, making the 2nd part asynch. This is to allow a ModelEntityItem time to download its collision hull before the 2nd part runs
2015-03-12 15:58:09 -07:00
Stephen Birarda
471e55c8ce
fix some lingering warnings
2015-03-12 12:36:39 -07:00
Ryan Huffman
ebf70f818a
Merge branch 'master' of git://github.com/highfidelity/hifi into edit-light-2
...
Conflicts:
examples/editEntities.js
2015-03-12 11:39:26 -07:00
Seth Alves
c9eacd2197
remove unneeded debug print
2015-03-12 11:37:53 -07:00
Seth Alves
6903904267
formatting
2015-03-12 11:31:57 -07:00
Seth Alves
e66ac7f982
formatting
2015-03-12 11:29:47 -07:00
Seth Alves
4aa7b0eb0f
provide defaults for anything entity properties read from a map
2015-03-12 11:19:47 -07:00
Ryan Huffman
5c9ec6bdcc
Add add/delete/rename/clear events to EntitiesScriptingInterface
2015-03-12 11:17:07 -07:00
Seth Alves
ac882f86e2
backup code is now aware of possible file extension differences
2015-03-12 09:13:53 -07:00
Seth Alves
2a06816f71
added persist-as-json checkbox to domain settings. File extension of persist file is automatically adjusted when entity server saves. When loading, if both a json and svo file exist, the newer one is used. This is regardless of the persistAsJson setting
2015-03-11 23:09:15 -07:00
Seth Alves
bf1cb951a3
move PhysicsEntity so that ModelEntityItem can initiate a model download
2015-03-11 18:34:27 -07:00
Seth Alves
918cfa8b4e
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-11 14:36:25 -07:00
Seth Alves
3a3e723f4e
trying to figureo out where to download hull models
2015-03-11 14:26:30 -07:00
Seth Alves
20a22ff42c
Merge branch 'master' of github.com:highfidelity/hifi into avatars-can-collide
2015-03-11 07:17:19 -07:00
Seth Alves
1c73f50dbc
started to hook up geometry downloader to ShapeInfo
2015-03-11 07:17:13 -07:00
Seth Alves
844085b514
started on hull collisions
2015-03-10 15:30:08 -07:00
Andrew Meadows
503afc8c73
erase deleted entities from pending sort list
2015-03-10 14:26:19 -07:00
Seth Alves
291f239727
if we read an entity with no id, create a random one for it
2015-03-10 11:55:20 -07:00
Seth Alves
088e23ad54
saving and loading largely works. still some rough edges
2015-03-10 11:31:48 -07:00
Seth Alves
afd2c87dfe
Merge branch 'master' of github.com:highfidelity/hifi into persist-entities-as-json
2015-03-10 10:12:43 -07:00
Seth Alves
2076de9153
started on reading entities from json file
2015-03-10 10:12:29 -07:00
Seth Alves
d0bbac2eb6
json writer sort of works. started on reader
2015-03-09 17:55:58 -07:00
Seth Alves
c947f3b62c
use meters in wire-protocol for versions greater than VERSION_ENTITIES_USE_METERS_AND_RADIANS
2015-03-09 14:06:59 -07:00
Seth Alves
99300a5bc8
merge from master
2015-03-09 13:39:51 -07:00
Seth Alves
81dc7cb8cf
started on code to persist entities to file as json rather than in the wire protocol
2015-03-09 13:38:18 -07:00
Andrew Meadows
e418872f7b
namechanges: setFooInMeters() --> setFoo()
...
also fixed some warnings, made code abide to standard,
and moved some variables to be closer to where they're used
2015-03-09 09:56:15 -07:00
Andrew Meadows
51d05cc43e
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
2015-03-09 08:51:49 -07:00
Seth Alves
08c3fa6363
merge from upstream
2015-03-08 17:29:05 -07:00
Jason
0fd9540bc3
Sync to upstream
...
Did "fetch upstream", "merge upstream/master", and resolved one
conflict.
2015-03-07 21:40:06 -08:00
Seth Alves
96d94e1b09
collision model url
2015-03-07 20:31:04 -08:00
Seth Alves
58bd8a5c65
collision model url
2015-03-07 20:30:29 -08:00
Seth Alves
bcfd1d8a89
collisionModelURL property
2015-03-07 20:27:20 -08:00
Seth Alves
630b5dd03b
collisionModelURL property
2015-03-07 20:27:02 -08:00
Andrew Meadows
ba6e66f169
merge upstream/master into andrew/isentropic
2015-03-07 18:03:49 -08:00
Seth Alves
b96e455b72
uninitialized variable
2015-03-07 11:27:27 -08:00
Andrew Meadows
f5352333f0
entities use radians per second for angular velocity
2015-03-06 16:42:06 -08:00
Jason
7a5669f14e
Interview project updates.
...
Tried to address all of Brad's notes, most of which were related to
matching the coding style for the project. Also used GeometryCache
instead of making direct calls to OpenGL to do drawing, took a different
approach to seeding rand(), updated the packet version, and fixed a bug
that I noticed in the setting of the dimensions for the particle effect
entity.
2015-03-06 15:52:21 -08:00
Andrew Meadows
95c7bcb5f8
whoops -- remove last *InTreeUnits() calls
2015-03-06 15:34:35 -08:00
Andrew Meadows
c4dafc74ad
whoops, remove last bestFitBoundsInMeters() call
2015-03-06 15:33:15 -08:00
Andrew Meadows
373be95297
entity cubes are in meters
2015-03-06 15:32:03 -08:00
Andrew Meadows
e4c68bf31c
committing some temp debug stuff to help git diff
...
(will remove this stuff later)
2015-03-05 18:06:08 -08:00
Ryan Huffman
2c68d56059
Update Entity::sendEntities to return new entity ids
2015-03-05 12:34:05 -08:00
Andrew Meadows
49eee89c19
merge upstream/master into andrew/isentropic
...
Conflicts:
libraries/networking/src/PacketHeaders.cpp
libraries/networking/src/PacketHeaders.h
2015-03-05 08:22:02 -08:00
Andrew Meadows
59a70b5b5f
remove cruft and fix default entity dimensions
2015-03-04 17:32:46 -08:00
ZappoMan
e99ffb8307
fix bug in export
2015-03-04 16:29:34 -08:00
Andrew Meadows
d7d25a6509
Octree::findCapsulePenetration() uses meters
2015-03-04 16:16:49 -08:00
Jason
3522357c8c
High Fidelity interview project -- Jason Rickwald
...
For my project, I decided to add a new entity -- a Particle Effect.
This is really rudimentary to start out with, but you could see where
it's headed.
2015-03-04 16:06:06 -08:00
Andrew Meadows
ca1c9b4105
EntityItem::findEntities() uses meters
2015-03-04 16:05:29 -08:00
Andrew Meadows
b9cbd1ea6e
witch internal EntityItem data to use meters
2015-03-04 09:38:37 -08:00
Ryan Huffman
b370e025c9
Move EntityScriptingInterface instance to DependencyManager
2015-03-02 15:05:31 -08:00
Ryan Huffman
98e0f235cc
Merge branch 'master' of git://github.com/highfidelity/hifi into block-restricted-users
2015-03-02 14:47:26 -08:00
Ryan Huffman
9a302eebed
Add Entities.canAdjustLocksChanged
2015-03-02 10:40:29 -08:00
Ryan Huffman
1a3eb68e2d
Update lightEntityItem old version handling to be more clear
2015-03-02 09:25:18 -08:00
Andrew Meadows
90b69b1ee0
replace some "InDomainUnits" calls with "InMeters"
2015-03-01 15:58:10 -08:00
Andrew Meadows
c2e78931c6
revert namechange: use compiler find all instances
2015-03-01 15:21:01 -08:00
Andrew Meadows
e1954d3e1d
spherical queries into Octree use meters
2015-03-01 15:19:26 -08:00
Ryan Huffman
84691f922c
Remove old light color properties
2015-02-27 14:04:56 -08:00
Ryan Huffman
61bc32493f
Fix entity version name in LightEntityItem
2015-02-27 13:49:17 -08:00
Ryan Huffman
093e5db90d
Update entity light properties to use new model
...
Rename constantAttenuation -> intensity
Rename diffuseColor -> color
Remove remaining attenuation and colors
2015-02-27 13:42:56 -08:00