On Sep 2, 2010, at 8:30 PM, John M McIntosh wrote:
I think if you hunt in the archives you'll find people have attempted to replace Morphic with Open/GL calls via FFI
I recall an attempt to use OpenGL as a renderer for a Morphic Canvas. If you look at the IWST09 Lumiere paper you can find references.
Oh like http://www.squeaksource.com/AlienOpenGL
On 2010-09-02, at 8:48 AM, Tudor Girba wrote:
Hi,
Interesting read, but I am still not sure to understand the implications, so let me ask you another question: is there a way to make use of OpenGL by generating vector graphics from within Pharo?
Yes, this is what i had in mind when i programmed Lumiere. And somehow was achieved, except for text rendering. Using AlienOpenGL you get an OpenGL "canvas", that can be embeded into the Morphic framework. Somehow like a "hole" in the Display, where you have a OpenGL + OS area in the back. (Althoug depends on the vm, because some of them dont handle well transparency of the World , i recall Linux was the only one working ..check out HoleLW of the CUIS LightWidgets framework) If you want the two world to coexist, ( Lumiere ) then you have to take care of translating Morphic points into OpenGL points. But the infrastructure is there to easily achieve it. Though i think that Igor's port to OpenGL is a better way to go.
I am particularly interested if there are ways to improve visualization tools like Mondrian to make it use the hardware (and thus maybe have reasonable speed when drawing complex and maybe aliased graphs).
A Mondrian renderer that interfaced to OpenGL for drawing could be implemented using the mechanism explained before.
Cheers, Doru
-- =========================================================================== John M. McIntosh <johnmci@smalltalkconsulting.com> Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================
<smime.p7s><ATT00001..txt>