[ANN] GLMorphic meets the public

Igor Stasenko siguctua at gmail.com
Fri Aug 24 11:28:52 UTC 2007


On 24/08/07, Andreas Raab <andreas.raab at gmx.de> wrote:
> Igor Stasenko wrote:
> > possible reasons:
> > - bad depth of rendered forms (currently i convert all to 32bpp)
>
> How do I find out and how would I fix it?
>

Try to play with GLCanvas>>image: form at: aPoint sourceRect:
sourceRect rule: rule
by using different forms, with different depth/extents:

| canv |
canv := GLDisplayScreen testCanvas.
canv dimensionsChanged.
canv image: form at: 0 at 0 sourceRect: (0 at 0 corner: w at h) rule: 0.
canv ogl glFlush.

I want to know, is this a problem with non power of 2 or somethings else.

I could write a tests in GLTests someday to check  texturing support.


> > - your OpenGL library is too old and don't support textures with non
> > power of 2 dimensions.
>
> You mean ARB_texture_rectangle? Indeed, it doesn't support that. Which
> has nothing to do with "oldness" btw, the box isn't even a year old.
> It's just a very cheap 3D chip. I'd really recommend to gracefully fall
> back to pow2 textures if rectangular textures aren't supported.
>
No, its different extension.
http://oss.sgi.com/projects/ogl-sample/registry/ARB/texture_non_power_of_two.txt

> > OpenGL 2.0  supports non power of two textures by default.
> > Earlier versions must have extension which support nonp2 textures.
>
> Are you planning to require 2.0? That'll cut your potential audience
> rather quickly ...

I have access to two PC's, both are 3+ years old and both have GL 2.0 support.
But you are right that better to support older versions too.

-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list