Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008815opensim[REGION] Script Functionspublic2020-11-21 03:542020-11-21 07:24
Reporterdjphil 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0008815: [SCRIPT ENGINE] Problems with bump shiny and shininess and full bright
DescriptionThere are 2 problems with bump shiny, shininess and full bright:
1) If you do not use the full bright option
- The prims don't change from specular to bump shiny via sccript
1) If you use the full bright option
- The prims don't change from specular to bump shiny via sccript
- The prims flash (switch between true and false non-stop)

So it's a bit difficult to explain but there is a problem for sure.
Steps To Reproduce1) Create 2 prims and bind them
2) Place script 1 in the root prim and compile
3) Let it run for a few seconds
4) Now Edit script 1 and replace it with script 2 and compile
At this step you will notice that:
- The shiny bump is not applied and the Shininess remains
- The full bright switch between true and false non stop
5) Edit script 2 and set the timer to 0.0 and recompile
6) Manually change the shininess to none
7) Edit script 2 and set the timer to 1.0 and recompile
- The full bright switch between true and false non stop
8) Now put script 1 back in and compile
- The full bright switch between true and false non stop

Script 1
========

set_primitives_params()
{
    osSetPrimitiveParams(llGetKey(), [
    // llSetLinkPrimitiveParamsFast(LINK_ROOT, [
        PRIM_FULLBRIGHT, ALL_SIDES, TRUE,
        // PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE,
        PRIM_SPECULAR, ALL_SIDES, TEXTURE_BLANK, <1.0, 1.0, 0.0>, ZERO_VECTOR, 0.0, <1.0, 1.0, 1.0>, 128, 128,
        PRIM_LINK_TARGET, 2,
        PRIM_FULLBRIGHT, ALL_SIDES, TRUE,
        // PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE
        PRIM_SPECULAR, ALL_SIDES, TEXTURE_BLANK, <1.0, 1.0, 0.0>, ZERO_VECTOR, 0.0, <1.0, 1.0, 1.0>, 128, 128
    ]);
}

default
{
    state_entry()
    {
        set_primitives_params();
        llSetTimerEvent(1.0);
    }

    timer() {set_primitives_params();}
}

Script 2
========

set_primitives_params()
{
    osSetPrimitiveParams(llGetKey(), [
    // llSetLinkPrimitiveParamsFast(LINK_ROOT, [
        PRIM_FULLBRIGHT, ALL_SIDES, TRUE,
        PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE,
        // PRIM_SPECULAR, ALL_SIDES, TEXTURE_BLANK, <1.0, 1.0, 0.0>, ZERO_VECTOR, 0.0, <1.0, 1.0, 1.0>, 128, 128,
        PRIM_LINK_TARGET, 2,
        PRIM_FULLBRIGHT, ALL_SIDES, TRUE,
        PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_HIGH, PRIM_BUMP_NONE
        // PRIM_SPECULAR, ALL_SIDES, TEXTURE_BLANK, <1.0, 1.0, 0.0>, ZERO_VECTOR, 0.0, <1.0, 1.0, 1.0>, 128, 128
    ]);
}

default
{
    state_entry()
    {
        set_primitives_params();
        llSetTimerEvent(1.0);
    }

    timer() {set_primitives_params();}
}
Additional InformationThis happens all the time but it can vary slightly depending on how you change the options.
Either in the script, or manually and also depending on the script being executed.
You can also comment and uncomment PRIM_BUMP_SHINY and PRIM_SPECULAR several times and recompile between each change
You will quickly find that it does not work well.

I have only tested with XEngine for the moment.
I did not invest the problem further, it is already complicated enough for me to explain it to you.
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script EngineXEngine
EnvironmentUnknown
Mono VersionNone
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0037243)
UbitUmarov (administrator)
2020-11-21 06:59

the blink was still another issue on libopenmetaverse, now updated.

to use BUMP you need to deactivate SPECULAR, since it does override it
doing PRIM_SPECULAR, ALL_SIDES, NULL_KEY,...
(0037244)
djphil (reporter)
2020-11-21 07:24

Thanks for the blink.

For specular/bump
I just tested in SL and I see that it must also be deactivated with NULL_KEY.
Wouldn't it be simpler if it automatically deactivates when using bump shiny instead of specular, wouldn't that be a good improvement ?

- Issue History
Date Modified Username Field Change
2020-11-21 03:54 djphil New Issue
2020-11-21 03:55 djphil Steps to Reproduce Updated View Revisions
2020-11-21 03:56 djphil Description Updated View Revisions
2020-11-21 03:59 djphil Steps to Reproduce Updated View Revisions
2020-11-21 06:59 UbitUmarov Note Added: 0037243
2020-11-21 07:24 djphil Note Added: 0037244


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker