Commit Graph

2116 Commits

Author SHA1 Message Date
John Hurliman
692d2927a9 * Add a copy constructor to IRendering.SimpleMesh
[Simian]
* Avoid remeshing whenever possible by reverting back to using the untransformed mesh for the world mesh generation
* Add forceMeshing and forceTransform booleans to SimulationObject to specify when a new untransformed mesh needs to be generated and when the transformation needs to be reapplied

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2477 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-09 18:20:19 +00:00
John Hurliman
7e0529d58d [Simian]
* SimulationObject.GetWorldMesh() now has an option to force rebuild
* RayTriangleIntersection returns the actual collision point
* PhysicsSimple regenerates meshes when objects are moved or edited

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2476 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-09 03:01:34 +00:00
Robin Cornelius
4973542628 Do not force the group flag to true in the ChatterBoxInvitationHandler, but instead use what the CAPS reply told us, as its the only way to tell the difference between a group IM invite and a friends confrence invite
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2475 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-07 18:37:51 +00:00
6f7df8ea1b [Simian]
* Tweaked inertia values for falling avatars
* First pass at avatar/object collision physics

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2474 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 16:32:03 +00:00
John Hurliman
a464b54dd1 [Simian]
* Added an IPhysicsProvider and a PhysicsSimple implementation that provides basic physics-related functionality. Currently only ray/prim intersection and getting a prim's mass
* Initial prim CRC handling
* Porting some LSL fixes from OpenSim

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2473 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 02:10:52 +00:00
John Hurliman
ac784d54aa Thank you nephrael for pointing out a bug where Avatar.RegionHandle was always 0 for incoming avatars
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2472 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:58:58 +00:00
John Hurliman
ac354b5fb0 * Cleaned up GetBytes/ToBytes in OMV types to eliminate duplicate code
* Fixed a typo in the previous commit for Utils.EmptyBytes
* Switched _Packets_.cs over to the new ToBytes() functions, should significantly reduce the number of temporary byte arrays allocated

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2471 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:55:22 +00:00
John Hurliman
3ad7551a4a * Added Utils.EmptyBytes which is equal to new byte[0] and replaced all references of new byte[0] to Utils.EmptyBytes
* Added a CRC32 implementation to OpenMetaverseTypes.dll
* Added ToBytes() functions to most of the OMV types for writing bytes into an existing byte array

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2470 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-06 01:32:02 +00:00
2dc837eff1 Simian: fixes previous commit
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2469 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-05 22:33:30 +00:00
193a7c531b Simian:
* Fixed avatar rotation not being locked while sitting
* Fixed owner info being lost on link/unlink
* First pass at attachment support

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2468 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-05 22:09:58 +00:00
John Hurliman
47c28cb568 Fixed an NRE on NameValues in the Avatar.Name getter
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2467 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-04 23:32:17 +00:00
John Hurliman
96acab524b [Simian]
* Fixed object duplication regression
* Cleaned up the mess that was adding an agent to the scene
* Sitting kind of works ("proper" sitting is extremely complex and requires a lot of computation)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2466 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-03 22:25:29 +00:00
John Hurliman
871ffb42a6 [Simian]
* Clearing up confusion with Agent.Avatar by making it a SimulationObject that is passed in through the constructor. This should prevent duplicate notions of an avatar in the scene
* Fixed the "you don't own this object" issue after moving a prim. The fix is rather hacky and will be replaced when we stop sending full object updates for every change

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2465 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-03 21:01:57 +00:00
c8312a0777 Simian: Committing first pass at sit/unsit support (offset is still incorrect)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2464 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-03 19:08:04 +00:00
John Hurliman
18b5f70e53 [Simian]
* (Untested) implementation of ObjectExtraParamsHandler
* Fixed several mono compiler warnings and one compiler error
* Converted to a non-deprecated method of fetching the local IP address

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2463 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 23:43:12 +00:00
John Hurliman
abf0c15384 [Simian]
* Completed a partial port of OpenSim's LSL API. Thank you to everyone on the OpenSim team for their hard work on this incredibly large feature
* Added Agent.GetSimulatorPosition()
* Corrected default PrimFlags for agents and prims
* Stubs for encoding/decoding prim linkset assets
* Route chat through the scene
* Stub for grid messaging (IM and email)
* Add GetTerrainHeightAt(), removed duplicate heightmap storage in Movement.cs
* Added a permissions manager stub
* Store wind speeds, added functions to get wind speed
* Make sure all of the important prim properties are set before creating an object
* Lots of new object manipulation functions in scene
* Properly clean up event queues on agent exit
* Stubbed out a space for a scripting engine
* Stubbed out task inventory
* Added ScriptingConsole, which allows you to run LSL functions from the chat console
* Added new PacketCategory, Messaging, for chat-related packets
* Fixed InventoryObject overrides
* Added a NotecardCache, useful for the scripting engine and may become generally useful later
* Added several helper functions and new members to SimulationObject

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2462 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 23:00:28 +00:00
John Hurliman
12375d40e9 * Added a server-side flag, ChatType.RegionSay
* AppearanceManager.AddAttachments() now uses the attachment point specified in the inventory item
* Completed the PrimFlags enum by filling in placeholders and inventing our own server-side flags (do not use the placeholder values, they will change)
* Added DoubleDictionary.FindValue()
* Added a random number function, SwapWords(), and SHA1/MD5 hash string functions to Utils

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2461 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 22:49:25 +00:00
166fb59d73 OpenMetaverse.GUI MiniMap.cs: Fixed index check on our own avatar
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2460 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 22:30:53 +00:00
Robin Cornelius
2358b16225 LIBOMV-454 Implement CAPS version of starting IM conferences and also implement CAPS ChatterBoxAcceptInvite for accepting invites to join conferences
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2459 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-02 11:53:26 +00:00
Robin Cornelius
993763515e Import Serialization support for InventoryNodes and things derived from InventoryBase, to allow serialization of inventory to and from disk
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2458 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-26 20:41:39 +00:00
John Hurliman
ec071b981c Adding prebuild.xml hack for CircularQueue.cs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2457 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-25 20:44:46 +00:00
John Hurliman
939d120059 * Added a CircularQueue to OpenMetaverseTypes
[Simian]
* Fixed a regression with ViewerEffect packet handling
* Added undo and redo support
* Changed ISceneProvider interfaces to be more consistent and avoid duplicate lookups
* Attempting to unify avatar and prim handling by storing agents as both a SimulationObject and an Agent in the scene
* Comment out noisy resend logging and catch broken packets in the resend queue
* Improved the README
* Avoid generating two meshes when a world-transformed mesh is generated (are these even necessary?)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2456 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-25 20:32:48 +00:00
John Hurliman
940b02f36a Applying patch from Ben Anhalt for [LIBOMV-455], which splits up UUIDNameRequests into multiple packets for long lists of UUIDs
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2455 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-25 20:09:58 +00:00
Robin Cornelius
0ed9ab8618 Implement RebakeAvatarTextures packet hander and refactor some appearance manager code to allow the necessary reuse of some functions in more than one place
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2454 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 20:24:13 +00:00
Latif Khalifa
0f0967d4be Made MiniMap work with the api changes made to implement LIBOMV-450
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2453 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 11:21:18 +00:00
Latif Khalifa
b240c1442e Removed cruft from previois commit - LIBOMV-450
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2452 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 10:48:00 +00:00
Latif Khalifa
d116087ecb LIBOMV-450: Breaking change. Change avatar locations from List<Vector3> to Dictionary<UUID, Vector3> to enable more uses of CoarseLocationUpdateCallback.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2451 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-22 10:45:03 +00:00
Robin Cornelius
51a2768e90 Opensim does not yet send the MediaData section of ParcelProperties via LLSD, so make that block optional for compatability reasons.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2450 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-21 09:54:19 +00:00
Latif Khalifa
b8c082beac add ability to chain login request and response delegates (LIBOMV-449). Patch by Dahlie
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2449 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-20 18:05:00 +00:00
John Hurliman
7723885aaf Hoping that this is the correct prebuild binary
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2448 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-19 19:08:26 +00:00
John Hurliman
21317bcee4 Added a login URL dropdown to GridImageUpload
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2447 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-19 18:43:43 +00:00
John Hurliman
0e69e5d12f Fixing Prebuild issues with visual studio WinForms projects
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2446 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-19 18:34:48 +00:00
John Hurliman
8f7775a7ac [LIBOMV-448] Applying a patch from Snowdrop Short to allow the TransactionID to be specified for asset uploads
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2445 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-18 19:07:06 +00:00
John Hurliman
39f154178b Implemented NetworkManager.OnPacketSent callback that is fired after every outgoing packet has been put on the wire. Adds the basic functionality requested in [LIBOMV-60]
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2444 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 19:22:07 +00:00
John Hurliman
9b1e82bc34 [LIBOMV-430] Applying patch from Mike Mazur to zero out extra data from previously processed packets
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2443 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 19:09:22 +00:00
John Hurliman
f6c6eb13b2 [TC-59] Applying patch from dahlia to fix the primregex command in TestClient
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2442 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 19:00:08 +00:00
John Hurliman
14af07e89c [LIBOMV-446] Applying patch from Snowdrop Short to fix the Primitive copy constructor if GenericData or NameValue fields differ
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2441 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 18:54:45 +00:00
John Hurliman
6fbaa010a3 [LIBOMV-443] Applied patch from Keith Perkins to add ObjectManager.DropObject() function
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2440 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 18:48:33 +00:00
John Hurliman
fdc04a5e1d [LIBOMV-445] Applying patch from DrScofield to correct BytesToFloat() and BytesToDouble() in OpenMetaverseTypes.dll on little endian architecture
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2439 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 18:40:57 +00:00
John Hurliman
471c99e458 Thank you Dan Lake, for patches to TestClient:
* Login command now supports starting location
* Added comment character for script files (either ; or # may be used as first non-whitespace on a line)
* Shout and whisper commands no longer encode extra whitespace to end of messages
* Modified say command to the same format as whisper and shout commands

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2438 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-17 18:29:00 +00:00
Robin Cornelius
cd2b4d6deb LIBOMV-439 Fix some locking issues in AppearanceManager accessing Wearables.Dictionary
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2437 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-16 10:32:17 +00:00
John Hurliman
3b3946244a * Updating OpenMetaverse.Http and Simian to new HttpServer.HttpListener.Create() requirement for an ILogWriter
* Move more state updates into ISceneProvider
* Lazy initialization of mesh data for SimulationObjects

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2436 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-13 22:21:01 +00:00
John Hurliman
5c14ce3265 Removing runprebuild.bat. The new HttpServer uses .NET 3.5 language features, marking an official departure from VS2005 support. (It's 2009.)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2435 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-10 22:11:57 +00:00
Jim Radford
a808c974b5 Add support for compiling openjpeg via prebuild, can compile both 32 and
64 bit openjpeg versions if on 64 bit host with proper tools installed.
(This change is for our build server to implement recompiling the
openjpeg binaries)


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2434 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-10 20:22:05 +00:00
John Hurliman
946819f0f4 Fixed a bug in the Simian SceneManagerTests
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2433 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-09 07:34:53 +00:00
John Hurliman
71f3ff77ca Switched HttpServer.dll to the "lite" branch in the official C# WebServer repository. The fork maintained by libopenmetaverse will be removed soon
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2432 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-09 07:26:50 +00:00
Latif Khalifa
5a731af4e0 Fixed region crossings when using GridProxy (Patch by Day Oh). Fixes LIBOMV-440 LIBOMV-436
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2431 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-08 08:24:35 +00:00
Jim Radford
d4f4c38154 LIBOMV-442 .NET 2 doesn't appear to like casting type var to object. This method probably needs to be in the packet class specifically instead of Helpers
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2430 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-05 17:42:24 +00:00
Jim Radford
7232ce6801 LIBOMV-442 Adds new method to helpers which uses reflection to dump a packet to a human readable string format (used by GridProxy)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2429 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-05 09:25:43 +00:00
John Hurliman
06404ab4e4 * Fixed endianness for OSD handling of uint, long, and ulong (big endian byte arrays are used)
* Fixed CapsServer to handle all content types (old SL clients were sending application/xml, new ones send application/llsd+xml)
* Start the EventQueue ID at 1 (seems to help)
* HyperGrid teleporting is now working in Simian

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2428 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-05 03:12:41 +00:00