[squeak-dev] Re: [Pharo-project] Offscreen drawing...
Lawson English
lenglish5 at cox.net
Wed Aug 26 22:19:04 UTC 2009
Given my mental issues, I'm not sure when I'll get this done (yes I
realize its trivial). However, Croquet/Cobalt on a prim will be really
cool for a lot of reasons, IMHO and should be trivially doable. This is
from an alpha VNC plugin for Second LIfe:
http://www.flickr.com/photos/aimeethyst/3860441800/
If someone with even a modicum of intellectual stamina would like to do
this, I can pretty much guarantee it will make Croquet/Squeak better
known. I'm hoping that I can do it, but my mental health state isn't at
its best and I sincerely see this as a project that will benefit both
communities (Second Life and Squeak/Croquet/Cobalt) immensely, so anyone
who wants to do it in their spare time will almost certainly get it done
before I do.
Lawson :-/
Andreas Raab wrote:
> Lawson English wrote:
>> It would be very kool to have Squeak/Croquet able to render into SL
>> the same way. Smalltalk on a prim...
>
> This is actually utterly trivial. What you are looking for is in the
> SurfacePlugin. It allows to map external bitmaps into Squeak and to
> draw directly into it. The B3D engine uses this to do mixed-mode
> rendering in Direct3D; i.e., exposing the D3D rendering target to
> drawing operations in Squeak.
>
> Example code for the surface plugin can be found here:
>
> http://squeakvm.org/svn/squeak/trunk/platforms/Cross/plugins/ExampleSurfacePlugin/
>
>
> The example uses a malloc()ed region of memory; you can use shared mem
> or whatever. Once you've created a form in this way all you need is to
> just BitBlt right onto it, or even better, just set it as Squeak's
> Display variable and all drawing will go onto it.
>
> Cheers,
> - Andreas
>
>
More information about the Squeak-dev
mailing list
|