Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 21-10-2014, 17:56   #31
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Building and installing plugins on OS X

The screenshot of pink tinted areas of chart with texture compression/caching enabled.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2014-10-21 at 22.45.12.jpg
Views:	152
Size:	346.4 KB
ID:	90111  
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 21-10-2014, 17:57   #32
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Building and installing plugins on OS X

To be clear, there are three possibilities:

1) without compression, or caching
2) with compression without caching
3) with compression and with caching
seandepagnier is offline   Reply With Quote
Old 21-10-2014, 18:05   #33
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Building and installing plugins on OS X

Quote:
Originally Posted by Mollymawk View Post
The screenshot of pink tinted areas of chart with texture compression/caching enabled.
The compression drops 24bbp to to 565 bitdepth so some rounding of the red might cause this. Consider a rgb value of (248, 247, 247) getting truncated to (248, 244, 240).

It should occur without caching, but in this case maybe not because a different algorithm is used (faster but not as nice). Perhaps it should round up (towards white) instead of down. I don't know what chart you have, but it would be interesting to compare and see if this occurs on other operating systems, if it doesn't then it is something else.
seandepagnier is offline   Reply With Quote
Old 21-10-2014, 18:16   #34
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Building and installing plugins on OS X

if that is your boat position.. you are nearly exactly opposite of me on the world. 10,300 miles away.
seandepagnier is offline   Reply With Quote
Old 21-10-2014, 19:17   #35
Registered User
 
Mollymawk's Avatar

Join Date: Nov 2009
Location: on the high seas
Boat: "Mollymawk" 50ft Steel Ketch
Posts: 149
Re: Building and installing plugins on OS X

Quote:
Originally Posted by boat_alexandra View Post
To be clear, there are three possibilities:

1) without compression, or caching
2) with compression without caching
3) with compression and with caching
I don't understand. There is only one option. "Texture Compression with Caching".

Quote:
Originally Posted by boat_alexandra View Post
The compression drops 24bbp to to 565 bitdepth so some rounding of the red might cause this. Consider a rgb value of (248, 247, 247) getting truncated to (248, 244, 240).

It should occur without caching, but in this case maybe not because a different algorithm is used (faster but not as nice). Perhaps it should round up (towards white) instead of down. I don't know what chart you have, but it would be interesting to compare and see if this occurs on other operating systems, if it doesn't then it is something else.
It only occurs with "Texture Compression with Caching" enabled.
The chart is an official Brazilian Government (DHN) BSB.
It does occur on other DHN charts. I haven't tried charts from other producers.
It doesn't seem to always occur in the same areas, but that may be to do with zoom level.

The only areas where it is really strongly visible are (supposed to be) white, but it does happen in other areas as well.

Quote:
Originally Posted by boat_alexandra View Post
if that is your boat position.. you are nearly exactly opposite of me on the world. 10,300 miles away.
Wow! It is indeed my position. A lovely little quite bay. (Sadly, the only detail chart of it - Garmin Bluechart - does not work in OCPN...)
__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 21-10-2014, 20:05   #36
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Building and installing plugins on OS X

I have updated the weatherfax plugin in github to follow wmm, so you should be able to build a package for OS X now.
seandepagnier is offline   Reply With Quote
Old 22-10-2014, 10:30   #37
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Building and installing plugins on OS X

Sean...
Builds and runs with a couple of glitches:
- Not all the translations in the Packages project are available, which prevents the creation of the package - easy to fix with dummy files, but we should really invent something a bit smarter
- The data files are not merged properly into the package
- The z-order is a mess on Mac - generally it looks like the dialogs need wxSTAY_ON_TOP style, which seems to have worked for objsearch, but I did not test it on any other platform with these changes.

Pavel
nohal is offline   Reply With Quote
Old 22-10-2014, 10:43   #38
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
Re: Building and installing plugins on OS X

I'm wondering a little bit why such code changes as e.g. "wxSTAY_ON_TOP" are not encapsulated with #ifdef __WXOSX__ although the commit says it was done for Mac only.
I have seen that for other code changes as well.

Gerhard
CarCode is offline   Reply With Quote
Old 22-10-2014, 10:52   #39
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Building and installing plugins on OS X

Gerhard...
Should they? Did they break something?

Pavel
nohal is offline   Reply With Quote
Old 22-10-2014, 12:05   #40
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,547
Re: Building and installing plugins on OS X

Quote:
Originally Posted by nohal View Post
Gerhard...
Should they? Did they break something?

Pavel
I don't know how it works with Linux or Windows. But obviously there are differences how compilers and/or compiled code works/runs at different OS.
Maybe it's a problem of wxWidgets.
Gerhard
CarCode is offline   Reply With Quote
Old 22-10-2014, 18:16   #41
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: Building and installing plugins on OS X

Quote:
Originally Posted by nohal View Post
Sean...
Builds and runs with a couple of glitches:
- Not all the translations in the Packages project are available, which prevents the
creation of the package - easy to fix with dummy files, but we should really invent something a bit smarter
I can't find any reference to each individual file in the cmake lists. How is this caused?
Quote:
- The data files are not merged properly into the package
I don't see the difference between wmm_pi and weatherfax_pi here.
Quote:
- The z-order is a mess on Mac - generally it looks like the dialogs need wxSTAY_ON_TOP style, which seems to have worked for objsearch, but I did not test it on any other platform with these changes.

Pavel

I have the same problem with z-order in wxqt. The plugin windows appear under the chart canvas. Basically it needs to be fixed in wxWidgets, not our code. In the meantime maybe we can stick something in our build files to redefine another constant that is always used in window flags to be what it is, plus wxSTAY_ON_TOP if it is a mac to avoid changing the actual source code.
seandepagnier is offline   Reply With Quote
Old 22-10-2014, 18:50   #42
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Building and installing plugins on OS X

Quote:
Originally Posted by boat_alexandra View Post
I can't find any reference to each individual file in the cmake lists. How is this caused?

I don't see the difference between wmm_pi and weatherfax_pi here.
That is the problem - it is now hardcoded in the package project XML. And I don't package the coefitient file on Mac at all - waiting for the WMM release for the next epoch coming in December to make the final decision how to handle that.
We should most likely implement a way bigger part of that XML generated by cmake to make it universal. It seems to be produced by some sort of object serializer, so is a real treat to read and understand, but definitely the automatization is doable.
Quote:
I have the same problem with z-order in wxqt. The plugin windows appear under the chart canvas. Basically it needs to be fixed in wxWidgets, not our code. In the meantime maybe we can stick something in our build files to redefine another constant that is always used in window flags to be what it is, plus wxSTAY_ON_TOP if it is a mac to avoid changing the actual source code.
I need some more testing - wxSTAY_ON_TOP seems not to break other platforms (for my plugins) so far, so I'm good with it everywhere. Until I find otherwise, of course.

Pavel
nohal is offline   Reply With Quote
Reply

Tags
plug


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Plugins and outboard and laptop! Algarve OpenCPN 1 01-02-2014 19:00
Installing Debugger and VDR Plugins zodd OpenCPN 26 08-08-2013 07:40
Installateur de plugins, Install software for plugins. Gilletarom OpenCPN 3 30-04-2013 05:57
Wood That Won't Warp For Building Entire Kitchen Counter, and Advice On Building Hatc albergsailor Monohull Sailboats 30 25-09-2012 09:15
Building Plugins in 2.3.0 JonPan OpenCPN 0 18-12-2010 14:48

Advertise Here


All times are GMT -7. The time now is 21:14.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.