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

SceneCache previews in browser app #416

Closed
andrewkaufman opened this issue Jul 11, 2013 · 5 comments
Closed

SceneCache previews in browser app #416

andrewkaufman opened this issue Jul 11, 2013 · 5 comments
Labels
scene Issues with GafferScene

Comments

@andrewkaufman
Copy link
Contributor

We'd like to get a preview tab for .scc and .lscc files in the browser app (like the .cob preview that exists already). What would be involved in this? Is it just a matter of registering the extension? Or do we need to make a more complicated viewer (with SceneReader embedded)? Can we expose the timeline in the preview as well (for previewing animated caches)?

If this turns out to be simple, can we get it done in time for the DigiPro presentation next week?

@johnhaddon
Copy link
Member

It'd be more than just registering an extension - we'd need a new PathPreview class which used a SceneReader node and a Viewer. It's fairly simple I think but it'll still take getting on for a day - someone just needs to make a call on whether or not it's more important than the current milestone...

@andrewkaufman
Copy link
Contributor Author

We'd like to have it so Jabuka can preview layouts and anim before loading into a host app. I don't think it's higher priority than anything else though.

Might it also require Overlays so we can show a timeline over the viewer? Or can multiple panels be used for PathPreviews?

@johnhaddon
Copy link
Member

A PathPreview can contain any Widgets it wants. We'd probably want a SceneHierarchy in there as well wouldn't we? Or would we just expand everything all the time?

@andrewkaufman
Copy link
Contributor Author

Good question. I guess it depends how advanced we want the "preview" to be and how much real estate we want to give it.

Originally I was thinking collapsed by default and let the user expand with the viewer controls. Or better yet, a way to script the initial collapsed state, so Jabuka could fully expand single character anim, but only expand layouts until it hits a certain tag.

@johnhaddon
Copy link
Member

The initial collapsed state could be scripted by setting the "ui:scene:expandedPaths" context entry. I like the viewer cursor controls, but they're not the most discoverable compared to the hierarchy editor. I guess we need to find a balance between minimalism and squeezing the entire gaffer app into a little preview pane though.

johnhaddon added a commit to johnhaddon/gaffer that referenced this issue Jan 24, 2014
This allows scene caches to be previewed in the browser and view apps. A node toolbar provides options for adding a camera to the scene and having it track a particular object.

Fixes GafferHQ#416 and fixes GafferHQ#636 by way of demonstrating how it can be done.
johnhaddon added a commit to johnhaddon/gaffer that referenced this issue Jan 28, 2014
This allows scene caches to be previewed in the browser and view apps. A node toolbar provides options for adding a camera to the scene and having it track a particular object.

Fixes GafferHQ#416 and fixes GafferHQ#636 by way of demonstrating how it can be done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scene Issues with GafferScene
Projects
None yet
Development

No branches or pull requests

2 participants