Cruisers Forum
 


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 04-05-2011, 09:27   #16
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Free OpenCPN Icons

Windfarm...
Attached Images
 
Attached Files
File Type: doc windfarm.xpm.doc (498 Bytes, 125 views)
nohal is offline   Reply With Quote
Old 04-05-2011, 09:50   #17
Registered User

Join Date: Feb 2010
Posts: 619
Re: Free OpenCPN Icons

Thanks so much, Pavel... !!!

While it is still free, maybe the last one this Spring...

I need a _generalized_ Radio-Call-In-Point, that does not exist in the libraries. Maybe it could just point to all 4 Cardinal directions... I will know what is the relevant direction in this case. The example attached is for vessels heading West ("ch 80" is a textual description item).

P.
Attached Thumbnails
Click image for larger version

Name:	windfarms.jpg
Views:	277
Size:	56.3 KB
ID:	26959  
Attached Images
 
PjotrC is offline   Reply With Quote
Old 04-05-2011, 10:21   #18
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Free OpenCPN Icons

Naming follows the existing PLIB vector symbols...
Attached Images
     
Attached Files
File Type: doc rcldef.xpm.doc (1.1 KB, 126 views)
File Type: doc rdocal_e.xpm.doc (460 Bytes, 108 views)
File Type: doc rdocal_n.xpm.doc (488 Bytes, 107 views)
File Type: doc rdocal_s.xpm.doc (488 Bytes, 103 views)
File Type: doc rdocal_w.xpm.doc (460 Bytes, 109 views)
nohal is offline   Reply With Quote
Old 04-05-2011, 10:42   #19
Registered User

Join Date: Feb 2010
Posts: 619
Re: Free OpenCPN Icons

Pavel...

Thanks soooo much... !

Piotr
PjotrC is offline   Reply With Quote
Old 10-05-2011, 10:29   #20
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Free OpenCPN Icons FYI:in OpenCPN Beta ownship icon now works!

FYI:in OpenCPN Beta ownship icon now works!
http://www.cruisersforum.com/forums/...tml#post681675

so go crazy,have fun!
HappySeagull is offline   Reply With Quote
Old 17-05-2011, 03:35   #21
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Free OpenCPN Icons

Two sample ownship icons. The effect of the "offcenter" one is that the COG predictor begins at the edge of the circle (because the edge of the circle is in the center of the image )...

Just rename the one you want to try to ownship.xpm and place to UserIcons folder...

For those interested and still having problems to convert a transparent PNG to XPM, I use GraphicsMagick Image Processing System and the magic command is
Code:
gm convert ownship_offcenter.png ownship_offcenter.xpm
If you are stuck already trying to create the transparent PNG, I currently use Pinta: Painting Made Simple - Pinta , but any normal image editor will do for you.

Hint: if the background of your image is chequered in the image editor, like in , its OK, if it's white, it's not transparent, thus not OK.

Pavel
Attached Images
 
Attached Files
File Type: doc ownship_center.xpm.doc (622 Bytes, 139 views)
File Type: doc ownship_offcenter.xpm.doc (1.1 KB, 100 views)
nohal is offline   Reply With Quote
Old 17-05-2011, 08:32   #22
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Free OpenCPN Icons

My alternative to create new icons is to use on-line
favicon.ico Generator
to design and download a favicon (.ico) then I open it with Xview (a free must have anyway XnView - Logiciel de visualisation, conversion et organisation des images et photos )
to directly save it in .xpm format
Being modest as all great artists must be, I'll keep my awesome icons to myself...
sailorF54 is offline   Reply With Quote
Old 17-05-2011, 22:48   #23
Registered User

Join Date: Oct 2009
Location: Lelystad, The Netherlands
Boat: vd Stadt 44, Ben the Boat
Posts: 238
Re: Free OpenCPN Icons

Quote:
Originally Posted by sailorF54 View Post
Xview (a free must have anyway)
Nice
champ8242 is online now   Reply With Quote
Old 21-05-2011, 05:03   #24
Registered User

Join Date: Feb 2010
Posts: 619
Re: Free OpenCPN Icons

Dear IconMasters...

I have three running 2.4.506 environments:

1. Downloaded installation kit
2. Self-built Solution "opencpn" from GIT source
3. Self-built PACKAGE from _the same_ source (except for the post-build step, which still breaks)

I have selected the wx28 Unicode libraries in the linker command lines and set Character code to Unicode for all projects. All seems to work well in my builds (local language, Degree signs on the lat-lon grid, Plugin identification), except the UserIcons...

In the downloaded kit all works well.

In the self-built "opencpn" environment all works well.

In the self-built PACKAGE environment all User Icons get the name of "opencpn_2". The images are all there and OK, but all are called the same... the source is still the same...

In the source I see that the icon name is rather simply constructed from the filename, depending a little on __WXMSW__, but all else works as it should.

Any hints?

Thanks in advance,

Piotr
Attached Thumbnails
Click image for larger version

Name:	usericons_id.jpg
Views:	227
Size:	150.9 KB
ID:	27620  
PjotrC is offline   Reply With Quote
Old 21-05-2011, 05:40   #25
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Free OpenCPN Icons

Quote:
Originally Posted by sailorF54 View Post
My alternative to create new icons is to use on-line
favicon.ico Generator
to design and download a favicon (.ico) then I open it with Xview (a free must have anyway XnView - Logiciel de visualisation, conversion et organisation des images et photos )
to directly save it in .xpm format
Being modest as all great artists must be, I'll keep my awesome icons to myself...
You can save the .xpm icon with fewer colors than the default 256, down to 8. (depending of course on how many you used)

The only snag with this procedure it that the background is white and not tranparent.
You can make it transparent however by opening the .xpm file and changing the #ffffff hexa code to None (and deleting the extra fff)
See screenshots
CR-Hexact, for instance,
CR-Hexact : éditeur hexadécimal
makes this procedure painless

(Thanks to the French geek Marga who pointed that out to me)
Attached Thumbnails
Click image for larger version

Name:	Hexa.jpg
Views:	175
Size:	66.0 KB
ID:	27621   Click image for larger version

Name:	Hexa2.jpg
Views:	148
Size:	88.5 KB
ID:	27622  

sailorF54 is offline   Reply With Quote
Old 21-05-2011, 06:44   #26
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Re: Free OpenCPN Icons

Quote:
Originally Posted by sailorF54 View Post
The only snag with this procedure it that the background is white and not tranparent.
According to the XPM spec the value for transparency is 'None'. This is also stated on the German Wikipedia page (but not on the English one) - see: X PixMap

But I guess there is another way to achieve the transparency in a XPM file without the need to open and change the file itself:
Before saving the file in XPM format you have to change your image file to one using a color-palette, which means from true color (24 or 32 Bit) to color-palette (8 Bit).

After this conversion there is an option 'Edit Color palette' (I have to guess the English names as I am using the German version). It is the last menu entry in 'Picture' and has the short-cut 'STRG + M' (just in case the short-cuts are language independent).

In the newly opened window you see each color of the palette. Now you can select one by clicking on it and check the 'Transparency' checkbox on the right - et voilà, you have selected your color for transparency which will show up as 'None' after you have saved the image in XPM format.

Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
Netsurfer is offline   Reply With Quote
Old 21-05-2011, 07:13   #27
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: Free OpenCPN Icons

Quote:
Originally Posted by Netsurfer View Post

But I guess there is another way to achieve the transparency in a XPM file ...
Doch, Prima !
sailorF54 is offline   Reply With Quote
Old 21-05-2011, 17:27   #28
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Free OpenCPN Icons

@Piotr: Interesting, I've never seen something like this. I would be suspecting the ANSI vs. Unicode problem in your build environment - the setup package produced from the build includes the dlls from git (2.8.10 - 100% unicode), while local build is linked and runs against your local wx libraries (perhaps could be non-unicode) - very hard to predict the resulting behavior.
@palette reducers: If you don't mind using the command line, graphicsmagick (and I think imagemagick as well) reduces the palette to the colors actually used in the image while doing the png->xpm conversion, so you actually end up having an image with 2 or 3 colors in the palette in our case. The percentual difference in comparison even to an 8-bit (256 colors) palette is of course enormous for something 10x20 pixels. Practical effect is very little though... And if you really do not like the command line, you can write this 1-line batch file, place it on your desktop and drag the png files over it. Should be something like a variation of:
Code:
gm convert %1 %1.xpm
Pavel
nohal is offline   Reply With Quote
Old 22-05-2011, 03:08   #29
Registered User

Join Date: Feb 2010
Posts: 619
Re: Free OpenCPN Icons

Quote:
Originally Posted by nohal View Post
I would be suspecting the ANSI vs. Unicode problem in your build environment
Pavel,

Yes, that was my first guess too...
It must be a problem with an unchecked limit for path length somewhere or a dot inside directory name...
I moved all files from
Code:
C:\Users\Tomek\opencpn\build\_CPack_Packages\win32\NSIS\opencpn_2.4.506_setup
to
Code:
C:\o
and all is well.

Note that "opencpn_2" is a substring of the long path.

If I manage to find it explicitly, I will file a report.

Piotr

PS. Yes it is the dot inside directory name...
PjotrC is offline   Reply With Quote
Old 22-05-2011, 07:22   #30
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: Free OpenCPN Icons

It's pretty interesting to open the xpm's in a text editor.They can be edited there...see?you can choose colours and create transparency as well.Here's Nohal's "rdocal_e.xpm"...

Code:
/* XPM */
static char *rdocal_e[] = {
/* columns rows colors chars-per-pixel */
"20 13 3 1",
"  c black",
". c #B200FF",
"X c None",
/* pixels */
"XXXXX..XXXXXXXXXXXXX",
"XX...XX...XXXXXXXXXX",
"X.XXXXXXXX...XXXXXXX",
"X.XXXXXXXX.XX..XXXXX",
"X.XXXXXXXX.XXXX.XXXX",
".XXXXXXXXXX.XXXX..XX",
".XXXXXXXXXX.XXXXXX..",
".XXXXXXXXXX.XXXX..XX",
"X.XXXXXXXX.XXXX.XXXX",
"X.XXXXXXXX.XX..XXXXX",
"X.XXXXXXXX...XXXXXXX",
"XX...XX...XXXXXXXXXX",
"XXXXX..XXXXXXXXXXXXX"
};
Another interesting thing...here's Nohal's icon just opened and resaved(with a different name) in Greenfish Icon Editor...it displays exactly the same.

Code:
/* XPM */
static char *rdocal_eGFIE[] = {
"20 13 4 1 0 0",
"  c #000000",
"! c #B200FF",
"# c #FFFFFF",
"$ c #000000",
"$$$$$!!$$$$$$$$$$$$$",
"$$!!!$$!!!$$$$$$$$$$",
"$!$$$$$$$$!!!$$$$$$$",
"$!$$$$$$$$!$$!!$$$$$",
"$!$$$$$$$$!$$$$!$$$$",
"!$$$$$$$$$$!$$$$!!$$",
"!$$$$$$$$$$!$$$$$$!!",
"!$$$$$$$$$$!$$$$!!$$",
"$!$$$$$$$$!$$$$!$$$$",
"$!$$$$$$$$!$$!!$$$$$",
"$!$$$$$$$$!!!$$$$$$$",
"$$!!!$$!!!$$$$$$$$$$",
"$$$$$!!$$$$$$$$$$$$$"
};
Type an Icon!..kinda fun on a really rainy day.
HappySeagull is offline   Reply With Quote
Reply


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
OpenCPN 2.3.0 dlymn OpenCPN 3 29-06-2011 01:44
Icons Jerry Forum Tech Support & Site Help 6 23-02-2006 00:43

Advertise Here


All times are GMT -7. The time now is 01:52.


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.