Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Image not displayed #8

Description

@OlivierJean

Have a look at the following simple source code :

VRML V2.0 utf8

Shape {
appearance Appearance {
texture ImageTexture {
url "TestImageBkg.png"
}
}
geometry DEF BKG_REC Rectangle { size 200 200 }
}

DEF MESSAGE Message {
url "Board"
}

DEF SCRIPT Script {
eventIn MFString data_changed
url "
function initialize (time) {
Browser.sendMessage ('Board', 'INIT', 'Test Image', '', 'close', 1);
Browser.print('initialize()');
}

    function data_changed (val, time) {
        Browser.print('data_changed: 0='+data_changed[0]);

        if (data_changed[0] == 'RSK') { // quit
            Browser.sendMessage ('Board', 'RESET');
        }
    }
"

}
ROUTE MESSAGE.data_changed TO SCRIPT.data_changed

Compile it with MemoSDK-1.7.

No problem when launched in standalone version.

But image is not displayed when launched in OWP, with the following traces :
[java] >> initialize()
[java] MAX: IC.scaleImage 128x128 -> 1x1 TestImageBkg.png
[java] REC (!): IC.scaleImage 1x1 -> 200x200 TestImageBkg.png

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions