Mantis Bug Tracker

View Revisions: Issue #8468 All Revisions ] Back to Issue ]
Summary 0008468: [SCRIPT] osMovePen has no effect on osDrawPolygon and osDrawFilledPolygon
Revision 2019-01-29 23:08 by djphil
Steps To Reproduce Here 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);
    }
}
Revision 2019-01-29 23:07 by djphil
Steps To Reproduce Here 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);
    }
}
Revision 2019-01-29 22:46 by djphil
Steps To Reproduce Here 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);
    }
}


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker