Hi Georg,
You shouldn't use StelViewportEffect for that, as it only modifies the
already-projected image. You rather need to offset the viewport, by
changing the value of the viewportCenter member of the StelProjectorParams
struct.
There is no method for doing that but you can create one based on void
StelApp::setDevicePixelsPerPixel(float dppp)
Fabien
On Fri, Jun 26, 2015 at 12:03 AM, Georg Zotti <georg.zo...@univie.ac.at>
wrote:
> Hello!
>
> I would like to have a cylindrical projection along the horizon which does
> not require that the horizon (if you want it straight) is in the vertical
> center of the screen, but lower, so that more sky is visible while still
> having some of the ground visible, altitude range e.g. -5...20 degrees,
> just with a straight horizon. I think several projections could benefit
> from this.
>
> This would require some offsetting of the viewport center. There is a
> class StelViewportEffect, would I have to subclass that, or make a variant
> of CylindricalProjection, or is this even available already? There are
> some traces of config.ini entries which hint at this functionality having
> been available already in earlier versions.
>
>
>
> Thanks for any insight, or even help, on this!
>
> Kind regards,
> Georg
>
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> Stellarium-pubdevel mailing list
> Stellarium-pubdevel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>
------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel