[Vm-dev] Differences in OpenGL support on Linux vs. OS X?

Bert Freudenberg bert at freudenbergs.de
Thu Jun 7 10:25:02 UTC 2012


On 07.06.2012, at 03:29, Phil (list) wrote:

> Bert,
> 
> On Jun 6, 2012, at 4:35 PM, Bert Freudenberg wrote:
> 
>> 
>> I seem to recall that indeed regular drawing in Linux could be seen "over" the OpenGL view.
>> 
>> The simplest fix would be to Not Do That ;) That is, do not do any drawing besides OpenGL - which you don't want to do in any case because of performance reasons. 
>> 
>> - Bert -
> 
> As a result of following your suggestion, I have a little more detail/clarity re: what's going on.  What I thought was the background being drawn over the OpenGL view was in fact the background showing through the OpenGL view as it is mostly transparent most of the time and appears that the full OpenGL frame is not being displayed... though it does appear to have rendered in OpenGL properly based on what I can see.  I've uploaded a minimal example image that can demonstrate the issue when running on Linux yet works perfectly on OS X if you or anyone else would have a minute to look at it: https://docs.google.com/open?id=0B7kzoa_8KiEDcGFWYUcwclgybTQ (under <5 meg, publicly available)
> 
> Thanks,
> Phil


This is probably unrelated, but you are apparently not using the latest OpenGL package, and you messed it up severely. Why is it using "B3DAcceleratorPlugin" instead of "libGL"?! I had to revert openGLLibraryName to make it work at all.

I do see the overdraw you mention. But if you drag your morph out of the way, you will see the triangle getting rendered by OpenGL just fine. Learn about Morphic drawing to prevent the Morph's background getting drawn again in each frame. Also learn about extraRegions to prevent anything getting drawn where your OpenGL window is. Also, enable higherPerformance and set your Morph's stepTime to 0 to see it spinning at full rate. You may want to copy FrameRateMorph over from Squeak since Cuis apparently dropped that.

Since none of this really belongs on vm-dev, please continue on Squeak's beginners list. Reply-To set accordingly.

- Bert -



More information about the Vm-dev mailing list