From: Steve I. <st...@in...> - 2008-10-31 21:57:05
|
Hi Matthew, I will make sure to sign my emails more clearly in future. Shiptellarium, etc? Not so sure about those :-) I will have a look at the script function you mention - thanks. If not, then we'll give the ship operators a choice - stick to perspective view and see less landscape, or have stereographic and see more. I have found a (rather roundabout) way to change the rotation of the landscape using LandscapeMgr->loadLandscape(QMap...) which allows me to reload the landscape and set the decor & ground rotation. It's a bit of a kludge in that it's reloading the whole thing - but it only needs to happen every few minutes or when the heading changes, and I would expect the png files to be cached by Windows. Certainly seems pretty quick on my laptop and it will be running on some pretty well-specced HP desktops on the ship. So unless it gives me any grief, please leave the Stellarium core unchanged for now! I don't think there is much call for a rotatable landscape outside of what I'm doing... All the best, Steve > -----Original Message----- > From: Matthew Gates [mailto:mat...@gm...] > Sent: Friday, October 31, 2008 7:59 PM > To: St...@in...; Stellarium developers public mailing list > Subject: Re: [Stellarium-pubdevel] Horizon position > > On Friday 31 October 2008, Steve Ingamells wrote: > > Hi Matthew, > > > > I suspect that it will have to be the perspective view > then, although > > a) I prefer stereographic as there's less apparent > distortion at wide > > FOV, and b) I can't use your CompassMarks plugin in that > projection as > > it wraps around and up... :-) > > I don't tend to use anything but stereographic, since it > seems to perform the best on my machine, so I didn't see the > problem. I'll have a look into that. > > > The reason I asked on the developer list is that I was hoping for > > pointers to a programming solution for my plugin to move the > > intersection of the horizon with the screen edge in > stereographic projection. > > I didn't look at the from on the message, so I didn't realise > we were talking shiptellarium (shellarium? boatellaium?). I > thought your post was just a general query. I should pay > more attention! > > Have a look at the latest revision of src/QtScriptMgr.cpp. > Specifically at the recently added > StelMainScriptAPI::moveToAltAzi. That should do what you need. > > > As far as landscapes are concerned: well, my next problem is how to > > align a landscape with the ship's heading rather than > north. I can see > > *how* to do it by altering the decorAngleRotatez value and > redrawing > > but it means I have to add code within the landscape > manager as that > > variable is private. I didn't want to go inside Stellarium > but sooner > > or later I will have to, I suppose! > > Mmm, yeah, we didn't count on rotating landscapes. :-) > > I don't have an objection to adding a public slot for setting > the rotation of the landscape. > > > > > Thanks and all the best, > > Steve > |