Commit Graph

62 Commits

Author SHA1 Message Date
Latif Khalifa
9f1870983e LIBOMV-739: Support for Client Identification Tag
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3198 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-31 13:10:58 +00:00
Latif Khalifa
459b8a4a84 Put EventArg classes in main OpenMetavarse name space.
Better name for AppearanceSet event, since we are actually not waiting for any reply from the server.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3195 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-30 08:03:14 +00:00
Jim Radford
96734383b4 LIBOMV-686 ObjectManager cleanup: Fixes up inline API Documentation, adds additional Simulator parameter to public methods for consistency and to allow for using those methods on neighboring simulators, not just the current simulator.
LIBOMV-705 Cleans up some API documentation in AppearanceManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3189 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-29 23:53:17 +00:00
Jim Radford
61a5bd2b1a LIBOMV-705 Updates AppearanceManager to new event patterns, Thanks Douglas R. Miles for the patch!
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3188 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-29 09:47:57 +00:00
Jim Radford
95a87c7857 LIBOMV-686 Convert NetworkManager events/delegates to new patterns
* Remove INetworkManager interface (it was not being used for anything)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3182 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-28 08:01:52 +00:00
John Hurliman
08f74a222f * Fixing the WearOutfit() command to actually be backward compatible
* Marking packet block classes as sealed to match the wrapping packet classes

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3172 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-25 08:18:50 +00:00
John Hurliman
4f93ee2e1b Added AppearanceManager.WearOutfit() to keep the API a little bit more backward compatible. This function simply calls ReplaceOutfit() or AddToOutfit()
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3171 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-25 07:58:50 +00:00
Latif Khalifa
0c8ef17cdb Abort attempts to upload appearance if we get disconnected in the meanwhile.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3157 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-19 22:27:58 +00:00
Latif Khalifa
870ce77bfe One of the final touches towards finishing LIBOMV-640
Delay rebake on manual outfit changes by 20s since the last change.
The application writer can still call RequestSetAppearance(true) after
changing full outfit if they wished to skip the delay.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3138 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-09 02:44:06 +00:00
Jim Radford
2d37ccf9eb LIBOMV-704 Implements handlers for RebakeAvatarTextures packet to request the agent update the current simulator with its appearance.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3124 52acb1d6-8a22-11de-b505-999d5b087335
2009-10-05 22:39:38 +00:00
Latif Khalifa
679f12a6dc Avoid locking up appearance manager by looking up its status.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3109 52acb1d6-8a22-11de-b505-999d5b087335
2009-09-05 16:58:37 +00:00
Latif Khalifa
4fcd8e6b77 * Added new public methods: AddToOutfit() and RemoveFromOutfit()
* Added helper methods  DecodeWearableParams() and SendAgentIsNowWearing()
* Force full rebake on appearance changes
TODO: Maintain hashes of wearables in the same fashion they are
kept for cached responses from the sim so we can rebake only
the layers that need rebaking and not all 6

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3108 52acb1d6-8a22-11de-b505-999d5b087335
2009-09-05 15:43:10 +00:00
John Hurliman
4f7213d9b4 * Renamed WearOutfit() to ReplaceOutfit() to match what it is actually doing and finished an initial (untested) implementation of it
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3093 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-19 17:51:26 +00:00
Latif Khalifa
8b7570e314 * Always call RequestFetchInventory after successful inventory uploads
in order to keep Store synced. This removes .NET 3.5 specific dependency.
* BakeIndexToTextureIndex is now read-only, and specified size
  (hopefully this will keep it updated should number of bakes change)
* Missing doc param in AssetManager


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3092 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-19 07:25:30 +00:00
Latif Khalifa
c695414564 * Fixed LIBOMV-659 Rebaked textures not cached by the sim
* Added public bool property ManagerBusy so clients can tell
  if the appearance manger is busy
* Fixed documentation errors.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3090 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-18 13:47:22 +00:00
Latif Khalifa
bb421d5662 Added OnAppearanceSet event that signals when main appearance thread is done its work.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3088 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-18 10:09:01 +00:00
Latif Khalifa
6784c751d4 * Enable hair bake
* Skip alpha masks where visual param is 0 and mask is marked for skipping on 0 value

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3087 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-18 09:38:50 +00:00
Latif Khalifa
d3755f848a Implemented morph masks, the last missing layer in 5-later baked texture.
Agent Smith is no longer Mr. Tight Pants.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3086 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-17 23:23:12 +00:00
Latif Khalifa
cb58fed531 Tweak timing of uploads some more:
* Try uploading bake twice with 90 sec timeout
  instead of once with 180 sec timeout
(Produces more reliable results in testing with
some packet loss + high latency)

* Catch exception thrown when upload fails to start
in the correct place.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3085 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-15 12:28:59 +00:00
Latif Khalifa
1082b97aeb * Increase Settings.TRANSFER_TIMEOUT to 3 min (yes it can take that long on higher latency link since we are waiting for ack before sending each new packet),
* Make TRANSFER_TIMEOUT non-cost
* Add more logging to ApperanceManger

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3082 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-15 02:24:16 +00:00
Latif Khalifa
66319e5597 * Use MAX_CONCURRENT_UPLOADS constant
* Catch exceptions from baker and asset manager in CreateBake()
* Increase timeouts so appearance setting on higher latency links is more reliable

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3081 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-15 01:44:52 +00:00
Latif Khalifa
aabac70fc6 Hair texture participates in baking of both head (eyebrows and facial hair) and hair bakes.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3079 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-12 19:27:13 +00:00
John Hurliman
04f920aea9 * Helpers.GetResourceStream() now uses the executable directory + openmetaverse_data as the path for finding resources instead of current directory + openmetaverse_data
* Added add, subtract, multiply operators to Color4
* Switched baking to use Color4 instead of System.Drawing.Color
* Untested implementation of multiply and add color operations in baking

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3077 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-12 06:11:36 +00:00
Latif Khalifa
b7f85867a7 Don't apply aplha masks to skin layer if it has texture, texture overrides all other skin settings.
Add debug info measuring how long it takes to produce bakes.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3062 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-05 01:48:03 +00:00
John Hurliman
32b36d88af * Removed even more cruft from the old method of overriding SSL checks
* Updated the documentation on AppearanceManager.TextureData

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3058 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-04 23:27:23 +00:00
Latif Khalifa
0133909275 LIBOMV-640: Rewrite texture baker
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3057 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-04 23:16:00 +00:00
John Hurliman
0c18efa8e2 Fixed mono compile errors in AppearanceManager and switched from magic numbers to a defined constant
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3054 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-03 18:46:14 +00:00
Latif Khalifa
4f64c9c7be Added function that calculates RGB color based on visual params (yey!). (towards LIBOMV-658)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3052 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-03 03:49:48 +00:00
Latif Khalifa
dc60f34a6d Now we decode all alpha mask/color params for each texture. TODO make function to calculate final color tint of the texture and modify baker to use color tint and alpha masks (towards LIBOMV-658)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3050 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-02 23:29:48 +00:00
Latif Khalifa
adca88b1ed Added support for decoding alpha masks and color params for textures using visual params (towards LIBOMV-658)
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3048 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-02 17:06:29 +00:00
John Hurliman
59e9e74a45 * Reverted WearableData from a struct back to a class to fix a regression
* Started on WearOutfit()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3041 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-31 19:36:13 +00:00
John Hurliman
7d57b4afab * Changed WearableData to public and a struct
* Added GetWearableAsset(), IsItemWorn(), and GetWearables()
* Swapped InventoryBase for InventoryItem wherever possible in AppearanceManager

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3039 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-31 19:00:36 +00:00
John Hurliman
c1bc0b4af6 * Moved OpenMetaverse/Resources to bin/openmetaverse_data until we have a working xbuild and reorganize SVN
* Complete rewrite of AppearanceManager. Appearance editing has not been (re)implemented yet, but the normal appearance setting is much more reliable
* Added a setting (defaulted to true) for automatically setting appearance
* Various baking hacks to get slightly less ugly avatars
* Added baked texture uploading through CAPS in AssetManager.RequestUploadBakedTexture(). UDP fallback is not implemented yet
* Added Parallel.Invoke() and overloads for all three methods that take a threadCount

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3038 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-31 17:43:01 +00:00
John Hurliman
1f4c182558 Fix AppearanceManager to use Client.Assets instead of passing in an AssetManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3033 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-29 17:58:25 +00:00
Latif Khalifa
a4c8f8bba5 LIBOMV-639:
* Renamed TextureCache to AssetCache
* Plugged in new cache into AssetManager
* Removed OnAssetReceived global event from AssetManger
* RequestAsset and RequestInventoryAsset now take a delegate of type AssetReceivedCallback


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3004 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-19 03:38:27 +00:00
John Hurliman
ff8cdec8b6 Adding an AppearanceManager fix from kinoc that sets all appearance params to default values before updating the params from decoded wearables. Fixes scrunched faces and other miscellaneous appearance oddities
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2909 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-24 00:56:07 +00:00
Latif Khalifa
5922fbc84c * Update tracked avatar texture from AvatarAppearancePacket
* Only wait for uploads to complete when we have something to wait for
* When sim requests rebake, only sent AgentSetAppearance once

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2851 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-06 17:25:35 +00:00
Latif Khalifa
09377c682e [Appearance]
* Added support for the new hair bake
* Fixed ForceRebakeAvatarTextures()
* Some additional debug info

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2815 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-27 09:46:18 +00:00
John Hurliman
a970cbd661 Initial commit of the OpenMetaverse.Assets namespace. Serialization/deserialization for new PrimObject is done, but OAR saving/loading is still a work in progress
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2746 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-12 00:07:35 +00:00
Jim Radford
59c8c38eba LIBOMV-505 Turning off timing checks by default, minor cleanup of AppearanceManager
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2700 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-07 16:20:57 +00:00
Jim Radford
14869cab48 LIBOMV-505 Merge in jradford-texturepipeline branch
This changes the way texture requests are handled, the AssetManager
RequestImage method signatures have been changed and are now expecting
the callback with the request.
Progressive requests for textures are supported for rendering viewers
Tuning parameters have been moved to Settings


git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2699 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-07 16:10:52 +00:00
Jim Radford
d98e36491f Fixes several comment warnings
Re-enables <nowarn> element when compiling with nant (re-added code to prebuild to support this)
Update prebuild binary to fixed version

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2528 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-21 17:28:17 +00:00
John Hurliman
8106fccdd2 * Changed Primitive.TextureEntry.ToBytes() to GetBytes() to follow naming conventions
* Added Primitive.TreeSpecies and Primitive.ScratchPad
* Converted Primitive.SoundFlags to the new SoundFlags enum
* Added a Utils.BytesToString() overload that accepts index and count parameters
* Added Utils.FloatToUInt16()
[Simian]
* Lots of changes in Simian to use the new unified ISceneProvider.ObjectAddOrUpdate() function
* Update flags are checked to determine the minimum sized packet that needs to be sent out for an update. ImprovedTerseObjectUpdate is working, and started work on ObjectUpdateCached (updates using this will currently not send)
* Adding three new variables to SimulationObject to store attachment-related state

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2478 52acb1d6-8a22-11de-b505-999d5b087335
2009-03-10 01:54:45 +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
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
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
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
Jim Radford
e1f7110a46 LIBOMV-434 Applies patch from Robin Cornelius - AppearanceManager - corrects cached bake issues, work in progress
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2415 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-14 11:29:29 +00:00
Jim Radford
93910e094b LIBOMV-432 When requesting a copy item from a notecard, an ItemCopiedCallback is fired but it always uses the id 0 unlike the other standard inventory calls, which return a user specified unique ID.
LIBOMV-433 Patch attached that implements an AddToOutfit command that just adds the list (wearable) of InventoryBaseItems to the current appearance. 
Thanks to Robin Cornelius for the patches!

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2414 52acb1d6-8a22-11de-b505-999d5b087335
2009-01-14 11:24:54 +00:00
Latif Khalifa
674d4ea653 Allow setting appearance to continue even dispate some textures failing to bake properly [LIBOMV-420] - Patch by Robin Cornelius
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2378 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-14 02:01:21 +00:00