- Loading...
- No images or files uploaded yet.
sldataviz
Getting UUID'sProvided with the delivery is a tool for obtaining the UUID's of uploaded images. Rez the UUID tool and copy the image textures into its contents (you'll have to drag to the contents tab, dragging to the object textures the object instead). Touch the tool, and it will say the data. Copy and paste this from your Local Chat tab of your Communications window and paste into a notepad .txt file. Save and import into Excel, choosing commas as delimiters. You'll get 3 columns, one is trash, one is the UUID, one is the name of the texture. Large and small data setsThe provided Excel template handles 4096 rows of data. If you need to handle more than that, you'll need to follow this procedure (which will somewhat slow down Excel): 1. Unprotect the 'data' worksheet
2. Select the last non blank line of column U and V and copy them down as far as needed. 3. Reprotect the worksheet.
Setting the meta dataGlobal information about how to display the data is on the The area under 'Work Area format' is used with array mode and is described there. Image prim default color is the color used when the color columns of the data are blank. The image size is the size of the imageprim in it's local coordinates, in meters. The array origin is not used. The origin is taken from the location of the rezzer prim. The array orientation is not used. The orientation is taken from the location of the rezzer prim. These two items are provided for future compatibility. They would be activated by the '1=use prim,0=use rezzer' data. Array size is the size of the entire display space, in the local rezzer coordinate frame. Image orientation is the Euler angle rotation SLERP rotation (Second Life Euler ) angle of the image with respect to the local axes of the rezzer.
Copying data to the clipboardAfter the data is filled in it must be copied to a notecard. Use the 'Copy Data' button at the top of the data worksheet. If you have manual recalc turned on, it may be necessary to unhide the 'compute' sheet and recalc it as well as the meta and data sheets before copying. Sign on to Second Life, click the Copy Data button to put the data in the clipboard, and then create a notecard in your inventory. Name the card something short (it'll be the button name, max 8 chars). Paste your clipboard into the notecard. The system isn't very forgiving of extra lines (a design tradeoff for speed), so be sure if you overwrite an old card you select every bit of it (ctrl-a) and paste. Drop the card into the rezzer. Alternatively you can open the contents pane of the rezzer and paste the data into an existing card..
Array modeImage arrays can be made in a semi-automated fashion using the Work Area sheet and the Work area format of the Create a map of your image array with repeated row and column sets of multi-column data. For example, if you have a URL, UUID, and some other data (say a retention time) for 4 images that you want displayed in a 2 x 2 array, set up your Work Area like this:
The 'stride' of the data is the number of colums you must shift to see the same data for the next value. In this case the stride is 3. On the Click the Place Array button. It will ask you to confirm that you want to clear the data if you have data in the data sheet.
Plotter Prim UseThe Plotter Prim has several built in tools to help you align it.
The axes for the graph are aligned with the axis pointers on the Plotter Prim. You can use the point of the cone to ensure that the Plotter Prim is lined up perfectly with an external object like a grid. Note that the center of the Plotter Prim (the point shown by the arrows in edit mode) is NOT at the intersection of the axes pointers. The 0,0,0 point of the graph is where the pointers meet, not at it's Second Life center. The Grid Panel shows the plane image arrays created with Array Mode will be placed in. Do not rename the imageprim or Plotter Prim. The names are used by the scripts. Site the Plotter PrimRez the Plotter Prim, and then consider how high off the ground it needs to be and how it should be oriented. Data points below ground will not be placed properly. Do not place the Plotter Prim near a region boundary. The Plotter Prim will not operate properly across a region boundary. If you haven't made the imageprims, make them now as outlined above. Create NotecardCreate the notecard as described in 'Copying data to the clipboard'. You can keep up to 8 cards in the Plotter Prim at once.
Set imageprim bandSelect a band of imageprims. Touch the Plotter Prim to display a blue dialog in the upper right corner of your screen. One of the options will be 'set band'. Click this button. Type the starting number and length of the band on channel 99. You can chat on a channel by starting your message wth a slash immediately followed by the number of the channel. So, to make your band 200 points starting at 500, type /99 500 200
displayTouch the Plotter Prim to display the dialog again. Click the name of the notecard.
hiding dataTouch the Plotter Prim to display the dialog. Click 'Hide'.
Advanced tricksmultiple plots in the same spaceYou can create multiple series from heterogenous data by repeated plotting over the same space. Simply change bands between plots.
replacing the imageprimYou can control the appearance of the resulting objects to a limited extent by altering the imageprim. For example, you might change the imageprim to a sphere for a scatterplot. Multi-prim objects as imageprims have not been tested. They should work, and might be useful in some circumstances (eg. multiple bar charts). If you change the imageprim you'll need to delete any that were in that range and then remake them.
using the Info columnData in the info column will be passed as a llMessageLinked message to LINK_SELF. If you add a script to the imageprim (this counts as 'replacing the imageprim' above, see the cautions about remaking), you can control the prim in many ways. Some possible applications: Bubble plots rotated variable length arrows for plots of vector field phenomenon like magnetic fields, fluid flow, etc. plots that animate with time. plots that display network relation data by the 'particle chain' trick. image plots of photographs showing the orientation and location of the camera at the time. scalesYou can use the Plotter Prim to make scales for it's own plots, simply by generating the scale 'ticks' as imageprims. One of the samples creates a simple scale.
Appendices
The SamplesSamples are from beta copies of the template and may not match the final template exactly.
imagearray.xls demonstrates creating data in Array mode
scales.xls demonstrates creating scales
respiration.xls Using data from the manyeyes project, relates # of hospital admits, # of respiratory admits, and average temperature for one month in 5 cities.
the data format for the notecard
Anne Ogborn, Rev 0.9a (no settext or color)
A data card for the rezzer shall consist of data in lines. For efficiency in execution no variation in line formatting is permitted - e.g. blank lines are not allowed, there is no comment facility, etc. In particular, it is important that there not be blank lines at the bottom of the list
Data is in UTF-8, Lines are separated with 0x0D 0x0A (CRLF). Line length is limited by max allowable width of the constituent fields.
Data items are separated by ASCII ampersand character.
The first line (called the header) contains metadata. The remaining lines each define one image prim.
metaformat - integer means an integer formatted as LSL's (integer) cast on string acceptor.
float means a floating point number formatted as LSL's (float) cast on string acceptor.
vector means a vector formatted as LSL's (vector) cast on string acceptor, that is, of the form <x,y,z> where x,y, and z are floats and the angle brackets and commas are included. Spaces are NOT allowed in format.
UUID means a uuid in standard LSL form, something like 3ce91aea-22d5-3cbe-5ea9-a9be8387e4ac
url_encoded_string means a string of up to 255 characters encoded as per RFC 3986
Because of a bug in the LSL library that does parsing, zero length strings are improperly handled. As a workaround, any text of zero length is substitued with a field consisting only of an asterisk.
===============header line format
id integer a unique key identifying this card, a 16 bit number represented in signed decimal
prim integer 1 means use the origin and orientation data from this line, 10 means use the origin and orientation of the rezzer
origin vector the region coordinates location of the origin of the display
orientation vector the Euler angle orientation of the display with respect to the world coords
array_size vector the size in meters, <width, height, depth> of the display
image_size vector the size in meters of the image prims, <width, height, thickness>. This is in the image prim's coordinates, so thickness is always how 'thick' the board is irrespective of rotation.
orientation vector the Euler angle orientation of the images with respect to the overall array orientation. <0,0,0> makes the image face the positive Z axis and lie in the plane of the XY axis, bottom parallel to the X axis, up +Y axis.
===========data line format
location vector Prim center location in a normalized 0-1 space. So an image at <0,0,0> is at the origin, at <1,0,0> is at the outer end of the X scale.
UUID UUID UUID of the image to be used as a texture on the 0 face of the prim. If
url url_encoded_string url to be loaded when the prim is touched
red float 0 to 1 red component of color. If the UUID is set then face 0 (the face with the image) will remain white. Otherwise all faces are set to this color.
green float 0 to 1 green component of color. If the UUID is set then face 0 (the face with the image) will remain white. Otherwise all faces are set to this color.
blue float 0 to 1 blue component of color. If the UUID is set then face 0 (the face with the image) will remain white. Otherwise all faces are set to this color.
text url_encoded_string String to be displayed as black floating text above the image.
info url_encoded_string String that will be transmitted as a link message with num = 77. This allows the user to add a script to the prim and pass added info to it.
[1] See Making imageprims for a description of how to detect them should you need to [2] If you make a mistake, you can select the rezzer and choose tools/reset scripts in selection to stop the process. Delete the partially made prims (they'll be visible as blue and white boxes) and set the band again. [3] Negative and out of bounds values are properly handled on all axes, if desired, but the user should be sure that the points are not so far out of bounds as to either be outside the region or belowground. See 'site the rezzer' for a complete treatment. [4] The automatic URL hyperlink conversion feature of Excel can be disabled globally by unselecting it in the Autocomplete options menu.
|
|
Anonymous
Create an account or Log in
|
Comments (0)
You don't have permission to comment on this page.