jlongster / dom3d Goto Github PK
View Code? Open in Web Editor NEWRendering 3d with CSS3
Home Page: http://jlongster.com/s/dom3d/
Rendering 3d with CSS3
Home Page: http://jlongster.com/s/dom3d/
dom3d: 3d with HTML/CSS This code is still very much experimental. The API will certainly change quickly. Runs in Firefox, Chrome, Safari, and Opera. dom3d.js is where the API is exposed and interfaces between the use and the renderer. renderer.js is where the base renderer is defined. renderer_css.js is the CSS renderer. renderer_raphael.js is the Raphael/SVG renderer. dump-vertices.scm is a Scheme script to parse a .obj model into a javascript mesh that dom3d can load.
Hello James,
I am new to your dom3d API.
I have seen the examples, the teapot and the pole.
I am wondering if it is possible to zoom in/out with dom3d and if it is possible to identify a unique 3d triangle when pointing to it with the mouse pointer ?
Greetings from the Netherlands,
Barent Brouwers
Hi,
I'd like to suggest you use DocumentFragment in the CSS renderer to add all the elements in bulk, not one at a time. This will greatly improve performance.
See John Resig's article:
http://ejohn.org/blog/dom-documentfragments/
I think you can get rid of seams using borders.
Obviously, not by setting all four of them but by always only any two out of four adjacent borders, and eventually none (see example below).
Your algorhithm might figure out...
...and gone are the seams.
Consider a basic four faced pyramid: the last face won't need any borders as they are already produced by the other three since there are 4 triangles, 3 edges each, thus 12 edges, however only 6 edges needing a border.
No -o-
love?
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.