Author Topic: Take a look at my newly improved PCB viewer / Gerber Viewer  (Read 32035 times)

0 Members and 1 Guest are viewing this topic.

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Take a look at my newly improved PCB viewer / Gerber Viewer
« on: September 06, 2015, 10:45:57 pm »




Adding IPC356 bare board flying probe test file, enables design browsing and components display. At the moment, there is no component library. Instead I am guessing using geometry of pads and components designator names from IPC356 testpoints. There is also a cross-check interface to OrCad schematic, see youtube video:

Free download zofzpcb.com
 
The following users thanked this post: BravoV, S13

Offline CatalinaWOW

  • Super Contributor
  • ***
  • Posts: 2789
  • Country: us
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #1 on: September 06, 2015, 11:03:02 pm »
Interesting.  I hadn't seen your program before.  For others equally ignorant, here is a link.

http://www.zofzpcb.com/
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #2 on: September 07, 2015, 12:25:24 pm »
Your software looks interesting, but your EULA scares me to shit pure steel bricks.

Why are you so restrictive on freeware? I don't get it!

What about FOSS and Linux support?
 

Offline AlfBaz

  • Super Contributor
  • ***
  • Posts: 1972
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #3 on: September 07, 2015, 12:30:36 pm »
If memory serves, there's a thread on here somewhere where Free_Electron and the OP exchanged ideas to improve it a year or so ago

Judging from those images, it looks like it has come a long way since then :-+
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1838
  • Country: ca
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #4 on: September 07, 2015, 06:14:26 pm »
At first glance it looks great! good job!

The EULA is not that bad, it's freeware and you can basically do anything you want with it except sell it, decompile it, or otherwise try to figure out how it works.   Other than those restrictions, it's not that bad for a EULA.

It's not FOSS. 

I am running it on Linux, and it runs OK under Wine.  So far no major problems, and I've tried many features.  The application says it uses DirectX 9 and  Wine emulates/translates DirectX calls so it runs fast and is quite usable  There is some font issues that make the text of the menus difficult to read. I've never had font issues under Wine before, so I attribute this to the home-brew menu system this application is using.

I would love to see the cross-probing interface opened up, so that someone can plug it into KiCad.

Good job @zofz !
« Last Edit: September 07, 2015, 06:17:39 pm by codeboy2k »
 

Online BravoV

  • Super Contributor
  • ***
  • Posts: 5407
  • Country: 00
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #5 on: September 07, 2015, 06:21:55 pm »
Great stuff , thank you !   :clap:

I would love to see the cross-probing interface opened up, so that someone can plug it into KiCad.

+1  :-+

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1838
  • Country: ca
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #6 on: September 07, 2015, 08:33:07 pm »
And if the cross-probing interface is opened up, I'd like to see it done over TCP/IP, even for a local connection.  This means that the app can run in Wine and still communicate to KiCad which will be running in Linux.    If it's a Windows DLL or some other proprietary windows message passing interface then it's not going to work cross platform or under emulations...

Using TCP for cross probing also opens up interesting other possibilities. For example, cross probing could also be be done between two gerber viewers on different hosts, not just between the gerbers and schematic capture.   Then you and a coworker can look at gerbers together for a collaboration. Or you and your board house...
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #7 on: September 07, 2015, 09:40:59 pm »
Thanks,
TCP or UDP interface, crossprobe and navigation - i mean exact the same camera position and rotation,  that is what i am thinking of.  To form something like shared desktop.
Later, to overcome "corporate firewalls", it shoukd be using http and third server, maybe.

At the moment there are two: WM_COPYDATA and file based. I will put them to the webpage.
 

Offline alexanderbrevig

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: no
  • Musician, programmer and EE hobbyist
    • alexanderbrevig.com
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #8 on: September 07, 2015, 10:13:10 pm »
Wow! Really cool stuff :) What lib are you using for 3d rendering?

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #9 on: September 08, 2015, 04:22:51 am »
The library: I needed to compress the layer vertex data, it is only 2D + Z[n] as constant. That somehow forced me to do direct shader programming. But there is a DXUT as a starting point.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #10 on: September 08, 2015, 04:24:29 am »
The current cross-check interfaces description: WM_COPYDATA and file, can be downloaded at http://www.zofzpcb.com/Cross-Check.html
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6004
  • Country: us
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #11 on: September 08, 2015, 05:32:33 am »
Drain the swamp.
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #12 on: September 08, 2015, 07:12:28 am »
Thanks,
TCP or UDP interface, crossprobe and navigation - i mean exact the same camera position and rotation,  that is what i am thinking of.  To form something like shared desktop.
Later, to overcome "corporate firewalls", it shoukd be using http and third server, maybe.

At the moment there are two: WM_COPYDATA and file based. I will put them to the webpage.

Your software seems very interesting, really.

Can you explain your reason to make a freeware with that kind of restrictive license? Or do you plan to eventually make it commercial?

If you plan to keep it freeware? Why that EULA? Why not making it Open Source?

Despite your software seems really very interesting with many nice feature, I'm afraid of propietary software these days for different reasons. Some of them are: Vendor lock-in, expensive cost, security, unable to modify or port it to other platforms...
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #13 on: September 08, 2015, 08:04:50 am »
Thanks,
TCP or UDP interface, crossprobe and navigation - i mean exact the same camera position and rotation,  that is what i am thinking of.  To form something like shared desktop.
Later, to overcome "corporate firewalls", it shoukd be using http and third server, maybe.

At the moment there are two: WM_COPYDATA and file based. I will put them to the webpage.

Your software seems very interesting, really.

Can you explain your reason to make a freeware with that kind of restrictive license? Or do you plan to eventually make it commercial?

If you plan to keep it freeware? Why that EULA? Why not making it Open Source?

Despite your software seems really very interesting with many nice feature, I'm afraid of propietary software these days for different reasons. Some of them are: Vendor lock-in, expensive cost, security, unable to modify or port it to other platforms...

yes, This is a question I ask myself too. The most important is: how can I continue to provide this software free of charge, and realize many ideas I have? vendor lock: I will not close any feature I have already opened. I might include some new features for a commerce, however. I may also convert zofzpcb to truly free software.  I do not know. I am letting to know, anyone who bothers to read, about any internet communication, in the help file, and I can expose the sources to some trusted authority, if required. What I have at the moment is a http query for a current version, a single text file loaded, containing the version number. zofzpcb.com/version/info.txt . I run your default browser, to display the help page. actions defined in the help menu. I have bought a certificate, so I am traceable and the program is protected against third party modifications on the download way. At the moment of crash, there is a possibility to automatically send a crash log/info/etc. all you can examine before sending, or chose not to send. (any way I need gerbers in case of debugging, so I need a email contact anyway). I was concerned that such question will be asked, but it was asked much later then I expected. hmm. anyway, the program is clean, the website uses google analytic. That is all.
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1838
  • Country: ca
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #14 on: September 08, 2015, 03:54:16 pm »
The current cross-check interfaces description: WM_COPYDATA and file, can be downloaded at http://www.zofzpcb.com/Cross-Check.html

Excellent! Thanks for your quick response to the suggestion too. I think the file based interface can work between Windows app on Linux and a native Linux app like KiCad

 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #15 on: September 08, 2015, 04:09:50 pm »
The current cross-check interfaces description: WM_COPYDATA and file, can be downloaded at http://www.zofzpcb.com/Cross-Check.html

Excellent! Thanks for your quick response to the suggestion too. I think the file based interface can work between Windows app on Linux and a native Linux app like KiCad
Anyway, i   am willing to create the tcp interface. And maybe Kicad have already something done about this. There also is a idea to make adobe pdf plugin, many cad systems create schematics with rich annotations. Then click able pdf.

Sent from my SM-T800 using Tapatalk

 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8295
  • Country: my
  • reassessing directives...
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #16 on: September 11, 2015, 02:50:19 am »
bug report...

1) color preset not saved correctly. when i set all layers colors and save, next time i changed color preset and set back to my theme, color changed to what i did not pick. the only way afaik to restore desired color is by saving rendered board in a file.
2) gui issue: why dont pan with right click? universe rotate for right click is less practical imho. keep pressing shift may induce carpal tunnel on my left hand. any other sw capable of single hand navigation.
3) gui issue: mousewheel scroll zoom too slow, i cant set the zoom rate. many scroll to get desired zoom may induce carpal tunnel in my index finger.
4) sometime saving and reloading color preset generates error (see attached picture)

my platform, WinXP SP3 32bit. anyway some of the previous issues discussed sometime ago have been solved, keep up the good work. i'm learning to populate 3d component, any easy clue without using orcad?
« Last Edit: September 11, 2015, 02:52:08 am by Mechatrommer »
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8295
  • Country: my
  • reassessing directives...
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #17 on: September 11, 2015, 03:09:37 am »
also how do it make the core/prepeg opaque? i dont have specific whole opaque gerber for the board, i only have board outline and zofpcb just render it as... an outline. i dont want to keep disabling and enabling the bottom (or top) layers/slikscreen/mask while rotating the pcb top to bottom and back. non opaque board messing the view with crisscrossing bottom and top traces (and copper pours) as arrowed below...
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8295
  • Country: my
  • reassessing directives...
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #18 on: September 11, 2015, 04:33:05 am »
ok got it with "auto load function". i must say this App is several magnitude better than gEDA Gerber Viewer, gerv (functionally), even without 3d components i'm currently in. except the gui and some issues i raised earlier. i believe this App must be told to the world, it deserves recognition, keep it up!... :-+
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1264
  • Country: 00
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #19 on: September 12, 2015, 05:25:51 pm »
I'll give it a try when the open-source native Linux version has been released.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #20 on: September 13, 2015, 12:15:58 am »
I'll give it a try when the open-source native Linux multiplataform version has been released.

Fixed! ;)
 

Offline MagicSmoker

  • Frequent Contributor
  • **
  • Posts: 752
  • Country: us
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #21 on: September 13, 2015, 03:15:50 am »
...
Despite your software seems really very interesting with many nice feature, I'm afraid of propietary software these days for different reasons. Some of them are: Vendor lock-in, expensive cost, security, unable to modify or port it to other platforms...

Uh... I'm pretty sure the OP said it's free...  :-DD

And to the OP - impressive job!

 

Online Mechatrommer

  • Super Contributor
  • ***
  • Posts: 8295
  • Country: my
  • reassessing directives...
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #22 on: September 13, 2015, 03:21:01 am »
I'll give it a try when the open-source native Linux multiplataform multiplatform version has been released.
Fixed! ;)
Fixed! ;)... until then, let us wingows and wine people enjoy the nice app, you can continue with gEDA. ;)
if something can select, how cant it be intelligent? if something is intelligent, how cant it exist?
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #23 on: September 13, 2015, 10:27:19 am »
I'll give it a try when the open-source native Linux multiplataform multiplatform version has been released.
Fixed! ;)
Fixed! ;)... until then, let us wingows and wine people enjoy the nice app, you can continue with gEDA. ;)

I don't use gEDA. I'm an Eagle user slowly transitioning to KiCad.

I don't know weird programming languages and fork my EDA tool. I barely know about programming at all.

I'm a newbie and KiCad might be more than enough, just I miss better file format interoperability and better UX.

By the time I would need something like Altium, I hope KiCad got improved a lot and even being a contributor of it in some form.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #24 on: September 16, 2015, 04:57:49 pm »
bug report...

1) color preset not saved correctly. when i set all layers colors and save, next time i changed color preset and set back to my theme, color changed to what i did not pick. the only way afaik to restore desired color is by saving rendered board in a file.
2) gui issue: why dont pan with right click? universe rotate for right click is less practical imho. keep pressing shift may induce carpal tunnel on my left hand. any other sw capable of single hand navigation.
3) gui issue: mousewheel scroll zoom too slow, i cant set the zoom rate. many scroll to get desired zoom may induce carpal tunnel in my index finger.
4) sometime saving and reloading color preset generates error (see attached picture)

my platform, WinXP SP3 32bit. anyway some of the previous issues discussed sometime ago have been solved, keep up the good work. i'm learning to populate 3d component, any easy clue without using orcad?
Thanks,
1. color save/restore bug report is clear.
2. Possibly no one uses right-drag anyway. I would not destroy too much, if I make camera rotation on shift-right drag and use right drag for moving. I will consult a long time user for this. The other way is to make everything configurable, but that makes me feel pain.
3. OK, I will think about a nice and simple way to adjust (or dynamically auto-adjust) the zoom speed.
4. A troll must have been changing the code when I was not looking OR unknown are paths of the user.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #25 on: September 16, 2015, 05:04:29 pm »
The way to show components is to load IPC356 file. As Wikipedia lists, this file is possible to export by (almost) all CAD packages. Full name: bare board electrical test file (or flying probe test file). I will read it if it contains net names, and designators, so recreating this file via CAM software from Gerber makes no sense. Problems: load example 1, check the file there.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #26 on: September 16, 2015, 05:15:41 pm »
also how do it make the core/prepeg opaque? i dont have specific whole opaque gerber for the board, i only have board outline and zofpcb just render it as... an outline. i dont want to keep disabling and enabling the bottom (or top) layers/slikscreen/mask while rotating the pcb top to bottom and back. non opaque board messing the view with crisscrossing bottom and top traces (and copper pours) as arrowed below...
It looks like some aspects of my stack-layer are not intuitive. I am doing auto insert of FR4 if you set the board thickness. This is quite hidden, one must select the board outline to see the total-thickness setting (and the board outline must be there...). It is the second time I see that someone missed this. - Important! Of course Auto does it all, if it works...    Of course you have discovered the "volume" slider later.
 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 1919
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #27 on: September 16, 2015, 10:13:50 pm »
I checked out your viewer the other day zofz - it is pretty cool.  Keep up the good work!
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 6942
  • Country: us
    • SiliconValleyGarage
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #28 on: September 19, 2015, 01:39:18 am »
just tried one of my 'monsters' ... took over 3 hours to load and crunch but  renders perfectly
Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 15439
  • Country: nl
    • NCT Developments
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #29 on: September 19, 2015, 02:25:45 am »
Unfortunately it doesn't work from Windows in a Virtualbox even with directx9 installed (Why isn't that included? It doesn't make sense to distribute software without it's key components). Too bad there is no native Linux version...
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #30 on: October 12, 2015, 11:00:11 pm »
 I was going to try it in VirtualBox :(
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #31 on: November 07, 2015, 04:43:11 am »
Any news?
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #32 on: January 10, 2016, 01:53:20 am »
A new version! :scared:
As requested:
Component individual hide and swap to bottom (for THT) options.
Right mouse button drag moves the PCB,
Additionally:
zofzproj file saves colors and layer on/off state, 10 recorded camera orientation positions,
Variable additional layer types, (not by auto-load yet)
Plus:
many bug fixes.
nothing about Linux/OSX yet |O
http://www.zofzpcb.com/Gerber-Viewer-Download.html
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #33 on: January 10, 2016, 02:25:00 am »
This library might be useful for you...


https://github.com/bkaradzic/bgfx
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7805
  • Country: us
  • adieu
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #34 on: January 10, 2016, 03:29:49 am »
Sweeeet, I'll have to give it a test.

Linux would be nice, I suppose, but it's nice enough that you put in all this effort and just give it away. ^-^ I just stick it in a VM.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3376
  • Country: us
  • If you want more money, be more valuable.
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #35 on: January 10, 2016, 04:59:08 am »
I love it. Really nice addition to my layout work flow.



Sent from my SAMSUNG-SM-G890A using Tapatalk

Factory400 - the worlds smallest factory. http://www.youtube.com/c/Factory400
 

Offline Jay_Diddy_B

  • Super Contributor
  • ***
  • Posts: 1673
  • Country: ca
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #36 on: January 10, 2016, 04:59:24 am »
Hi,

I have been using ZofZ for a few years now.

I would just like to say thank you. It is a great tool !!

Regards,

Jay_Diddy_B

 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 2174
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #37 on: January 17, 2016, 07:02:46 pm »
Tried this tool, it crashed on my gerbers (using under VMWare mind you).

You can grab them here if you want to test:

http://sparks.gogo.co.nz/crashygerb.zip

FWIW, these gerbs were created as a merge of a number of boards with a (still beta) panelizing tool.  Some other gerb viewers also have problems with them, so you are not alone.

Circuit People's tool gets it right

KiCad's gerbview mostly gets it right (some silk funnyness).

The current git version of Geda's gerbv gets it right provided you increase the maximum arperture parameters from 102 to something larger (and recompile).  These gerber's include polygons with a couple hundred parameters (100+ points), going by comments in gerbv's source it may be that there used to be a limit of 50 points in the gerber spec, but the current gerber spec I believe may have up to 5000 points.



~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #38 on: January 19, 2016, 05:24:39 am »
This library might be useful for you...


https://github.com/bkaradzic/bgfx
Thanks, a quite interesting idea. By reading the doc, I found out that I can use compiled shaders from direct3D in openGL  :)
But the biggest part of code to handle would be DXUT - and especially DXUTgui - that is a user interface framework for Direct3D. As far as I see, there is no abstraction layer for this in bgfx and I still need to find a new fitting GUI "widget" library, common for both Direct3D and OpenGL, then convert to it, first in the windows version.
 

Offline kc8apf

  • Regular Contributor
  • *
  • Posts: 103
  • Country: us
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #39 on: January 19, 2016, 05:42:36 am »
This library might be useful for you...


https://github.com/bkaradzic/bgfx
Thanks, a quite interesting idea. By reading the doc, I found out that I can use compiled shaders from direct3D in openGL  :)
But the biggest part of code to handle would be DXUT - and especially DXUTgui - that is a user interface framework for Direct3D. As far as I see, there is no abstraction layer for this in bgfx and I still need to find a new fitting GUI "widget" library, common for both Direct3D and OpenGL, then convert to it, first in the windows version.

A lot of the 3D apps I've worked on separate the 2D UI from the 3D rendering.  The 2D UI is implemented in a per-platform fashion using the native OS widgets.  The 3D rendering is tied to a canvas placed in the 2D UI.  3D text is still an issue but that's rather unavoidable.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #40 on: January 19, 2016, 05:44:21 am »
Tried this tool, it crashed on my gerbers (using under VMWare mind you).

You can grab them here if you want to test:

http://sparks.gogo.co.nz/crashygerb.zip

FWIW, these gerbs were created as a merge of a number of boards with a (still beta) panelizing tool.  Some other gerb viewers also have problems with them, so you are not alone.

Circuit People's tool gets it right

KiCad's gerbview mostly gets it right (some silk funnyness).

The current git version of Geda's gerbv gets it right provided you increase the maximum arperture parameters from 102 to something larger (and recompile).  These gerber's include polygons with a couple hundred parameters (100+ points), going by comments in gerbv's source it may be that there used to be a limit of 50 points in the gerber spec, but the current gerber spec I believe may have up to 5000 points.
OK, I can repeat the crash - thanks. In my case it seems to be related to drills. Also - need to remember - I need to implement a step and repeat and the new nested repeat commands. Might be important for panelizing. About the number of parameters - I have been already making problems to myself  and hopefully solved it. see the picture - it is a single aperture :)
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #41 on: January 19, 2016, 06:04:52 am »
This library might be useful for you...


https://github.com/bkaradzic/bgfx
Thanks, a quite interesting idea. By reading the doc, I found out that I can use compiled shaders from direct3D in openGL  :)
But the biggest part of code to handle would be DXUT - and especially DXUTgui - that is a user interface framework for Direct3D. As far as I see, there is no abstraction layer for this in bgfx and I still need to find a new fitting GUI "widget" library, common for both Direct3D and OpenGL, then convert to it, first in the windows version.

A lot of the 3D apps I've worked on separate the 2D UI from the 3D rendering.  The 2D UI is implemented in a per-platform fashion using the native OS widgets.  The 3D rendering is tied to a canvas placed in the 2D UI.  3D text is still an issue but that's rather unavoidable.
Maybe that was a wrong decision. I wanted the performance even on weak graphic cards. I have seen performance boost when using 3D only / full screen mode. (e.g. the old method - allow to reduce resolution in 3D mode.) Now this is not that important and it would be a opportunity to switch to use the OS native GUI. I have to think it over.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #42 on: January 21, 2016, 09:22:51 am »
Tried this tool, it crashed on my gerbers (using under VMWare mind you).

You can grab them here if you want to test:

http://sparks.gogo.co.nz/crashygerb.zip

FWIW, these gerbs were created as a merge of a number of boards with a (still beta) panelizing tool.  Some other gerb viewers also have problems with them, so you are not alone.

Circuit People's tool gets it right

KiCad's gerbview mostly gets it right (some silk funnyness).

The current git version of Geda's gerbv gets it right provided you increase the maximum arperture parameters from 102 to something larger (and recompile).  These gerber's include polygons with a couple hundred parameters (100+ points), going by comments in gerbv's source it may be that there used to be a limit of 50 points in the gerber spec, but the current gerber spec I believe may have up to 5000 points.

The bug was related to the board outline processing. I am in the middle of other fixes, but here is a current build which can read your project.
http://www.zofzpcb.com/Download/ZofzPCBpre.exe
BTW, the first point of every outline loop in combined.GKO is repeated twice - this should be no real problem, however.
 

Offline rx8pilot

  • Super Contributor
  • ***
  • Posts: 3376
  • Country: us
  • If you want more money, be more valuable.
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #43 on: January 21, 2016, 09:52:23 am »
Just downloaded the latest, works great. Really appreciate this useful tool!
Factory400 - the worlds smallest factory. http://www.youtube.com/c/Factory400
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 2174
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #44 on: January 21, 2016, 10:19:11 am »
The bug was related to the board outline processing. I am in the middle of other fixes, but here is a current build which can read your project.

 :-+ Nice one
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline timofonic

  • Frequent Contributor
  • **
  • Posts: 904
  • Country: es
  • Eternal Wannabe Geek
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #45 on: February 01, 2016, 05:12:06 am »
Quote from: zofz on January 19, 2016, 05:24:39 AM>Quote from: timofonic on January 10, 2016, 02:25:00 AM
This library might be useful for you...


>https://github.com/bkaradzic/bgfx
Thanks, a quite interesting idea. By reading the doc, I found out that I can use compiled shaders from direct3D in openGL  :)
But the biggest part of code to handle would be DXUT - and especially DXUTgui - that is a user interface framework for Direct3D. As far as I see, there is no abstraction layer for this in bgfx and I still need to find a new fitting GUI "widget" library, common for both Direct3D and OpenGL, then convert to it, first in the windows version.



bgfx author is quite supportive, I'm sure he'll provide you sueful feedback about that. It's  used in a very wide variety of software, from CAD/CAM to videogames.

Blender and many other tools use OpenGL. What's wrong with that?

There's ImGUI that started as code for Media Molecule's Tearaway game.


>
ImGUI: A bloat-free graphical user interface library for C++.

  • Outputs vertex buffers to be rendered the 3D-pipeline enabled application.
  • Fast.
    • Portable.
    • Renderer agnostic.
    • No specific build process is required. You can add the .cpp files to your project or #include them from an existing file.
    • Self-contained within a few files that you can easily copy and compile into your application/engine: imgui.cpp, imgui.h, imgui_demo.cpp, imgui_draw.cpp, imgui_internal.h, imconfig.h (empty by default, user-editable), stb_rect_pack.h, stb_textedit.h, stb_truetype.h
    • No external dependencies.
    • Your code passes mouse/keyboard inputs and settings to ImGui (see example applications for more details).
  • As opposed to UI for the average end-user, it’s designed to:
    • Enable fast iteration.
    • Empower programmers to create content creation tools and visualization/debug tools.
    • It favors simplicity and productivity.
      • Toward this goal it lacks certain features normally found in more high-level libraries.

  • Particularly suited to integration in:
    • Realtime 3D applications.
    • Fullscreen applications.
    • Embedded applications.
    • Games.
    • Any applications on consoles platforms where operating system features are non-standard.

 

Offline printedcircuit

  • Contributor
  • Banned!
  • Posts: 13
  • Country: cn
  • the better PCB fab choice
    • pcbway
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #46 on: February 19, 2016, 07:50:51 pm »
can anyone tell me if this software
1. can measure the size of the keepout layer like cam350?
2. can automatically find and output the width of the smallest via, narrowest trace/space?
the key to make money from electronics is to control the prototyping budget. Choose PCBWay
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #47 on: February 19, 2016, 08:08:17 pm »
can anyone tell me if this software
1. can measure the size of the keepout layer like cam350?
2. can automatically find and output the width of the smallest via, narrowest trace/space?
Hi, there is no automatic DFM/DRC check at the moment. There are:
1. manual distance measurements,
2. netlist check
I forgot about displaying the diameter by mouse hover, I did not finish it - will be done very next version.
 

Offline Philfreeze

  • Regular Contributor
  • *
  • Posts: 122
  • Country: ch
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #48 on: February 19, 2016, 08:41:25 pm »
I am impressed, this looks gorgeous and it is free. Well done OP.  :-+

« Last Edit: February 19, 2016, 08:45:04 pm by Philfreeze »
 

Offline Rutger

  • Regular Contributor
  • *
  • Posts: 198
  • Country: us
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #49 on: March 02, 2016, 06:53:53 am »
Nice job, I like it, it worked with some Altium generated gerber files.  :-+ :-+ :-+
 

Offline Iwanushka

  • Regular Contributor
  • *
  • Posts: 238
  • Country: lt
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #50 on: April 27, 2016, 06:45:17 am »
zofz,

Very impressive work you have done, this project saved my life (well at least countless hours trying to trace the board and check/compare footprints, component orientation, etc), was working on a project that was made by a very good programmer, but as we know most programmers assume that you "know all", and in the end I had somewhat broken bom, pdf with schematics and gerbers with poor silkscreen with no outlines for component orientation.

It would be very nice if you will have free time and of course if it's possible to link Altium generated schematic PDFs to gerber viewer, so you can click on part in pdf and it shows on which two pads you need to solder the part when you have 6x6 matrix of identical pads which has no outline to show you on which two pads to put the part :)

P.S. it would be nice if you could setup some donation system (maybe paypal), so the guys and gals can support your work, as we know these things consume lots of time and you need to pay your bills...

Best Regards,
Mantas.
« Last Edit: April 27, 2016, 06:52:22 am by Iwanushka »
When all you've got is a hammer, everything starts looking like a nail.- Attrition.
 

Offline vzoole

  • Regular Contributor
  • *
  • Posts: 121
  • Country: hu
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #51 on: April 28, 2016, 12:52:02 am »
Hi,

It is a really impressive software.
And non of pricey tools have similar nice 3D capability (except Zuken CR-8000 for 100000$).

But I'm in trouble with long name files.
I couldn't recognise layers manually as you can see on the picture.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #52 on: April 28, 2016, 03:30:09 am »
zofz,

Very impressive work you have done, this project saved my life (well at least countless hours trying to trace the board and check/compare footprints, component orientation, etc), was working on a project that was made by a very good programmer, but as we know most programmers assume that you "know all", and in the end I had somewhat broken bom, pdf with schematics and gerbers with poor silkscreen with no outlines for component orientation.

It would be very nice if you will have free time and of course if it's possible to link Altium generated schematic PDFs to gerber viewer, so you can click on part in pdf and it shows on which two pads you need to solder the part when you have 6x6 matrix of identical pads which has no outline to show you on which two pads to put the part :)

P.S. it would be nice if you could setup some donation system (maybe paypal), so the guys and gals can support your work, as we know these things consume lots of time and you need to pay your bills...

Best Regards,
Mantas.

Hi Mantas,
Thanks,
I have been already investigating the PDF "crosscheck". Back then, I found that I would need the expensive SDK. I am looking at it again, using Spy++, but my only Altium PDF does not show the designator and pin number in the popup window. Maybe I need a different print options, but my Altium try-out period is over. Can you provide me a better pdf, e.g. from one of the demo projects?
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #53 on: April 28, 2016, 03:38:42 am »
Hi,

It is a really impressive software.
And non of pricey tools have similar nice 3D capability (except Zuken CR-8000 for 100000$).

But I'm in trouble with long name files.
I couldn't recognise layers manually as you can see on the picture.
Hi,
It is a pity that I decided to create my own GUI instead of using windows. That was because of better performance and possibility of a different resolutions in full-screen mode, where the GDI  is disabled. I have put the issue on the buglist - I see it not for the first time. I am still not certain how much should I optimize for 3D performance. Recently there is a lot more of graphic power in the standard PC, from the other side laptops and 4K...
Somehow I will solve it - let me think.

 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1206
  • Country: es
    • ElektroQuark
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #54 on: April 28, 2016, 05:13:38 pm »
Any possibility to port to Linux?

I'm in the process of migrating completely to Linux and I will really miss ZofzPCB.

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #55 on: April 28, 2016, 05:22:29 pm »
Any possibility to port to Linux?

I'm in the process of migrating completely to Linux and I will really miss ZofzPCB.
Hi, Linux and OSX port is on the list, but it is not a priority. I know it works with Wine - a temporary solution.
 

Offline Kjelt

  • Super Contributor
  • ***
  • Posts: 4989
  • Country: nl
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #56 on: April 28, 2016, 05:50:37 pm »
Looks great zofz, will try it out soon.  :-+
Is there a possibility to generate pictures (bitmap) of the sides of the finished pcb so you can directly put them in the SMT assistant software?:
http://www.eevblog.com/forum/manufacture/smt-assistant-software-for-handplacing-parts-free-and-awesome/msg873696/#msg873696
 

Offline ElektroQuark

  • Supporter
  • ****
  • Posts: 1206
  • Country: es
    • ElektroQuark
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #57 on: April 28, 2016, 08:35:27 pm »
I will try Wine. Thank you.

Online Bud

  • Super Contributor
  • ***
  • Posts: 2772
  • Country: ca
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #58 on: April 30, 2016, 01:24:18 pm »
Here is some feedback

I have the program crashed all the time during navigating through the file folders on the hard drive when selecting a design to open. Win 7 64-bit, 32Gb RAM, Nvidia 570. I had to move the design files to a short path location (i.e. E:\Temp) to be able to open them.

3D SpaceNavigator mouse works in the program. I think it would be convenient if an option added to lock the mouse rotation point. Say, I mouse click in the center of the board and then lock it. Then the view will always rotate around the board center. It is annoying that accidental mouse move/click reposition the rotation center and the board all of a sudden moves in an unexpected way.

On a same note, it would be useful to add a "Reset view" or "Center view" or "Home" button to reset the view. The board flew away from the view once and I could not figure out how to get it back unless re-render it in the load menu.

EDIT:  One more: you should allow the user to select where to install the program. For now it is hard coded to be installed in c:\program files. I install all my programs on a different drive, keeping C for the system.
« Last Edit: April 30, 2016, 03:20:07 pm by Bud »
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #59 on: August 17, 2016, 11:05:14 pm »
I have not been seeing the GUI crash, finally I have corrected 2 bugs. Last one is related to moving mouse during double-click, after reloading directory list. My mouse driver was probably removing this. Big thanks to two users who shared logs and helped me in debugging.
That alone would make a new release. I have started table based component library - a step before STEP mechanical CAD output. Now you can see standard frame lead packages. After I have all primitives, the lib should be populated faster now.

Youtube:
 
The following users thanked this post: PCB.Wiz

Offline PCB.Wiz

  • Regular Contributor
  • *
  • Posts: 203
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #60 on: August 18, 2016, 10:07:30 am »
I have not been seeing the GUI crash, finally I have corrected 2 bugs.

Wow- This is very impressive.

I quickly tested with
https://github.com/FPGAwars/icezum/tree/master/src-kicad
and used Altium File names.

It looks 99.5% ok, with some minor issues / quirks / puzzles

* Long file names do not fit in the file-views, and there seems no way to resize those ?
* I see a strange effect, where Holes with no traces, show under hover, but all those with traces show no holes ?
  ( The holes that do appear and tag, look fine, so the drill file must have read ok)
  Looks almost deliberate, but unexpected ?
* when I enable IPC356, 3D nicely (magically!)  appears in most cases, but in a one (U6) some strange slight spin is seen ?

 There are some vias-as-parts (Via**) still to be cleaned in this test example, so the large area over TQFP144 is a 'false positive'

 Addit: I see U6 is an unusual 16 pin SO (2/6/2/6), so maybe the angle is just a fit-artifact of trying to align over that ?
It seems to have different pin-pitch on each of 2 chosen pin sides ? - so is trying to make sense of the less common footprint.

« Last Edit: August 18, 2016, 10:31:42 am by PCB.Wiz »
 
The following users thanked this post: zofz

Offline IanJ

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: scotland
  • Pro EE guy many years ago, now a hobby/home biz.
    • IanJohnston.com
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #61 on: August 18, 2016, 04:19:11 pm »
Hi,

Was looking for a standalone gerber viewer to work with Circuitstudio files......this seems to work fine.

One very small issue.......on one of my boards (still under dev) the silkscreen on the underside happens to cross directly over some THP's. From the topside looking through the holes you can see the silkscreen jumping across the pad......should really be broken by the pad/hole.

Not sure I like the non-standard looking GUI dialogues but that's a minor preference thing. All in all, one of the best gerber viewers I have tried.

Ian.
Ian Johnston
www.ianjohnston.com
Manufacturer of the PDVS2
 

Offline PCB.Wiz

  • Regular Contributor
  • *
  • Posts: 203
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #62 on: August 19, 2016, 11:12:57 am »
.....on one of my boards (still under dev) the silkscreen on the underside happens to cross directly over some THP's. From the topside looking through the holes you can see the silkscreen jumping across the pad......should really be broken by the pad/hole.

Another angle is to say that is correct - usually silkscreen is pulled back from pads, and some EDA have a option to avoid pads, (I think some do this by 'plot-white') so anything that does not avoid pads (& holes), is considered an issue that needs upstream fixing.
 

Offline wasyoungonce

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #63 on: August 19, 2016, 01:00:33 pm »
Many thanks zofz.  Nice program.  Noticed using Eagle it wanted the ".dri" file not the txt drill file.  Some parts not rendered properly but that's probably the IPC D 356 and eagle.  now I just have to read up the help files on how to use correctly.

 :-+
I'd forget my Head if it wasn't screwed on!
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #64 on: August 19, 2016, 07:12:22 pm »
I quickly tested with
https://github.com/FPGAwars/icezum/tree/master/src-kicad
and used Altium File names.
I will download and test. I do not see the board outline on the screen shot - it might be source of problems with solder mask.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #65 on: August 19, 2016, 07:19:10 pm »
.....on one of my boards (still under dev) the silkscreen on the underside happens to cross directly over some THP's. From the topside looking through the holes you can see the silkscreen jumping across the pad......should really be broken by the pad/hole.

Another angle is to say that is correct - usually silkscreen is pulled back from pads, and some EDA have a option to avoid pads, (I think some do this by 'plot-white') so anything that does not avoid pads (& holes), is considered an issue that needs upstream fixing.
I could do the subtracting (silkscreen minus solder mask), as a option. But first I need to rewrite the flattening - it takes too long time for some projects, and I do not want to make it more complicated now.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #66 on: August 19, 2016, 07:27:47 pm »
Many thanks zofz.  Nice program.  Noticed using Eagle it wanted the ".dri" file not the txt drill file.  Some parts not rendered properly but that's probably the IPC D 356 and eagle.  now I just have to read up the help files on how to use correctly.

 :-+
I still need to add more components to tables, and tune up pin-pad ordering/fitting, e.g. using the above project (https://github.com/FPGAwars/icezum/tree/master/src-kicad) as a next example for testing. Also, It must be possible to overwrite the automatic guessing of components.
dri and txt is a bit of the problem because of Altium/Eagle file naming schema - I need to think about it.
 

Offline wasyoungonce

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #67 on: August 20, 2016, 12:49:26 pm »
I had a look at the IPC D 356 file on parts particularly the x,y,r sizes positions.  As you can see, a few parts were not rendered or are not right: 

Capacitors rendered too low in height;
a few T092 transistors not rendered correctly, their tops are too low like the caps); 
An IC wide SOIC16 not rendered at all; Inductor not rendered (looks like SIL pins);
JST XH 2.5mm pitch connector not rendered (base of board);
Another ZR 1.5mm pitch JST not rendered properly (near LQFP64);
Crystal HC49S not rendered correctly;
wire pads not rendered correctly (look like pins) (VIAs ok);
Image sensor ICX453AQ (large device) not rendered properly, should be on bottom "16" layer.

Is there a way I can fix these issue?   I have played with Eagle 3D and POV Ray and made my own parts before.  But, that might give a nice image, but it's just eye candy, it hasn't the in depth analysis and details your program has!  :-+

Don't worry about the part off the board, that's just me!
I'd forget my Head if it wasn't screwed on!
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #68 on: August 23, 2016, 07:05:11 pm »
Wow- This is very impressive.
I quickly tested with
https://github.com/FPGAwars/icezum/tree/master/src-kicad
and used Altium File names.

It looks 99.5% ok, with some minor issues / quirks / puzzles

* Long file names do not fit in the file-views, and there seems no way to resize those ?
* I see a strange effect, where Holes with no traces, show under hover, but all those with traces show no holes ?
  ( The holes that do appear and tag, look fine, so the drill file must have read ok)
  Looks almost deliberate, but unexpected ?
* when I enable IPC356, 3D nicely (magically!)  appears in most cases, but in a one (U6) some strange slight spin is seen ?

 There are some vias-as-parts (Via**) still to be cleaned in this test example, so the large area over TQFP144 is a 'false positive'

 Addit: I see U6 is an unusual 16 pin SO (2/6/2/6), so maybe the angle is just a fit-artifact of trying to align over that ?
It seems to have different pin-pitch on each of 2 chosen pin sides ? - so is trying to make sense of the less common footprint.

Finally I had a moment to invastigate it a bit.
1. Board Outline file was assumed to be .gbr - it looks that it should be .gm1  - I have changed it by hand or should that be a rule?
2. KiCad generated plated and not plated drill files. Both files should be plated. I am not drilling thru the top/btm copper in a case of not plated holes, assuming the copper is not there. This is why the holes was not visible from top/bottom.
3. Many components are not correctly represented.
3.1 QFP table needs update - maybe the fpga have a bit different dimensions.
3.2 The non-standard QFP should be represented by pad-extruded-universal-type, it is represented by strange SO. - this clearly is my bug.

link to gerbers + config file (0.5MB)https://www.zofzpcb.com/bugpic/icezum_jul27.zip

link to rendered board file (2.5MB)https://www.zofzpcb.com/bugpic/icezum_jul27-rendered.7z
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #69 on: August 24, 2016, 11:12:26 am »
I had a look at the IPC D 356 file on parts particularly the x,y,r sizes positions.  As you can see, a few parts were not rendered or are not right: 

Capacitors rendered too low in height;
a few T092 transistors not rendered correctly, their tops are too low like the caps); 
An IC wide SOIC16 not rendered at all; Inductor not rendered (looks like SIL pins);
JST XH 2.5mm pitch connector not rendered (base of board);
Another ZR 1.5mm pitch JST not rendered properly (near LQFP64);
Crystal HC49S not rendered correctly;
wire pads not rendered correctly (look like pins) (VIAs ok);
Image sensor ICX453AQ (large device) not rendered properly, should be on bottom "16" layer.

Is there a way I can fix these issue?   I have played with Eagle 3D and POV Ray and made my own parts before.  But, that might give a nice image, but it's just eye candy, it hasn't the in depth analysis and details your program has!  :-+

Don't worry about the part off the board, that's just me!

The only information i have from ipc356 is:
pad/hole x,y, pad size x,y, net-name, component designator.
So I can combine pads to form components and get a little clue what this might be: R,L,C,Q,U,J... So obviously I have no clue what is the height of the electrolytic cap.

My first step was to display a kind of extruded pads, then adding component body to it. This is allowing to e.g. highlighting a pad or a component, or point it by the mouse and identifying it on the right panel.
In this release I have been adding a table based library, including R and C (and L) 0603, 0802.., leaded 2 row and 4 row L and J-lead packages. The tables are not complete yet. So far it is possible to distinguish J from L lead, just from the footprint size.
If the table-component does not fit nicely, the program should default to the older "extruded" representation.

I am targeting STEP output, maybe as a freemium feature. So I still need to finish the tables and add another level of detail, for mechanically rich components like connector and switches - STEP model load.

In the meanwhile, I am trying to load BOM and identify columns, map components from BOM to IPC356. Unfortunately there are very fuzzy rules about component naming and component footprint naming. The BOM file load is already implemented, but it is only used to display component info on the right panel. Not for selecting the 3D shapes.

When BOM file read is working correctly, I can use the information, maybe checking by an Internet distributor website, what are the actual capacitor sizes, ceramic and electrolytic. This information is generally not present in a CAD PCB project, I need to (re)construct it by other means, asking the user for it, in the last instance. (Now you can hide or swap THT to another side, by a right mouse click menu)

Thanks for showing me what components I need to take care of next, and showing me the bugs. I would appreciate to get Gerbers, ipc356 and BOM, if it is possible, by the nature of the project (OSH vs. commercial).
Btw, the board outline is probably not identified correctly, as I see on the picture.
 
The following users thanked this post: wasyoungonce

Offline wasyoungonce

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #70 on: August 24, 2016, 12:54:27 pm »
zofz...many thanks here are the gerbers, IPC D 356  and BOM.  Zipped.

I tried some editing of the IPC file...it didn't change things I wanted. 

.....Now you can hide or swap THT to another side, by a right mouse click menu...

Yes noticed this.  This helped on the image sensor ICX453AQ.  Which is a 34 pin (extra) wide DIP.  These are not common IC packages, had to make my own, so no tables will match it.  It was rendered on the top...I clicked it to the bottom.  Damn excellent feature.

Brendan :-+



« Last Edit: August 24, 2016, 01:06:12 pm by wasyoungonce »
I'd forget my Head if it wasn't screwed on!
 

Offline PCB.Wiz

  • Regular Contributor
  • *
  • Posts: 203
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #71 on: August 25, 2016, 09:28:42 am »
Great - That's looking  improved :)

1. Board Outline file was assumed to be .gbr - it looks that it should be .gm1  - I have changed it by hand or should that be a rule?
KiCad usually puts Board outline on layer Edge.Cuts
I applied the Altium naming, as that seemed to import better, so I guess that maps Edge.Cuts to some Gerber name.

2. KiCad generated plated and not plated drill files. Both files should be plated. I am not drilling thru the top/btm copper in a case of not plated holes, assuming the copper is not there. This is why the holes was not visible from top/bottom.

I'm not following this exactly ?
I would expect all holes to appear in the viewer, and if there is some means to show plated/non plated that is nice.
Even just a hover-check would be ok, but a copper/fibreglass type colour render for plated/npth would be cool...

ie a hole should not be discarded or not shown in a viewer.

In the test I did,  it looked like the non-trace-connected holes did render as expected.
 

Offline PCB.Wiz

  • Regular Contributor
  • *
  • Posts: 203
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #72 on: August 25, 2016, 10:45:38 am »
...... So obviously I have no clue what is the height of the electrolytic cap.
...
In this release I have been adding a table based library, including R and C (and L) 0603, 0802
..
In the meanwhile, I am trying to load BOM and identify columns, map components from BOM to IPC356. Unfortunately there are very fuzzy rules about component naming and component footprint naming.
Tables and BOM mapping can give good results, but are of course more work.

Some simpler means to communicate height is needed.. I did see someone mention a nifty trick a while back, of using the Line width to encode the Height.

I just tried this in KiCad, and it saves and Gerber plots to 6 decimals in mm.

That allows line widths to .01 mm and gives up to 4 more digits for height, which could be (fixed point) any  of 9.999mm or 99.99mm or 999.9mm
Pick one - perhaps 99.99mm, covers reasonable heights, and anything > 100mm can always use a 3D table, and 99.99 tolerates 5 decimal digit mm gerber files as 99.9mm . (not all PCB products can plot to 6 decimals in mm)

This could give a simple user-3D-option, whereby they can just edit their library, and not need any more associations at all.

KiCad can currently create and plot footprint info to these non copper layers

PFR_Widths-F.Fab.gbr
PFR_Widths-F.SilkS.gto
PFR_Widths-F.CrtYd.gbr
PFR_Widths-B.Fab.gbr
PFR_Widths-B.SilkS.gto
PFR_Widths-B.CrtYd.gbr

Q: Is there enough info in the IPC356 and gerber files to relate outline info to a component ?  My guess is no ?

I'm wondering about the best way to extrude here...

I see Kicad can remove Silkscreen over Pads, which it does by a simple dual plot process in one file
 first Outlines at %LPD*%  (Plot Dark),
 then Pads(mask) at %LPC*% (Plot Clear) to remove any silk outline info within the pad regions

That could allow an outline on Silk layer, (safely removed over pads), but the pre-removal outline is fraction-scaled-extruded to give height.


User would nominate the Gerber file containing the (fractional encoded) height info, and the rest is simple software ?

« Last Edit: August 25, 2016, 11:49:29 am by PCB.Wiz »
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #73 on: August 25, 2016, 05:44:13 pm »
Great - That's looking  improved :)

1. Board Outline file was assumed to be .gbr - it looks that it should be .gm1  - I have changed it by hand or should that be a rule?
KiCad usually puts Board outline on layer Edge.Cuts
I applied the Altium naming, as that seemed to import better, so I guess that maps Edge.Cuts to some Gerber name.
There are so many options or styles. Maybe I should read the file description file for the major packages - of course the format (or rather layout) is temporary - not too stable, or, perform more testing...
Note: you are free to modify "%APPDATA%\ZofzPCB\CAM_Load_Rules.txt - If you then send it to me, it will be beneficial for the community and the next update will not overwrite your changes.

2. KiCad generated plated and not plated drill files. Both files should be plated. I am not drilling thru the top/btm copper in a case of not plated holes, assuming the copper is not there. This is why the holes was not visible from top/bottom.

I'm not following this exactly ?
I would expect all holes to appear in the viewer, and if there is some means to show plated/non plated that is nice.
Even just a hover-check would be ok, but a copper/fibreglass type colour render for plated/npth would be cool...

ie a hole should not be discarded or not shown in a viewer.

In the test I did,  it looked like the non-trace-connected holes did render as expected.
Yes, you are right - that is a bug. (Now on BugList.)
Note - the non-plated holes are there, if you look inside or strip one copper layer - they are just covered by non-drilled copper. And this have to be changed. By the way - it is possible to assign different colors to plated and to non-plated holes.
Adding metallic and FR4 reflection http://www.rastertek.com/dx11tut10.html would be the best.
The plated/non-plated have influence on the netlist checking.
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #74 on: August 25, 2016, 06:07:20 pm »
...... So obviously I have no clue what is the height of the electrolytic cap.
...
In this release I have been adding a table based library, including R and C (and L) 0603, 0802
..
In the meanwhile, I am trying to load BOM and identify columns, map components from BOM to IPC356. Unfortunately there are very fuzzy rules about component naming and component footprint naming.
Tables and BOM mapping can give good results, but are of course more work.

Some simpler means to communicate height is needed.. I did see someone mention a nifty trick a while back, of using the Line width to encode the Height.

I just tried this in KiCad, and it saves and Gerber plots to 6 decimals in mm.

That allows line widths to .01 mm and gives up to 4 more digits for height, which could be (fixed point) any  of 9.999mm or 99.99mm or 999.9mm
Pick one - perhaps 99.99mm, covers reasonable heights, and anything > 100mm can always use a 3D table, and 99.99 tolerates 5 decimal digit mm gerber files as 99.9mm . (not all PCB products can plot to 6 decimals in mm)

This could give a simple user-3D-option, whereby they can just edit their library, and not need any more associations at all.

KiCad can currently create and plot footprint info to these non copper layers

PFR_Widths-F.Fab.gbr
PFR_Widths-F.SilkS.gto
PFR_Widths-F.CrtYd.gbr
PFR_Widths-B.Fab.gbr
PFR_Widths-B.SilkS.gto
PFR_Widths-B.CrtYd.gbr

Q: Is there enough info in the IPC356 and gerber files to relate outline info to a component ?  My guess is no ?

I'm wondering about the best way to extrude here...

I see Kicad can remove Silkscreen over Pads, which it does by a simple dual plot process in one file
 first Outlines at %LPD*%  (Plot Dark),
 then Pads(mask) at %LPC*% (Plot Clear) to remove any silk outline info within the pad regions

That could allow an outline on Silk layer, (safely removed over pads), but the pre-removal outline is fraction-scaled-extruded to give height.


User would nominate the Gerber file containing the (fractional encoded) height info, and the rest is simple software ?
Maybe easier is to add a column to the BOM file? There should be a number of universal fields in the component description in any CAD package.
However, using a reference to a component distributor index gives more options. It is also beneficial to the assembly shop. Also, eg. the immediate price calculation, auto-loading of 3D models,  DFM tests...
Farnel have API for their database queries. Generally it is possible to parse any distributor web page - the information there is somehow systematic - they need to be indexed by Google, to some extend...
I have been making calculations of such index file size - it is not soo big, if a proper compression-schema (dictionary tree) is used. That is probably easier to download the whole index once per month or so, then wait for the website to answer, for each part.
 

Offline PCB.Wiz

  • Regular Contributor
  • *
  • Posts: 203
  • Country: au
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #75 on: August 26, 2016, 06:19:33 am »
Maybe easier is to add a column to the BOM file? There should be a number of universal fields in the component description in any CAD package....

Yes, I agree a BOM extension is useful, but BOMs can get complex, and they are not always PCB-Centric.
Some are controlled from the SCH side, and others are run by SpreadSheet/DataBase managers... so getting the information into the BOM, can involve many steps and turf arguments....

My suggestion was not meant to displace BOM, just to give a very simple means to 'sneak' Height info into standard Gerber Files.
It is not as 'clever' as full mapping, but it is simple to implement for the user, and I think does not need too much software inside a viewer ?

I'll check other PCB sw for Gerber precision support. KiCad looks very good here, with 6 decimals in mm.
 
Addit:
KiCad defaults to this useful 1 um precision.
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*

Mentor's PADS has some strange historic limit of 8 digits in Gerber, plus it internally stores to only 5 decimal digits-mm, so it can only give
%FSLAX35Y35*%
ie 3.5, which is still enough to export PCBs of 999.99mm to 99.9mm of suffix-height precision, using the 3.5 format.

I would propose that mm units be the default for suffix-height.
%MOMM*%
« Last Edit: August 26, 2016, 07:36:08 am by PCB.Wiz »
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #76 on: August 27, 2016, 06:11:08 am »
Maybe easier is to add a column to the BOM file? There should be a number of universal fields in the component description in any CAD package....

Yes, I agree a BOM extension is useful, but BOMs can get complex, and they are not always PCB-Centric.
Some are controlled from the SCH side, and others are run by SpreadSheet/DataBase managers... so getting the information into the BOM, can involve many steps and turf arguments....

My suggestion was not meant to displace BOM, just to give a very simple means to 'sneak' Height info into standard Gerber Files.
It is not as 'clever' as full mapping, but it is simple to implement for the user, and I think does not need too much software inside a viewer ?

I'll check other PCB sw for Gerber precision support. KiCad looks very good here, with 6 decimals in mm.
 
Addit:
KiCad defaults to this useful 1 um precision.
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*

Mentor's PADS has some strange historic limit of 8 digits in Gerber, plus it internally stores to only 5 decimal digits-mm, so it can only give
%FSLAX35Y35*%
ie 3.5, which is still enough to export PCBs of 999.99mm to 99.9mm of suffix-height precision, using the 3.5 format.

I would propose that mm units be the default for suffix-height.
%MOMM*%
Yes, the solution is technically possible. But I believe this feature will be rarely used, especially after the final solution is implemented. The height is not the only problem. See attached picture, also with capacitors. I need to solve the components dimensions and shapes input, in more universal way.
Take example of outline drawing - quite simple rules, but often there is a problem - there are many concepts, e.g. draw it on mechanical or on keep-out.
The structure of my setup file (.camset) is xml. I am already storing there some component settings. So if designer wants to play with different parameters, the simple way would be: Text-edit for start - more automatic and graphical edit later.
I still need to gain some experience with different BOM files.
It would be great to gain access to some repository of 3D models, without a need of loading each component by hand. I could index models my own way (by footprint fitness) so it is not much work to get a proper view..., so I need to learn STEP.
 
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #77 on: February 28, 2017, 01:41:03 am »
Right-click menu for component model and parameters (like elcap height) - I am still working on it. I hope to release this in couple of weeks.

 

Offline S13

  • Contributor
  • Posts: 39
  • Country: nl
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #78 on: March 25, 2017, 11:31:22 pm »
Very impressed with this Gerber Viewer!  :-+

Thumbs up from me, and i will certainly give it a try  :)
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #79 on: August 05, 2017, 10:17:03 am »
I have published a test version featuring component shape adjustments. The settings are stored in .camset and .zofzproj files.



short youtube video:

download: https://www.zofzpcb.com/Gerber-Viewer-Download.html look for "Current Build, Pre-Alpha".
After installation, enable the "ParamTables" option in Components / Models License menu.
« Last Edit: August 07, 2017, 06:12:41 am by zofz »
 

Offline calli

  • Regular Contributor
  • *
  • Posts: 78
  • Country: de
  • 3D Blender and Maker
    • Blender Buch
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #80 on: December 09, 2017, 10:19:54 am »
I was looking for a 3D Gerber View and found this.

I am quite new to this all, using Easy EDA and the Gerbers from them will let your viewer error on

%FSLAX24Y24*%
or
G90*

Am *I* doing something wrong or is it the Gerber file?

Best,
Carsten
Carsten Wartmann: Autor - Dozent - 3D - Grafik - Maker
http://blenderbuch.de/
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #81 on: December 09, 2017, 10:45:09 am »
I was looking for a 3D Gerber View and found this.

I am quite new to this all, using Easy EDA and the Gerbers from them will let your viewer error on

%FSLAX24Y24*%
or
G90*

Am *I* doing something wrong or is it the Gerber file?

Best,
Carsten
This are OK. can you send me your gerbers? let me see this - bug@zofzpcb.com
 

Offline zofz

  • Contributor
  • Posts: 47
  • Country: 00
    • 3D Gerber Viewer
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #82 on: December 11, 2017, 12:33:09 am »
I was looking for a 3D Gerber View and found this.

I am quite new to this all, using Easy EDA and the Gerbers from them will let your viewer error on

%FSLAX24Y24*%
or
G90*

Am *I* doing something wrong or is it the Gerber file?

Best,
Carsten

Hi Carsten,
thanks for the Gerbers - I found the problem.
It is an extra space between '*' and '%FSLAX24Y24*%' just after the star in the previous line. Some time ago I have removed all spaces in pre-processing, what was just a hot fix. That was not the greatest move, since spaces are actually allowed, but only in the comments (like G04). Now, I have it done 'the right way' - just accepting stray spaces, but, as it shows, not in all conditions.
I have fixed this already, I will publish the hot-fix version shortly (just looking to solve one more bug).
If you like to test it before the release, just remove the space from all your gerbers, last header comment line, after the star.
 

Offline calli

  • Regular Contributor
  • *
  • Posts: 78
  • Country: de
  • 3D Blender and Maker
    • Blender Buch
Re: Take a look at my newly improved PCB viewer / Gerber Viewer
« Reply #83 on: December 11, 2017, 08:29:09 pm »
Thanks!

Works now perfect with Easy EDA Gerbers.

Carsten
Carsten Wartmann: Autor - Dozent - 3D - Grafik - Maker
http://blenderbuch.de/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf