|Anonymous | Login | Signup for a new account||2018-04-23 13:57 PDT|
|Main | My View | View Issues | Change Log | Roadmap | Summary | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008282||opensim||[REGION] Script Functions||public||2018-01-22 00:53||2018-03-31 18:54|
|Target Version||Fixed in Version|
|Summary||0008282: Settings PRIM_NORMAL, PRIM_SPECULAR, PRIM_ALPHA_MODE, not implemented|
|Description||The PRIM_NORMAL, PRIM_SPECULAR and PRIM_ALPHA_MODE rules have getters for llGetLinkPrimitiveParams() (and related functions), but they don't have their counterpart for setting via llSetLinkPrimitiveParams(), although it's possible to set those properties via the viewer in Edit Window.|
|Steps To Reproduce||Create a script with the content:|
llSetPrimitiveParams([PRIM_NORMAL, 0, "", <1.0, 1.0, 1.0>, ZERO_VECTOR, 0.0]);
|Additional Information||In parallel, PRIM_ALPHA_MODE_* constants are not recognized by the script engine. A script calling llGetPrimitiveParams() to query the alpha mode of a face does not compile.|
PRIM_ALPHA_MODE_NONE = 0
PRIM_ALPHA_MODE_BLEND = 1
PRIM_ALPHA_MODE_MASK = 2
PRIM_ALPHA_MODE_EMISSIVE = 3
|Tags||No tags attached.|
|Git Revision or version number|
|Run Mode||Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)|
|Environment||Mono / Linux64|
|Viewer||Firestorm x64 184.108.40.206912|
Yes, Set is a bit more complex to add that Get on our materials code.
so still on TODO :(
edited on: 2018-02-05 06:40
Some work on the Ruth 2.0 mesh body and nail attachment specularity is related to this....
I wonder if the OpenSim side could support the functions and constants and, for now, have no effect... in order that scripts compile without error and without needing special OpenSim variants.
Think is all there, but Set will report error parsing those parameters
i could make it silence ignore them, but that could make things very confusing for any other scripter not following this discussions.
edited on: 2018-03-13 02:35
Point taken @Ubit ... I was just trying to get things so that as Ruth 2.0 parts appear in OpenSim the scripts are ready to go if or when the SET functions are made to work, rather than such parts needing to have their embedded scripts changed.
edited on: 2018-03-19 06:58
I note some scripts for Ruth 2.0 have to have temporary workarounds to avoid this error... its a pity to start to get lots of new content out there that will need fixing later...
// Currently, llSetLinkPrimitiveParams(0,[ PRIM_SPECULAR...] has a bug. It will trigger
// an error in the script if it tries to execute the function.
edited on: 2018-04-05 04:07
I did make some changes to materials and add support for PRIM_NORMAL, PRIM_SPECULAR, PRIM_ALPHA_MODE on Set functions.
Note this was done on branch httptests, not master, and this needs .net4.6 (or mono 5x)
This code needs more changes, and may still have issues.
Avoid changing materials in diferent llSet* commands. Viewers may get informed of changes on each line, and may ask for materials that where meanwhile removed by the next command’s changes, but should work, just wasted bandwith and a possible warning on log about unknown material.
Note also that a change waits some 2 minutes before sending new materials to grid assets DBs. If region crashes or has a problem meanwhile, they are lost. But well, a region crash is already a problem :)
Also, as before, material IDs are not really unique, there is a small but not null chance of different materials getting same ID, and so assumed to be equal, this is a issue to try to fix later.
|2018-01-22 00:53||TyphaineArtez||New Issue|
|2018-01-22 11:57||Sheera Khan||Relationship added||related to 0008156|
|2018-01-22 11:59||Sheera Khan||Relationship added||related to 0008084|
|2018-01-22 12:15||UbitUmarov||Note Added: 0032513|
|2018-02-05 06:37||aiaustin||Note Added: 0032534|
|2018-02-05 06:38||aiaustin||Note Edited: 0032534||View Revisions|
|2018-02-05 06:40||aiaustin||Note Edited: 0032534||View Revisions|
|2018-02-05 07:14||UbitUmarov||Note Added: 0032535|
|2018-02-05 07:57||aiaustin||Note Added: 0032536|
|2018-03-13 02:35||aiaustin||Note Added: 0032592|
|2018-03-13 02:35||aiaustin||Note Edited: 0032536||View Revisions|
|2018-03-19 06:58||aiaustin||Note Edited: 0032592||View Revisions|
|2018-03-31 18:54||UbitUmarov||Note Added: 0032626|
|2018-04-05 04:07||aiaustin||Note Edited: 0032626||View Revisions|
|Copyright © 2000 - 2012 MantisBT Group|