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

Image not displayed #8

Open
OlivierJean opened this issue Mar 23, 2012 · 0 comments
Open

Image not displayed #8

OlivierJean opened this issue Mar 23, 2012 · 0 comments

Comments

@OlivierJean
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant