Code Monkey home page Code Monkey logo

gds2webgl's People

Contributors

paulschulz avatar s-holst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gds2webgl's Issues

Feature request: slider/key for hiding layers above a certain elevation and adjusting z_scale

I wanted to look at the layers individually, so I changed 'data' in the javascript in the generated html file to not be a const and repeatedly executed data=data.slice(0,-1) in the javascript console to hide the top most layers. It would be nice if this was made into a feature, e.g. press 'Q' to move the view down a layer and 'E' to go up a layer.

a way to edit z_scale would also be nice, setting z_scale to a small value like 0.0000000000001 removes perspective (as was mentioned in another issue) and a large value like 0.0001 makes the view 'explode' which is cool to look at in 3D

disabling perspective distortion

I'm concerned that if I use this, veteran designers will be confused and assume there are problems with the design if the perspective distortion is present. Can you link to a section (or multiple if present) of the code where this is performed, such that I could work on hooking up a UI toggle for enabling/disabling the feature?

can the web view be tilted?

I held down CTRL, ALT, SHIFT, combinations of those... but no matter what I can only pan left/right and up/down and zoom with the mousewheel. Is there any way to tilt the view?

gds can not parse to Webgl succeessfully

thanks alot!!!
i follow the docs and run command as follow, the gds is built by GDSPY https://github.com/heitzmann/gdspy

python .\gds2webgl.py -i .\spinQ_2qubit_initial_version.gds -o file.html
python .\gds2webgl.py -i .\spinQ_2qubit_initial_version.gds -o data.js  

but gds parse a cell into html, which cell 's points_str is 'AQ==' and triangles_str is 'AA=='
saddly ,nothing is in canvas.

it is different from the demo , i guess something lost after parsing

How can I make it work? Please help me, or please give my some advise.

MYSOURCE:
link:
https://static-cdn.spinq.cn/static/spinQ_2qubit_initial_version.gds

file.html and data.js
https://static-cdn.spinq.cn/parsedhtml/data.js
https://static-cdn.spinq.cn/parsedhtml/file.html

GDSPY OUTPUT JPG
image

HTML OUTPUT FROM GDS2WEBGL
image

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.