Active ImageMorph as Wonderland texture
Bijan Parsia
bparsia at email.unc.edu
Wed May 1 17:48:11 UTC 2002
On Wed, 1 May 2002, Bijan Parsia wrote:
> Is there a simple way to make the surface of a Wodnerland Texture reflect
> the dynamic state of a morph (e.g., an ImageMorph or a FishEyeMorph)?
Going with the working assumption that it's not declasse to solve one's
own problem, the following is the key to a solution:
<CSOTD>
"This must be executed in a Wonderland Script editor
w makePlaneNamed: 'test'.
test1 doEachFrame:
[test1 setTexturePointer:
(Form fromDisplay: (28 at 514 corner: 158 at 644)) asTexture].
"In this case, I'm grabbing the form from the display. The rect is where I
have a fisheye morph. But so long as you can extract a Form, this should
work." </CSOTD>
I love Squeak. The Alice stuff is really working nicely. Both Jeff's
nuBlue book chapter and Mark's presentation are very helpful.
Cheers,
Bijan Parsia.
More information about the Squeak-dev
mailing list
|