Git Product home page Git Product logo

pcbre's Issues

Keypoint alignement : not working

When I try to use keypoints to align my images, they don't display anymore in the main view.

Maybe I'm just missing some documentation on the workflow I should apply.

Object edit window needs to be completed

Tool settings should be moved to the parameter window. Selecting an object should populate the parameter window with settings for that object.

Clicking the "apply" or "rollback" buttons should result in committing the edited object to the database.

Feature Requests

  1. Netlist export to KiCad
  2. Undo/Redo components and traces in main window
  3. GUI menu to reload project once saved
  4. Opacity in the main window
  5. Installer
  6. Export gerbers
  7. Remove an image once imported
  8. Diagram explaining dimensions in the component dialog
  9. ESC to exit tools
  10. Use ctrl or shift to lock the trace into 90deg variants
  11. Standard packages ie soic 8 etc for components
  12. Transistor packages (TO20, SOT-23 etc)
  13. Zoom slider to allow for user to change with mouse
  14. Wizard for importing images and assigning to layers
  15. Icon for PCBRE

shaderprogram.check_validate() causes exception on failure on OS X

The call to GLS.compileProgram() in PyOpenGL (called from https://github.com/davidcarne/pcbre/blob/master/pysrc/pcbre/ui/gl/shadercache.py#L69) in turn calls program.check_validate(). On OS X, this throws an exception if the OpenGL state isn't completely set up.

The proposed fix was to rework the code in https://github.com/davidcarne/pcbre/blob/master/pysrc/pcbre/ui/gl/shader.py to correctly use EnhShaderProgram. My temporary fix was to use the compileProgram function from that module, and wrapping the call to check_validate() in a try/except block.

pcbre doesn't display images

After managing to install (see #1), pcbre starts but fails to display images, screen stays black.

The following backtrace may explain why :

During Shader Compilation:  ("Shader compile failure (0): b'0:1(3): preprocessor error: syntax error, unexpected HASH_TOKEN\\n'", [b'#version 330\n', b'', b'\nin vec2 pos;\n\nuniform sampler2D tex1;\nuniform vec4 color;\n//uniform float gamma;\n\n\nvoid main(void)\n{\n    float dist = texture2D(tex1, pos).r;\n    float d = dist - 0.75;\n\n    float aa = clamp(0.75*length( vec2( dFdx( d ), dFdy( d ))), 0.001, 1);\n\n\n    vec4 newcolor = color;\n    newcolor.a *= smoothstep(-aa, +aa, dist - 0.75);\n    gl_FragColor = newcolor;\n}\n'], GL_FRAGMENT_SHADER)
Traceback (most recent call last):
  File "/home/raph/tools/elec/pcbre/pysrc/pcbre/ui/boardviewwidget.py", line 315, in initializeGL
    self.gls.initializeGL()
  File "/home/raph/tools/elec/pcbre/pysrc/pcbre/ui/gl/glshared.py", line 21, in initializeGL
    self.text.initializeGL()
  File "/home/raph/tools/elec/pcbre/pysrc/pcbre/ui/gl/textrender.py", line 471, in initializeGL
    self.sdf_shader = self.gls.shader_cache.get("image_vert", "tex_frag")
  File "/home/raph/tools/elec/pcbre/pysrc/pcbre/ui/gl/shadercache.py", line 72, in get
    raise e
  File "/home/raph/tools/elec/pcbre/pysrc/pcbre/ui/gl/shadercache.py", line 67, in get
    frag = GLS.compileShader([frag_version, frag_prepend, frag1s], GL.GL_FRAGMENT_SHADER)
  File "/usr/lib/python3/dist-packages/OpenGL/GL/shaders.py", line 231, in compileShader
    shaderType,
RuntimeError: ("Shader compile failure (0): b'0:1(3): preprocessor error: syntax error, unexpected HASH_TOKEN\\n'", [b'#version 330\n', b'', b'\nin vec2 pos;\n\nuniform sampler2D tex1;\nuniform vec4 color;\n//uniform float gamma;\n\n\nvoid main(void)\n{\n    float dist = texture2D(tex1, pos).r;\n    float d = dist - 0.75;\n\n    float aa = clamp(0.75*length( vec2( dFdx( d ), dFdy( d ))), 0.001, 1);\n\n\n    vec4 newcolor = color;\n    newcolor.a *= smoothstep(-aa, +aa, dist - 0.75);\n    gl_FragColor = newcolor;\n}\n'], GL_FRAGMENT_SHADER)

Installation is very hard

Hello,
first, thank you for your presentation at Recon which was really cool. Also thanks for releasing this tool.

I am mainly opening this issue to document the problems that I have when trying to install pcbre on Debian sid :

  • the readme does not clearly state that Python 3 is needed
  • apt-get install libcapnp-dev python3-numpy python3-scipy libgeos-dev python3-mock python3-pyside cython3 libpotrace-dev libagg-dev cover most dependancies
  • your fork of pypotrace where you changed "agg_pic" to "agg" in setup.py breaks compilation on Debian
  • pycapnp doesn't find schema.capnp when installing, PYTHONPATH must be modified by hand
  • opencv-2 doesn't have python3 bindings, one must install opencv-3 to have python3 bindings.

Once most libraries are installed : rtree and opengl module are missing, fix with :

apt install libspatialindex-dev
pip install rtree PyOpenGL

THEN pcbre starts :)

Note that python3-opengl from Debian does not work.

vias : not working

Hello,
how that #2 is fixed, I can add information to my layers but it seems vias don't work. Nothing shows up when I try to add one.

Maybe I'm missing something regarding layers ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.