Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-10-2014, 18: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:	55
Size:	346.4 KB
ID:	90111  
__________________

__________________
www.yachtmollymawk.com
Mollymawk is offline   Reply With Quote
Old 21-10-2014, 18:57   #32
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,822
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
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 21-10-2014, 19:05   #33
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,822
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 21-10-2014, 19:16   #34
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,822
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 21-10-2014, 20: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, 21:05   #36
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,822
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 22-10-2014, 11:30   #37
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
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, 11:43   #38
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
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, 11:52   #39
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
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, 13:05   #40
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,778
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, 19:16   #41
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: chesapeake bay
Boat: bristol 27
Posts: 2,822
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 22-10-2014, 19:50   #42
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,020
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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 20:00
Installing Debugger and VDR Plugins zodd OpenCPN 26 08-08-2013 08:40
Installateur de plugins, Install software for plugins. Gilletarom OpenCPN 3 30-04-2013 06:57
Wood That Won't Warp For Building Entire Kitchen Counter, and Advice On Building Hatc albergsailor Monohull Sailboats 30 25-09-2012 10:15
Building Plugins in 2.3.0 JonPan OpenCPN 0 18-12-2010 15:48



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18:46.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.