Hi Ulrich and Raymond,

In general I try to stick with the way OpenGL does things, and this works pretty generally as mostly OpenGL is well thought out API.  However, there are hump dingers like TextureRectangle which are totally inconstent with the rest of OpenGL, it basically is a hack to get basic NPOT working, but without really thinking of the consequences. 

I don't understand why the texture rectangle didn't go for proper no dimensional coordinates, the fact it doesn't is a pain in the butt, espcially for the types of usage that Raymond wishes to use, where data is streaming in and the size of the imagery can change.  With non dimensional coords this has absolutely no effect on the end results, but with TextureRectangle dimensional coords one has to modify the texcoords of the geometry, this means quite a bit of syncing code to keep the texture in the right place.

The option that Raymond has added makes TextureRectangle behave like the rest of OpenGL textures, and make it properly non dimensional.  This is just an option though.

Robert.

On 9/1/06, Raymond de Vries <[EMAIL PROTECTED]> wrote:
Hi,

Well, I am pretty sure there are a lot of reasons why this should be
right or wrong. I think this is up to Robert since he has suggested this
option a while ago. For me this is an option to change the size of the
texture with keeping the texture coordinates unchanged.

Also, it is implemented as an option, and it needs to be enabled
explicitly so the default behaviour is still the same. Also, I think
that osg is 'smart' in other places too.

bye
Raymond


Ulrich Hertlein wrote:
> Hi Raymond,
>
> Raymond de Vries wrote:
>> As I promised a while ago I have added support for using regular texture
>> coordinates while using the TextureRectangle class (which is especially
>> useful for video streaming as is implemented in the osgmovie example
>> right
>> now).
>>
>> I've done this by manipulating the texture matrix, in the
>> TextureRectangle::apply().
>
> Are you sure this is such a good idea?
>
> For one it's not OpenGL conformant behaviour so it's different from
> what people would expect (as EXT_texture_rectangle states that image
> space texcoords are used; however odd/unintuitive that may be). Also
> it doesn't play well with user specified texture coordinates as I
> understand it (it overwrites them).
>
> Personally I prefer software systems that don't attempt to be smart in
> unusual cases because most of the times you either aren't aware of
> what they're doing or they're not smart enough...
>
> Cheers,
> /ulrich
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
>

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to