Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008282opensim[REGION] Script Functionspublic2018-01-22 00:532018-02-05 07:57
Assigned To 
PlatformOSOS Version
Product Version0.9.0 
Target VersionFixed in Version 
Summary0008282: Settings PRIM_NORMAL, PRIM_SPECULAR, PRIM_ALPHA_MODE, not implemented
DescriptionThe 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 ReproduceCreate a script with the content:

default {
  state_entry() {
    llSetPrimitiveParams([PRIM_NORMAL, 0, "", <1.0, 1.0, 1.0>, ZERO_VECTOR, 0.0]);
Additional InformationIn 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.

Missing values:
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBulletSim
EnvironmentMono / Linux64
Mono VersionOther
ViewerFirestorm x64
Attached Files

- Relationships
related to 0008156new PRIM_NORMAL & PRIM_SPECULAR 
related to 0008084new [SCRIPT ENGINE] All material constants no implemented 

-  Notes
UbitUmarov (administrator)
2018-01-22 12:15

Yes, Set is a bit more complex to add that Get on our materials code.

so still on TODO :(
aiaustin (developer)
2018-02-05 06:37
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.

UbitUmarov (administrator)
2018-02-05 07:14

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.
aiaustin (developer)
2018-02-05 07:57

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 enbedded scripts changed.

- Issue History
Date Modified Username Field Change
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

Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker