Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008468opensim[REGION] Script Functionspublic2019-01-29 22:402019-02-02 03:02
Reporterdjphil 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformPCOSWindowsOS Version10
Product Version 
Target VersionFixed in Version 
Summary0008468: [SCRIPT] osMovePen has no effect on osDrawPolygon and osDrawFilledPolygon
DescriptionosDrawFilledPolygon and osDrawPolygon does not move when used with MovePen.
MovePen seams has no effect on osDrawPolygon and osDrawFilledPolygon

It work fine with osDrawEllipse, osDrawFilledEllipse
or osDrawRectangle and osDrawFilledRectangle

but NOT with osDrawPolygon and osDrawFilledPolygon
Steps To ReproduceHere is the sample script for testing:

integer alpha = 255;
integer status = TRUE;

default
{
    on_rez(integer p) {llResetScript();}
    touch_start(integer n) {llResetScript();}
    
    state_entry()
    {
        llSetTexture(TEXTURE_BLANK, 0);
        string cmd;
        cmd = osSetPenSize(cmd, 3);
        cmd = osSetPenColor(cmd, "Black");
        cmd = osMovePen(cmd, 100, 100);
        // cmd = osDrawFilledEllipse(cmd, 100, 100);
        // cmd = osDrawEllipse(cmd, 100, 100);
        // cmd = osDrawRectangle(cmd, 100, 100);
        // cmd = osDrawEllipse(cmd, 100, 100);
        cmd = osDrawFilledPolygon( cmd, [50,100,50], ["50",100,150.0] );
        osSetDynamicTextureDataFace("", "vector", cmd, "width:256, Height:256", 0, 0);
        // string params = "width:256, height:256, alpha: 0";
        // osSetDynamicTextureDataBlendFace("", "vector", cmd, params, status, 2, 0, alpha, 0);
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script Engine
Environment.NET / Windows64
Mono VersionNone
ViewerFirestorm
Attached Files

- Relationships

-  Notes
(0034094)
UbitUmarov (administrator)
2019-02-01 11:05
edited on: 2019-02-01 11:08

Yes those commands do not depend on current position set by moveto
the arguments provide full coordinates of vertices. They also don't change current pen position unlike ellipse

original api decisions, 2 late to change.

http://opensimulator.org/wiki/OsDrawFilledPolygon [^]

(0034097)
djphil (reporter)
2019-02-02 00:19
edited on: 2019-02-02 00:25

Bad original decision, should be corrected.
It's never too late ...

We should not be afraid to fix something on the pretext that users will eventually have to modify their scripts later.

Moreover, here it would have no influence on the scripts because currently it is as if osMovePen is set to 0, 0

If anyway that's why you say it's too late ..

(0034101)
UbitUmarov (administrator)
2019-02-02 03:02

And was not a bad decision. Polygons can have odd shapes making hard to use and modify pen position based on them, unlike well defined shapes like ellipses or rectangles

- Issue History
Date Modified Username Field Change
2019-01-29 22:40 djphil New Issue
2019-01-29 22:46 djphil Summary [SCRIPT] MovePen has no effect on osDrawPolygon and osDrawFilledPolygon => [SCRIPT] osMovePen has no effect on osDrawPolygon and osDrawFilledPolygon
2019-01-29 23:07 djphil Steps to Reproduce Updated View Revisions
2019-01-29 23:08 djphil Steps to Reproduce Updated View Revisions
2019-02-01 11:05 UbitUmarov Note Added: 0034094
2019-02-01 11:08 UbitUmarov Note Edited: 0034094 View Revisions
2019-02-02 00:19 djphil Note Added: 0034097
2019-02-02 00:25 djphil Note Edited: 0034097 View Revisions
2019-02-02 03:02 UbitUmarov Note Added: 0034101


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker