-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG rendering? #1
Comments
From what I've seen, SVG doesn't tend to work well for fast moving scenes (because it is retained mode), it's probably why you don't see it used for physics. It's better for more static or predictable animations. I actually started writing a renderer based on SVG, but soon hit these limitations and had to switch to canvas. It should be possible though for someone to create a custom renderer based on Render.js using a lib like two.js (that can render to SVG, canvas or webgl using the same API). It's currently possible to pass a custom renderer into Engine.create via the options argument. |
Closing this for now. I currently don't intend to implement an SVG renderer, unless I end up using a graphics library that already supports it. I've just implemented sprite rendering if that's any use: |
OK |
d3 seems to perform well with relatively dynamic animations, though on second thought I can't remember seeing any specific box-physics examples. |
RenderPixi.js - added missing dependencies
Definitely, d3 is not the option if you want interactive physics in your app. DON'T USE FOR IT. It's a wonderful library but not for that. |
I'm developing a game using SVG ( http://play.esviji.com/ ) and I feel a physics engine could help me on some topics.
All physics engines I've seen use only Canvas rendering, none of them uses SVG.
Is there a way Matter could provide both?
The text was updated successfully, but these errors were encountered: