lp:~stellarium/stellarium/gz_viewportOffset

Created by gzotti and last modified

This adds functionality to shift center of the viewport. This can be helpful in a situation where you need cylindrical projection, but with the horizon in the lower half of the screen to show more sky.
This adds new config values projection/viewport_center_offset_x, projection/viewport_center_offset_y, relative to screen size.
The vertical offset can be changed in the projection setting GUI. (Is there a useful scenario for X shift?)

Select&center (SPACE) of objects move the objects into screen center. Centering on coordinates put those into the offset screen center, intentionally, to e.g. allow setting a straight horizon.

Are there unwanted side effects? Comments welcome. Else I think it is ready to merge.

Get this branch:
bzr branch lp:~stellarium/stellarium/gz_viewportOffset
Members of Stellarium can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Stellarium
Project:
Stellarium
Status:
Merged

Recent revisions

7738. By gzotti

zoom+movement (default key "/") now also smoothened.

7737. By gzotti

Smoothed zooming (keep centered object in center for offset view mode), and repaired offset adjusting for all view frame (mount) modes

7736. By gzotti

add a "galactic" projection mode for scripting.

7735. By gzotti

Changed viewport offset display in GUI to show percent.

7734. By gzotti

Allow screen-centered tracking also with offset viewport.

7733. By gzotti

All projections seem OK with an off-center viewport. Configure via GUI is fine, values safed/retrieved to config.ini. Selection/auto-center is of course strange now, with object lock point not in screen center.

7732. By gzotti

Added viewport center offset. Useful e.g. to shift horizon down to show more of the sky.
This adds config values projection/viewport_center_offset_x, projection/viewport_center_offset_y, relative to screen size.
The GUI allows only vertical shift (I don't see horizontal shift useful)
The shift range limits are not worked out yet, some projections misbehave (crash).

7731. By Alexander Wolf

Oops... Fix working of scripting engine

7730. By Alexander Wolf

Added a new behaviour for drawing of orbit for selected planet - drawing of the orbits of 'hierarchical group' (parent and all their childrens) of the selected celestial body (disabled by default). Behaviour can be switched through viewing/flag_isolated_orbits = false option.

7729. By Alexander Wolf

Small improvements for the Telescope Control plugin

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:stellarium
This branch contains Public information 
Everyone can see this information.

Subscribers