[PD] [Gem] changed [ortho] behaviour

Jack jack at rybn.org
Sun Sep 10 00:43:09 CEST 2017


So, i missed something here :)

I thought [ortho] changed the behavior of [gemwin] to replace
'glFrustum' with 'glOrtho' by sending an 'internal' message. But, i was
wrong because i forgot [ortho] is on its own gemchain.

However, it would be quite easy, now [gemwin] is an abstraction, to
switch between frustum to ortho for the whole scene by sending, for
example, a message 'ortho -1 1 -1 1 1 20' to [gemwin] (Yes, you can do
it easily by adding one [ortho] but only if you have one [gemhead]
controling all your objects (geos)). A bad idea ?
++

Jack



Le 09/09/2017 à 18:52, cyrille henry a écrit :
> the gemwin object, or abstraction did not have any ortho message.
> ortho is an object that you put in the gemchain.
> 
> i.e. there is no change in recent Gem.
> 
> cheers
> c
> 
> 
> Le 09/09/2017 à 14:14, Jack a écrit :
>> For info : it seems that [gemwin] (as abstraction with a recent Gem from
>> git) doesn't manage glOrtho but only glFrustum, so you won't be able to
>> use [ortho] with a recent Gem (or i missed something ?).
>> ++
>>
>> Jack
>>
>>
>>
>> Le 09/09/2017 à 12:44, Roman Haefeli a écrit :
>>> On Sam, 2017-09-09 at 12:37 +0200, cyrille henry wrote:
>>>> hello,
>>>> yes, the ortho was buggy and fixed. But the old behaviours is still
>>>> possible if you send a "compat" message.
>>>> See help file.
>>>
>>> I see, thanks. I should have checked the help file in the first place.
>>>
>>> But how can someone use the full window area with the new default mode?
>>> Why is there a limit?
>>>
>>> Roman
>>>
>>>
>>>> Le 09/09/2017 à 00:59, Roman Haefeli a écrit :
>>>>>
>>>>> Hey all
>>>>>
>>>>> A patch of mine with only a few geos that was developed with last
>>>>> release of Gem 0.93.3 looks totally messed up with current master.
>>>>> It
>>>>> turns out that [ortho] is the culprit.
>>>>>
>>>>> It appears that [ortho] used to screw with aspect ratio as it
>>>>> forces
>>>>> both, window width and window height, to be 4 units. A [ortho]-
>>>>> [rectangle 4 4] exactly fits into the window, even if the window is
>>>>> rectangle, for instance 960x540px. That's what my patch took into
>>>>> account.
>>>>>
>>>>> Now, with current master, [ortho] doesn't mess with aspect ratio
>>>>> anymore, but when using [ortho], I can display a geo only within a
>>>>> square part of the gem window. When I moved it out that area, it
>>>>> gets
>>>>> blacked out.
>>>>>
>>>>> I can somehow understand that [ortho] was buggy in the last release
>>>>> and
>>>>> needed to be changed, but is the current behaviour the desired
>>>>> behavior?
>>>>>
>>>>> Roman
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Pd-list at lists.iem.at mailing list
>>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/l
>>>>> istinfo/pd-list
>>>>>
>>>> _______________________________________________
>>>> Pd-list at lists.iem.at mailing list
>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/lis
>>>> tinfo/pd-list
>>>>
>>>>
>>>> _______________________________________________
>>>> Pd-list at lists.iem.at mailing list
>>>> UNSUBSCRIBE and account-management ->
>>>> https://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management ->
> https://lists.puredata.info/listinfo/pd-list




More information about the Pd-list mailing list