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

Scene 3D Library #2

Open
ds84182 opened this issue Dec 28, 2017 · 0 comments
Open

Scene 3D Library #2

ds84182 opened this issue Dec 28, 2017 · 0 comments

Comments

@ds84182
Copy link
Owner

ds84182 commented Dec 28, 2017

Goals:

  • Allow Dart code to manipulate 3D objects in a virtual 3D scene.
  • Allow the scene to be exported to OBJ or previewed in a web browser or Flutter UI.

Proposed API:

abstract class SceneParent {
  void add(SceneObject o);
  void remove(SceneObject o);
}

class Scene implements SceneParent {
  factory Scene.load(Uint8List data);
  void exportObj(StringSink sink);
  Uint8List save();
}

abstract class SceneObject {
  SceneParent get parent;
  void attach(SceneParent parent);
  void detach();
}

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

No branches or pull requests

1 participant