Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Jack
Just don't forget [GEMglMatrixMode GL_MODELVIEW] after [GEMglOrtho -1 1 -1 1 1 20] to manipulate transformations on model (geos) (and view). ++ Jack Le 11/09/2017 à 00:32, Roman Haefeli a écrit : > On Mon, 2017-09-11 at 00:24 +0200, Jack wrote: >> Here, your patch using what we said before as a

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Roman Haefeli
On Mon, 2017-09-11 at 00:24 +0200, Jack wrote: > Here, your patch using what we said before as a workaround... if > needed ! :) You were faster than me :-)  Yes, this is what I meant to do. Thanks for clarifying. Roman signature.asc Description: This is a digitally signed message part __

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Roman Haefeli
On Son, 2017-09-10 at 23:34 +0200, Jack wrote: >  > > However, you can simulate [ortho] if you need it now with : > > [GEMglMatrixMode GL_PROJECTION] > > > > > [GEMglLoadIdentity] > > > > > [GEMglOrtho -1 1 -1 1 1 20] > > With these objects, you reset the projection and use orthographic > pr

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Jack
Here, your patch using what we said before as a workaround... if needed ! :) ++ Jack Le 11/09/2017 à 00:10, Roman Haefeli a écrit : > On Son, 2017-09-10 at 23:33 +0200, cyrille henry wrote: >> hello, >> >> Le 10/09/2017 à 22:34, Roman Haefeli a écrit : >> >>> > > But how can someon

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread cyrille henry
Le 11/09/2017 à 00:10, Roman Haefeli a écrit : My initial task that got me into investigating changes in [ortho] is rendering a cylinder that fits exactly into a window of a given size. It was very easy to do in the last Gem release, but I don't seem able to do it with current Gem. See attach

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Roman Haefeli
On Son, 2017-09-10 at 23:33 +0200, cyrille henry wrote: > hello, > > Le 10/09/2017 à 22:34, Roman Haefeli a écrit : > > > > > > > > > > > > > > But how can someone use the full window area with the new > > > > default > > > > mode? > > > changing the windows perspective!!! > > > (using the per

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Jack
Le 10/09/2017 à 23:50, cyrille henry a écrit : > > > Le 10/09/2017 à 23:34, Jack a écrit : > ... >> Don't forget to use just after your geo (if you want your perspective >> come back) : >> >> [GEMglMatrixMode GL_PROJECTION] >> | >> [GEMglLoadIdentity] >> | >> [GEMglFrustum -1 1 -1 1 1 20] > > th

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread cyrille henry
Le 10/09/2017 à 23:34, Jack a écrit : ... Don't forget to use just after your geo (if you want your perspective come back) : [GEMglMatrixMode GL_PROJECTION] | [GEMglLoadIdentity] | [GEMglFrustum -1 1 -1 1 1 20] this will only work for square windows : unlike the perspec message, frustrum is

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Jack
Hello Roman, Le 10/09/2017 à 22:34, Roman Haefeli a écrit : > On Sam, 2017-09-09 at 18:50 +0200, cyrille henry wrote: >> >> 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 t

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread cyrille henry
hello, Le 10/09/2017 à 22:34, Roman Haefeli a écrit : But how can someone use the full window area with the new default mode? changing the windows perspective!!! (using the perspec message to gemwin, see help file) Sorry, I don't understand. Maybe I simply don't understand which question thi

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-10 Thread Roman Haefeli
On Sam, 2017-09-09 at 18:50 +0200, cyrille henry wrote: > > 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

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread Jack
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 be

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread cyrille henry
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

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread cyrille henry
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

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread Jack
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, c

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread Roman Haefeli
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 ful

Re: [PD] [Gem] changed [ortho] behaviour

2017-09-09 Thread cyrille henry
hello, yes, the ortho was buggy and fixed. But the old behaviours is still possible if you send a "compat" message. See help file. cheers c 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 tot

[PD] [Gem] changed [ortho] behaviour

2017-09-08 Thread Roman Haefeli
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