Orbiter-Forum  

Go Back   Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta
Register Blogs Orbinauts List Social Groups FAQ Projects Mark Forums Read

Orbiter Beta Topics related to Beta releases of Orbiter and Orbiter development.

Reply
 
Thread Tools
Old 02-03-2019, 04:02 PM   #1
martins
Orbiter Founder
Default tileedit updates

Just to let you know: I am currently migrating the tileedit tool (which allows to visually traverse the planetary texture and elevation quad-trees and has some basic elevation editing capabilities) from Matlab to Qt.

The Matlab dependency was always sub-optimal both for developers (Matlab licenses aren't free) and users (the Matlab runtimes are free but huge). So hopefully both these issues will go away by migrating to Qt.

I am currently in the process of re-implementing everything to the same level of functionality as the Matlab version, before doing any additional stuff. Most of it is there already, except for the elevation-editing part.

If you want to compile for yourself, I have updated the sources on github (https://github.com/mschweiger/orbiter-tileedit). You will need Qt to compile it (I used Qt5.6.3) and then either Qt-Creator or (better) the Qt plugin for Visual Studio for editing and compiling. Note that the Qt version hasn't been merged into the master branch yet, it's in the 1-qt-migration branch.

Let me know of any issues. Out of interest: Do coders here have experience with Qt, or are you using different tools for creating user interfaces?

Edit: Below is a link to the current development version of tileedit. I'll update this occasionally whenever I merge a new feature branch.
martins is offline   Reply With Quote
Old 02-03-2019, 05:15 PM   #2
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by martins View Post
 Out of interest: Do coders here have experience with Qt, or are you using different tools for creating user interfaces?
I have experience with Qt, but only under Python. As for other UI kits, I'm currently using WPF and UWP.
Face is offline   Reply With Quote
Thanked by:
Old 02-04-2019, 09:59 PM   #3
kuddel
Donator
Default

Just out of curiosity, while strolling through the Qt download packages...
Did you (martins) had any special reasons for choosing Qt5.6.3 ?
Or was is just the version available at the time you've tried.
I would just like to see whether I can compile your project and thinking of using the (currently) latest 5.12.1 version.

Last time I had contact with Qt was around year 2000, so the "experience" is non-existent I think
kuddel is offline   Reply With Quote
Old 02-04-2019, 10:07 PM   #4
martins
Orbiter Founder
Default

Trying to reconstruct my thought process here ... I think I tried a later version but couldn't make it work with VS2015. This may have just been my own fault of not setting up some configuration item properly, but 5.6.3 seemed to work right away, so I stuck with it. I don't think it matters very much - I would be surprised if it doesn't compile with the later version, but let me know if there are any problems.
martins is offline   Reply With Quote
Thanked by:
Old 02-04-2019, 10:15 PM   #5
kuddel
Donator
Default

Thanks for the info.
I'll try Qt 5.12.1 and will report any progress / failures.
...waiting for the 2.9GB download and then installing it might take a minute or two

BTW: I'll use Visual Studio 2015 to build your project.
kuddel is offline   Reply With Quote
Old 02-04-2019, 10:46 PM   #6
martins
Orbiter Founder
Default

Incidentally, if you want to be a developer on the tileedit project just let me know

Same goes for face, since he's been working a lot with the quadtree concept.
martins is offline   Reply With Quote
Old 02-04-2019, 10:46 PM   #7
kuddel
Donator
Default

Hey there,

ecxept for ...
Code:
1>------ Build started: Project: tileedit, Configuration: Debug x64 ------
1>  QtMsBuild: could not locate qt.targets, qt.props; project may not build correctly.
1>  cmap.cpp
1>  ddsread.cpp
1>  elvread.cpp
1>  main.cpp
1>  tile.cpp
1>  tilecanvas.cpp
1>  tileedit.cpp
1>tileedit.cpp(2): fatal error C1083: Cannot open include file: 'ui_tileedit.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
...
It went "flawlessly" so far

Is 'ui_tileedit.h' missing or should this be created (by Qt)?
kuddel is offline   Reply With Quote
Old 02-04-2019, 10:49 PM   #8
martins
Orbiter Founder
Default

Ah ok. I didn't include that in the repository because I thought this was magically auto-created by Qt. *I* certainly didn't write that file. Let me see if I can figure out what's going on ...

Edit: Just downloaded a fresh clone of the repository, to be really sure, and it does work for me. The file should be generated under tileedit/GeneratedFiles. So maybe there is a Qt version conflict ... Why can't these things just work
martins is offline   Reply With Quote
Thanked by:
Old 02-04-2019, 10:55 PM   #9
kuddel
Donator
Default

UPDATE: Now it works! I could compile tileedit!
2nd time the file (ui_tileedit.h) was created. One of those "when it doesn't work, try again" instances!
kuddel is offline   Reply With Quote
Old 02-04-2019, 11:15 PM   #10
martins
Orbiter Founder
Default

Quote:
Originally Posted by kuddel View Post
 UPDATE: Now it works! I could compile tileedit!
2nd time the file (ui_tileedit.h) was created. One of those "when it doesn't work, try again" instances!
Allegedly Einstein said it's a sign of madness to try the same thing repeatedly and expect different outcomes. Maybe computers were a bit more predictable in his time
martins is offline   Reply With Quote
Old 02-05-2019, 09:05 AM   #11
jarmonik
Beta Tester

Default

I have some experience about the Qt. I wrote MathPlanner application for Linux using the Qt about 20 years ago. I would have probably ported and maintained the application on windows since it would still be usefull but sadly there were no "free" version of Qt available for windows back then. Qt is the best one I know of and I might start using it again, now that's it available. I wonder what new has appeared during the past 20 years. (no need to answer)

Last edited by jarmonik; 02-05-2019 at 09:19 AM.
jarmonik is offline   Reply With Quote
Thanked by:
Old 02-05-2019, 10:55 AM   #12
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by kuddel View Post
 UPDATE: Now it works! I could compile tileedit!
2nd time the file (ui_tileedit.h) was created. One of those "when it doesn't work, try again" instances!
Yeah, on some conference I attended years ago, an MS dev demonstrated the then "new" WPF MVVM approach and its benefits, only to promptly fail being able to compile with a completely unlogical compiler error. After some minutes being clueless in front of the audience, he just proclaimed "if in doubt, restart Visual Studio". And indeed it compiled just fine after restart.
Face is offline   Reply With Quote
Thanked by:
Old 02-05-2019, 12:17 PM   #13
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by Face View Post
  Yeah, on some conference I attended years ago, an MS dev demonstrated the then "new" WPF MVVM approach and its benefits, only to promptly fail being able to compile with a completely unlogical compiler error. After some minutes being clueless in front of the audience, he just proclaimed "if in doubt, restart Visual Studio". And indeed it compiled just fine after restart.
You can never use "Rebuild" too often with VS.
Urwumpe is offline   Reply With Quote
Thanked by:
Old 02-05-2019, 12:38 PM   #14
Face
Beta Tester
 
Face's Avatar

Default

Quote:
Originally Posted by Urwumpe View Post
 You can never use "Rebuild" too often with VS.
Indeed this as well. Solutions start to grow projects over projects, and with some links between them - perhaps riddled with custom batch copy scripts - you often find yourself in the situation that a fresh clone will only build after 2 or 3 rebuilds. Very annoying.
Face is offline   Reply With Quote
Old 02-05-2019, 12:41 PM   #15
Urwumpe
Certain Super User
 
Urwumpe's Avatar

Default

Quote:
Originally Posted by Face View Post
 Indeed this as well. Solutions start to grow projects over projects, and with some links between them - perhaps riddled with custom batch copy scripts - you often find yourself in the situation that a fresh clone will only build after 2 or 3 rebuilds. Very annoying.
Also what VS keeps in caches and precompiled header files can quickly be outdated after updating from repository.
Urwumpe is offline   Reply With Quote
Reply

  Orbiter-Forum > Orbiter Space Flight Simulator > Orbiter Beta


Thread Tools

Posting Rules
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


All times are GMT. The time now is 11:33 AM.

Quick Links Need Help?


About Us | Rules & Guidelines | TOS Policy | Privacy Policy

Orbiter-Forum is hosted at Orbithangar.com
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2007 - 2017, Orbiter-Forum.com. All rights reserved.