Skip to content
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

Reason for no "Mixed Mode" (and physics) #4

Closed
erikkaplun opened this issue Oct 27, 2015 · 5 comments
Closed

Reason for no "Mixed Mode" (and physics) #4

erikkaplun opened this issue Oct 27, 2015 · 5 comments

Comments

@erikkaplun
Copy link

What is the reason, if any aside from lack of resources/time, for not attempting to implement something comparable to Famous' Mixed Mode? Will there be any alternatives for building 3D and WebGL apps using Samsara?

Also how about a physics engine? Should it simply be possible to use a 3rd party one in combination with Samsara?

@dmvaldman
Copy link
Owner

Currently, WebGL support is not being investigated. This project began from v0.3 of Famous which had no support for "mixed mode." Perhaps down the road it can be added, but the focus for now is DOM. If you're a WebGL person, feel free to experiment! I imagine one would create a new kind of Surface and Context (which would be a canvas tag with a WebGL context) where the CSS3 transform would position things in the context. Other nodes, in addition to SizeNode and LayoutNode, can be added that correspond to GL properties, such as light sources, etc.

I'm currently working on a small physics engine, and that's a very important missing feature. I created the physics engine for Famous, so I have experience here. The main thing I never got to building, was just how physics and other transitions, like tweens, could interoperate. Other physics engines can be added, though it's best if they make no opinions on rendering and instead just export numbers. You could then take these numbers and map them to transforms or opacity etc. Stay tuned, though, I'll have physics up in a week or so.

@steveblue
Copy link

IMHO Mixed mode is a waste of time. Probably < 0.001 % of projects on the web actually require it.

@erikkaplun
Copy link
Author

Not a place for a debate, but I don't think any percentage of current and past projects requiring something that has been unheard of by 99.9999% of web devs, UX designers, interaction designers, data visualization experts, 2D/3D gaming, cross platform mobile apps, etc etc, is indicative of that something being "a waste of time" @steveblue

@steveblue
Copy link

Don't get me wrong @eallik, I am a huge proponent of WebGL, but the problem of Mixed mode is not necessarily a priority for development teams. How many web apps really need WebGL? The problem that needs to be solved IMHO is providing a way to display graphics accelerated Views that gives web apps close to near native performance. This should be one the main goals of a project like this one, not figuring out how to mix WebGL and DOM.

@dmvaldman
Copy link
Owner

Personally, there are some impressive examples of webGL and DOM cohabiting, such as http://aaron-meyers.com/

However, this is not the direction I have in mind for this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants