-
Notifications
You must be signed in to change notification settings - Fork 68
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
VCS2D Animation while Interacting #1113
VCS2D Animation while Interacting #1113
Conversation
hum.. just tried it from command line ubuntu (with merged master in) |
Nope, looks like it's doing that on mine as well. I'll keep working on this. |
Turns out, making a new repeating timer on every tick of the repeating timer is a bad idea. Who knew?
So, I guess you shouldn't just keep spawning repeating timers in your timer event listener. Whatever. That would be why the Q key and the Stop Animation button didn't work– I was flooding the event loop. Still have the UI flashing; it's because of the png generation. I'll keep working on that. |
@doutriaux1 I can't think of any great way to not flash the UI during animation, given that we want to generate the PNGs. I guess we could leave the UI in, and then when you save, rebuild the PNGs and strip out the UI for those? Dunno, let's chat on Monday about it. |
Conflicts: Packages/vcs/Lib/animate_helper.py
I don't remember it flashing that way before. Before I was not using pngs until they were all ready so there was not flashing on first pass at all, second pass was super fast. Why do you need pngs on first pass? I think the issue is that before widgets come in it was barely noticeable and now the redraw time gets a bit longer and it is noticeable. |
Sorry, miscommunication; the animation doesn't flicker at all anymore (since I fixed the timers spawning timers spawning timers issue), and runs fine. The widgets flash off and then on as the PNG is rendered.
|
@doutriaux1 Also, I think I've got an idea for how to get around this issue. I'm going to experiment to see if it works, and we can discuss if it seems like a good idea or not. Are you in this afternoon, or are you out today? |
I'm in but from home. Want to setup a gotomeeting at some point? |
Got a sec to chat on the phone? I can explain my idea and see if you think it's crazy or not.
|
@doutriaux1 Alright, I got offscreen rendering working for animation. I had to add some logic so run() would do it straight in the main window; rendering offscreen on a non-main thread was making the objective-c runtime throw a hissy fit. Mind giving this branch a shot? |
almost there! Works like a charm from command line. BUT (theres always a but) in GUI I can't get the widget to show up (even clicking on edit pen). Am I missing something? |
@doutriaux1 I haven't done the configure pen integration yet; I wrote the code to handle enabling and disabling the UI at the canvas level in another branch, but had not yet tied in with the configure pen in VisTrails. I'll have no problem knocking that out Monday morning. Presumably this should be easy to fix then as well. |
Should I merge that and you start a new branch? Or you keep working on this one? |
I'll just do it in this one. I'll get that going right now. |
OK, I fixed the UI not showing up in the GUI. Some of the buttons are still showing up behind the text. I made it so my stuff only happens while the configure menu is open, though you'll have to use this branch: https://github.com/chaosphere2112/VisTrails/tree/configure_button_2d_interactions I'll submit a PR to VisTrails when we have that UI nailed down. |
I'm getting a segfault while resizing UV-CDAT with the configure menu open; working on sorting that out now. |
might be related to issue sI'm seeing on: #1135 |
@chaosphere2112 on my mac 10.9 command line and interact work fine. I'm using this branch for vcs, vtk: uvcdat-master with your timer fix, vistrails: your branch on pr Am i missing sometihng? |
@jbeezley Sorry, I ran into that bug as well. I have a fix for it, I'll push that up momentarily. To get at the controls in the GUI, you have to click the Configure pencil in the toolbar above the plot. @doutriaux1 It's working on my machine... Are you sure you've got the latest of all of those? |
@jbeezley OK, you can cancel a save now, and should be able to save multiple times without breaking things. @doutriaux1 You still having issues? Are you in at all today? |
Okay, I understand now. Looks to be working for me. |
@chaosphere2112 yes I'm sure I got latest of all. But will do a build from scratch just to be sure. And yes I'm in (from home) but turned off email so I can get things done. |
Huh, wacky. If you want to debug it a bit, you can stick a breakpoint in `canvas.configure`, and see what's calling it.
|
@chaosphere2112 interesting. When I click the pen and close the configure panel that makes the widgets disappear. Then clicking on the pen makes them reappear. |
So you've definitely got the right code in there, if it's happening like that. Are you just plotting clt?
|
yep. Wonder why it pops up with first plot. |
Did you get anything with the pdb / set_trace() in the canvas.configure method?
|
@chaosphere2112 does this helps:
|
@doutriaux1 Yeah; can you do a git pull in vistrails? I forgot to push a commit. |
@chaosphere2112 ok widgets now work, but I still get a weird ticks behaviour when runnig anim see attached png |
oh and closing edit then clicking on pen again and clicking run anim again leads to this:
|
Hmm... I'm not having exactly those issues, but definitely similar ones. I think there are some resizing quirks to work out on Monday. |
@doutriaux1 Latest commit should fix issue where animation starts off with ticks in wrong places, and will speed up resizing the window while animating; since resizing the background render window doesn't work well, I'm just rendering pngs at double the original resolution, and letting them get scaled appropriately for now. When we get #1148 fixed, I'll update it to work more like it ought to. I'm still working on the exception after closing the animation. |
@doutriaux1 Fixed the exception, helps to actually put the plot renderers back on the screen when configuration ends. |
@chaosphere2112 ticks are fixed but resize doesn't resize while animating any longer. |
@chaosphere2112 of course works, user error, sorry about the noise. @dlonie @jbeezley @aashish24 it's ready to go in as soon as we have your blessing. |
Still segfaults for me, but @aashish24 said he'll take a look on his Ubuntu. |
I am thinking now that we can merge it and see if we can reproduce the crash on other systems. I will try it tomorrow. |
Lets wait if @williams13 has any suggestions. |
@doutriaux1 mentioned yesterday that he was just about ready to merge this so we can get as many people testing it as possible to work out the last few kinks. |
@chaosphere2112 merging now. |
VCS2D Animation while Interacting
Big improvements to the animation controls during interaction; play works a lot better, can step a frame forward or backward, and added the ability to save out the animation and choose the framerate. Had to tweak a few things in the animation classes to make sure they worked with the changes, but I don't think I broke anything by doing so.