aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Scripting/VectorRender/VectorRenderModule.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-02-19Mantis#3188. Thank you kindly, BlueWall, for a patch that:Charles Krinke1-3/+49
Adding the ability to set the background color for osSetDynamicTextureData in the extra data: bgcolour:value (see http://msdn.microsoft.com/en-us/library/aa358802.aspx [^] for color names)
2009-02-18From: Christopher Yeoh <yeohc@au1.ibm.com>Sean Dague1-0/+14
The attached patch implements osGetDrawStringSize that looks like: vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize) in LSL. It is meant to be used in conjunction with the osDraw* functions. It returns accurate information on the size that a given string will be rendered given the specified font and font size. This allows for nicely formatted and positioned text on the generated image.
2009-02-12large scale fix for svn props after "the great refactor"Sean Dague1-12/+12
2009-02-12* optimized usings.lbsa711-12/+12
2009-02-10this is step 2 of 2 of the OpenSim.Region.Environment refactor.Dr Scofield1-1/+1
NOTHING has been deleted or moved off to forge at this point. what has happened is that OpenSim.Region.Environment.Modules has been split in two: - OpenSim.Region.CoreModules: all those modules that are either directly or indirectly referenced from other OpenSim packages, or that provide functionality that the OpenSim developer community considers core functionality: CoreModules/Agent/AssetTransaction CoreModules/Agent/Capabilities CoreModules/Agent/TextureDownload CoreModules/Agent/TextureSender CoreModules/Agent/TextureSender/Tests CoreModules/Agent/Xfer CoreModules/Avatar/AvatarFactory CoreModules/Avatar/Chat/ChatModule CoreModules/Avatar/Combat CoreModules/Avatar/Currency/SampleMoney CoreModules/Avatar/Dialog CoreModules/Avatar/Friends CoreModules/Avatar/Gestures CoreModules/Avatar/Groups CoreModules/Avatar/InstantMessage CoreModules/Avatar/Inventory CoreModules/Avatar/Inventory/Archiver CoreModules/Avatar/Inventory/Transfer CoreModules/Avatar/Lure CoreModules/Avatar/ObjectCaps CoreModules/Avatar/Profiles CoreModules/Communications/Local CoreModules/Communications/REST CoreModules/Framework/EventQueue CoreModules/Framework/InterfaceCommander CoreModules/Hypergrid CoreModules/InterGrid CoreModules/Scripting/DynamicTexture CoreModules/Scripting/EMailModules CoreModules/Scripting/HttpRequest CoreModules/Scripting/LoadImageURL CoreModules/Scripting/VectorRender CoreModules/Scripting/WorldComm CoreModules/Scripting/XMLRPC CoreModules/World/Archiver CoreModules/World/Archiver/Tests CoreModules/World/Estate CoreModules/World/Land CoreModules/World/Permissions CoreModules/World/Serialiser CoreModules/World/Sound CoreModules/World/Sun CoreModules/World/Terrain CoreModules/World/Terrain/DefaultEffects CoreModules/World/Terrain/DefaultEffects/bin CoreModules/World/Terrain/DefaultEffects/bin/Debug CoreModules/World/Terrain/Effects CoreModules/World/Terrain/FileLoaders CoreModules/World/Terrain/FloodBrushes CoreModules/World/Terrain/PaintBrushes CoreModules/World/Terrain/Tests CoreModules/World/Vegetation CoreModules/World/Wind CoreModules/World/WorldMap - OpenSim.Region.OptionalModules: all those modules that are not core modules: OptionalModules/Avatar/Chat/IRC-stuff OptionalModules/Avatar/Concierge OptionalModules/Avatar/Voice/AsterixVoice OptionalModules/Avatar/Voice/SIPVoice OptionalModules/ContentManagementSystem OptionalModules/Grid/Interregion OptionalModules/Python OptionalModules/SvnSerialiser OptionalModules/World/NPC OptionalModules/World/TreePopulator
2009-02-06This changeset is the step 1 of 2 in refactoringDr Scofield1-2/+2
OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
2009-02-02[previous VectorRender patch was from: Robert SmartDr Scofield1-1/+1
<SMARTROB@uk.ibm.com>] clean up.
2009-02-02[patching previous patch and also taking the chance of fixing theDr Scofield1-2/+2
previous commit message] This patch reimplements the Draw method in the VectorRenderModule which is used to create dynamic textures. The previous version was limited to creating square dynamic textures, it also didnt allow for dynamically loading an image containing transparency except at 256x256. The extraParams string in such functions as osSetDynamicTextureData can now be passed a comma seperated string of name value pairs which set the width,height and alpha value of dynamic textures. e.g. "height:512,width:2048,alpha:255" Backward compatibility is still preserved so passing the old params of either a string integer "256" "512" will still work in the same fashion as will passing "setAlpha" on its own
2009-02-02Merge branch 'vector' into OpenSimulator.orgDr Scofield1-22/+141
2009-01-21* More friendly OpenJpeg error handling.Teravus Ovares1-1/+11
* Often times now the only reason OpenJpeg doesn't work is because it requires Glibc 2.4 The error messages reflect that. * In J2kDecoder module, It stops trying to decode modules if it encounters a dllnotfound exception and instead sends a full resolution layer that causes the texture sender to only send the full resolution image. (big decrease in texture download speed, but it's better then nasty repeating error messages)
2008-12-30Update svn properties, minor formatting cleanup.Jeff Ames1-1/+1
2008-12-19let you specify a hex number as the color in the vector renderingSean Dague1-1/+11
module. This expands the colors you can use.
2008-09-06* This is the fabled LibOMV update with all of the libOMV types from JHurlimanTeravus Ovares1-7/+6
* This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke.
2008-06-18revert 5134. Changing these bitmaps to 24bit just breaks things, and they ↵Sean Dague1-1/+1
never display on the client.
2008-06-18make neb happy. I found where we initialized the dynamic textures toSean Dague1-1/+1
32bit images and changed them to 24bit images.
2008-06-18change the default drawing font from Times -> Arial, asSean Dague1-4/+12
san serif fonts are a bit easier on the eyes on textures. Add a new "FontName" attribute that can be used to override the font type.
2008-05-16Formatting cleanup.Jeff Ames1-1/+1
2008-05-01* Rolled back a few changes.Adam Frisby1-3/+7
2008-05-01* Spring cleaning on Region.Environment. Adam Frisby1-7/+3
* Converted a large number of read-only fields to be actually, readonly. * Reformatted code sections. * Removed redundant code.
2008-05-01Update svn properties. Minor formatting cleanup.Jeff Ames1-368/+368
2008-04-30* Cruft removal step #1. Cleaning Modules directory.Adam Frisby1-62/+70
2008-04-30* Refactored Environment/Modules directory - modules now reside in their own ↵Adam Frisby1-361/+361
directory with any associated module-specific classes. * Each module directory is currently inside one of the following category folders: Agent (Anything relating to do with Client<->Server communications.), Avatar (Anything to do with the avatar or presence inworld), Framework (Classes modules can use), Grid (Grid traffic, new OGS2 grid comms), Scripting (Scripting functions, etc), World (The enrivonment/scene, IE Sun/Tree modules.) * This should be moved into a seperate project file.
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-9/+11
(this took a while to run).
2008-03-21Comment out an unused 'str' and add a WriteLine to useCharles Krinke1-1/+4
an "Exception e" with e.ToString() to eliminate 2 warnings.
2008-03-18Formatting cleanup.Jeff Ames1-36/+37
2008-03-18Added copyright messages. Set svn:eol-style. Minor cleanup.Jeff Ames1-11/+31
2008-03-13some hackery with the VectorRenderModule to let you pass in a canvasSean Dague1-2/+13
size. Helps make the fonts crisp when using vector renderer as a text board.
2008-03-09Linux Compile error if Color is compared against null. Documentation for ↵Teravus Ovares1-3/+8
System.Drawing.Color says it returns a Color with all Components as 0 if the String passed isn't a known color, so the null check has been commented out
2008-03-08Added new drawing command "PenColour", with format "PenColour <colourname>;" ↵MW1-1/+12
colour name can be any of the predefined .net System.Drawing.Color names.
2008-03-08Added Frist basic version on the VectorRenderModule, that allows scripts to ↵MW1-0/+308
do some basic drawing onto textures. Currently the method the scripts have to use is most likely not the most user friendly, but this should improve soon. And hope to allow SVG files (either loaded from a web site, or even script created) to be used. I will add a page to the wiki tomorrow, until then http://www.pastebin.ca/934425 is a example c# script that can be used to get a bit of a idea. Also added osSetDynamicTextureDataBlend and osSetDynamicTextureURLBlend that will allow the various textures to be blended together, but currently there are still a few bugs in them. So not ready for use yet.