davidcarne / pcbre Goto Github PK
View Code? Open in Web Editor NEWPersonal development branch for pcbre (probably not what you want)
Home Page: http://github.com/pcbre/pcbre
Personal development branch for pcbre (probably not what you want)
Home Page: http://github.com/pcbre/pcbre
-when importing an image on aligned world it is zoomed far in and should be centered
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.
Hi,
Looking forward to a solution for installing PCBRE on Win7x64
Thanks.
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.
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.
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)
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 :
apt-get install libcapnp-dev python3-numpy python3-scipy libgeos-dev python3-mock python3-pyside cython3 libpotrace-dev libagg-dev
cover most dependanciespypotrace
where you changed "agg_pic" to "agg" in setup.py
breaks compilation on Debianschema.capnp
when installing, PYTHONPATH must be modified by handOnce 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.
Steps to reproduce :
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 ?
reported by @mrhlogic
-looses focus on the main window after the tab dialog closes on component placement
once the resistor is paced the resistor cannot be selected hence cannot be deleted
Displayed/updated pin information seems to be aliased between multiple components.
reported by @mrhlogic
-text in dialog of component window about dimension 1 is along pin 1 edge is overflowing the dialog
Problem is similar to https://stackoverflow.com/questions/27721469/python-segmentation-fault-core-dumped (same backtrace)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.