Pre-render Canvas content

Hello,
I have to visualize lot of data and I have to do it fast and without GUI freezing.
* This code is running in non GUI Thread
final WritableImage img = new WritableImage(500, 900);
Canvas tmpCanvas = new Canvas(500, 900);
// Draw something to Canvas
* Now I need render content of Canvas and put pixel to WritableImage.
Platform.runLater(new Runnable() {
                @Override
                public void run() {
                    canvas.getGraphicsContext2D().drawImage(img, 40, 60);  // put pre-rendered result to GUI Thread.
});Is there even some way how to do it?
Thx for answer. :-)

To my knowledge it is currently not possible to render anything in JavaFX outside of the rendering thread. Even the canvas first builds up a rendering list when you issue rendering commands which is then executed on the rendering thread. This has the effect that any long-time rendering will at some time block the GUI because it cannot be done in a separate thread.
By using a WritableImage you could of course implement your own software rendering but that is probably not what you want :-)

Similar Messages

  • How do I pre-render only portions of the timeline or selected clips?

    I'm switching from Vegas Pro to Premiere Pro. In Vegas, you select a portion of the timeline, then hit control-B and it pre-renders that segment.
    In Premiere, you hit enter, but it doesn't pay attention to the selected clips, it just pre-renders the entire sequence.
    This wouldn't be such a big problem except I'm managing projects that are fairly long, with 20-30 sequences and 20 or so nested sequences in each project and I'm switching between around 18 different projects for a series of 23 or so videos.
    These vids are already taxing my system resources with only a few minutes or so (referencing about 80-120gb of source footage), but my office comp is kinda weak.
    The problem is that when I pre-render a nested sequence and bring it back to the main timeline, I have to pre-render it *again* after making the next set of adjustments (ie color correction, transitions etc). Then I have to do it AGAIN when I copy it to another timeline for another similar project.
    Every time, it can take as long as 15 or 20 minutes (my video card is an nVidia GTX 560 Ti, it has CUDA, but prem doesn't support it for some reason).
    When my main timeline glitched out, forcing me to split into different projects, it took me almost 4 hours just to copy things into place with the additional 20 minutes to load the glitched file.
    Then I had to go and pre-render everything again to work my edits back into place.
    Even when everything is 90% correctly laid out, I still have to wait for the entire sequence to finish pre-rendering.
    As above, in Vegas Pro, I just select a portion of the timeline and the pre-render sticks to that area.
    I saw an article that said you could create in and out points and use that for rendering, but it doesn't seem to be a CS6 thing.
    I heard that Adobe was trying to keep CS6 up to date as a parallel thing to CC. Surely I don't have to switch to a $600/year subscription just so I can pre-render portions of the timeline like a lower-end competitor program has had for something like 5 years...?
    What am I missing? There has to be a way to do this simply.

    Are you sure?
    I have only 3 options on my Sequence menu.
    The first is: Render Effects in Work Area (default shortcut - Enter)
    Then: Render Entire Work Area
    and: Render Audio
    No other Render options are available from that menu.
    Oddly, those two things are virtually identical. One of them shows 52 clips, the other showed 57 clips. With 26389 frames (approximately...) ETA is around 20-25 mins. That's not very workflow friendly.
    It is smart enough that if I pre-render once, making minor changes later makes for much less pre-rendering work, but because I'm working with so many similar projects and sequences, all of them end up needing to be completely re-pre-rendered even if I'm doing a copy-paste and I need to tweak a few little things in one area of the timeline.
    This was especially evident recently when in a 3 hour period, I had to go through 4 revisions and needed to keep my original iterations because the person who made the broad, sweeping decisions was making really bad decisions and I knew I would end up going back to my original plan and making a few comparatively simple changes (which is exactly what happened right after the 3 hours).
    Out of 3 hours, I could have lost a good hour and a half just waiting around for pre-rendering stuff that hard already been pre-rendered, but because it had been copy-pasted, Prem couldn't see those previous pre-renders.
    I actually only lost around 40 mins. But I had to reshoot footage, including setting up lights and camera angles, plus import and do color correction again thanks to no round-tripping to speedgrade and having shot in other areas with those cameras...
    If I had been doing it in Vegas, I would have spent only around 10 minutes doing those pre-renders. Oh and Vegas can use my GPU... I'm an Adobe guy mainly, so it's frustrating to see Vegas win on silly niggles like this.

  • AE replaced footage doesn't pre-render properly

    Currently I'm working on a project that has various visual effects which I've composited in After Effects. I've done this, after editing the project in Premiere CS5.5, by selecting "Replace footage with After Effects composition" in the context-menu of the selected clip.
    Now I've completed the effects in AE and by the power of the amazing Dynamic-Link I can see the effects in Premiere! But there's a slight problem, the parts of footage that were edited in AE have a yellow bar above them, unless an other clip overlaps with it (in that case it's green).
    So my question is: How do I pre-render these clips properly so I can preview them in real-time?

    The yellow bar is normal. See http://forums.adobe.com/thread/773101
    No need to render a yellow bar, that plays in real time.

  • Problem with preview and pre-render

    hello Ladies and Gentlemen
    my problem is after i do any work(write, add, change) the preview is run  automatic and after the pre-render come and ask my if i'll save the video
    evry day
    can you help my for my problem
    sorry for any mistake in ortographe

    Can you provide some info about your system? Graphics card? Screeen resolution? Operating system? What input device (mouse or tablet)? This error has cropped up elsewhere recently, but since the person asking did not provide any details, we were unable to resolve it. If you are having difficulty posting in English, feel free to use your native language. We have English, French,Spanish, German, Russian and even a bit of Japanese covered by people here, so someone might be able to even answer in that language, provided a solution is available.
    Mylenium

  • Pre-comp / pre-render workflow?

    I've just submitted a feature request at : http://www.apple.com/feedback/motion.html
    I wanted to find out if anyone has a workflow that works well for this. I have one but it can be tedious when working with complex animations.
    In AE we have the concept of a pre-comp, or a pre-render. Basically you can take a bunch of layers and group them, and pre-render them. You can do the same thing in motion a couple different ways. Motion doesn't have pre-comps, but rather just groups. But you can't render the group within the .motn file. You have to take this group to another motn file, export it, then re-import the ProRes4444 .mov into the larger project. THEN, if you need to make any adjustments, you have to open the smaller motn file, make adjustments independent of the main project, re-export... reNAME export (since the larger project is -using- the media), then relink the media in the overall project.
    I'm not an advanced user of AE, but I do understand the workflow and I think motion would benefit from a way to break down the layers into pre-renders, but in a much more straightforward way.
    I do know that you can export a selection, and then choose to re-import to media after export, but then you end up with extra layers that you have to hide, and you still have to reimport that .mov and replace the layer you exported. Not very clean.
    Additionally, when creating a sub-project, it makes sense to make it the best quality, so if you have something small as part of your project, and you export selection, it will be that same small size in a larger file format. For example, you have a tiny circle spinning in your HD project and you want to "pre-render" it. You export that layer and you have a .mov that's HD size, but your circle is a tiny portion of that .mov. So if you wanted to zoom in on it it would be super pixelated. So the right thing to do is export selection and have the layer autofill into the HD boundaries.
    Do the advanced users work their complex projects like this too?...

    David/Andy:
    Really good points guys. I certainly am not saying Motion should be like AE. I am not starting a thread that is a comparison of the two. Each has it's own workflow, and Andy I think you bring up a really good point. I rarely use clones but they are a powerful tool in the right circumstance. I am curious about more complex design workflows and how some of us push the limits.
    David, I agree with your point about keeping Motion simple. Apple is proficient at keeping their software/hardware simple. Software that serves one purpose, or devices that have only a few buttons. The elegance is what we all like.
    Additionally, to your point Andy, we can do things withOUT precoming in Motion. Just keeping things in layers is good enough really. Like I said, I'm not really an AE user, but I do understand the concepts. I like the idea of a pre-rendered portion of the animation. Just seems to take the processor intensive portions out of creating complex animations. Moreover I think I am just wondering if I could create more complex animations WITH some of the design workflows that AE offers (like pre-rendering).
    At the end of the day I feel like I can do SO much with Motion, and have wiggle room to play around more. I'm definitely excited about a new version of Motion, and to see what sort of new features make it in. Perhaps nodal workflows, perhaps more 3D design tools... we'll see.

  • Premiere Pro CC: Pre-Render stalls and hangs occassionally

    Hi all,
    is everyone else experiencing that after hitting enter to do a quick pre-render, the progress bar pops up but then the system just "hangs". The application doesn't really stop working, but there is no progress.
    It almost feels that the application can't find the source material. But it only does it occasionally. Its hard to reproduce reliably, The "Rendering" window appears and then nothing happens. When I click cancel, the system locks up and that is it then. Sometimes it comes back to life, but only sometimes...could not find a pattern here either.
    I first thought its my hard drive but then it just happens at times, just as like it had forgotten where to look for the source material. Its very annoying ...

    I've not seen this myself.  How long do you wait for it till you decide it's not working?
    I have seen things lock up when hitting Cancel, though.  Not sure what that's about.
    On a side note, there is no pre-render in PP.  Hitting Enter is just a render.

  • SAP third party Pre-delivered SLD Content - Product and SWCVs

    Hi All,
    I have started this thread on LinkedIn and I wanted it to be viewed by all of you for your valuable suggestions and thus from SAP too... The thread is [here|http://www.linkedin.com/groupAnswers? viewQuestionAndAnswers=&discussionID=20482912&gid=81282&commentID=16700717&trk=view_disc ]
    VJ
    Edited by: VijayaShankar Konam on May 22, 2010 12:12 PM

    Here is the thread content until now -
    Hi All,
    I have been working on integration of our product with SAP. We wanted our SLD objects for the product and the swcs to be delivered as part of SAP's pre-delivered SLD content, so that the client could simply import our design objects in to their PI landscape (Similar to how SAP provides PI content on service market place. We do have partnership with SAP and this product integration was not yet certified by SAP. However, they SAP agreed to supply our product and SWCs as part of the standard SAP CIM modal content).
    How ever, even when we gave our SLD export to SAP, when the latest CIM modal for SLD from SAP got released, we were surprised to see that, our product and SWCvs are created with the vendor name "sap.com". This absolutely makes our product and swcvs unusable as we would not be able to look at them in the SPROXY on application systems. This was the same case with an older client that I worked with too..!! Any one had similar experience with this? Shouldn't SAP
    be creating them with vendor as "<vendor>.com"? At least, our product is not owned by SAP..!!
    We all know that, if sap.com is the vendor for SLD objects, only SAP could provide the proxy implementations through an SAP support pack.
    Could someone from SAP PI Techies understand my point and care to respond?
    Regards,
    VJ

  • Webpart pre-render taking lot of time

    I have written custom webpart but i see lot of time prerender method is taking so what are the best practices and events to call prerender methods please share. how to reduce response time on preprender pls share.

    Hi,
    Here are two threads for you to take a look at:
    http://sharepoint.stackexchange.com/questions/78531/web-part-instances-on-pre-render
    http://omicron-llama.co.uk/2011/03/10/sharepoint-2010-performance-with-item-level-permissions/
    If it still not help, please provide your code about the prerender method for further research.
    Best Regards,
    Dennis Guo
    TechNet Community Support

  • Pre-Render vs. Render - ??

    Is there any difference between pre-rendering and rendering?
    As far as I can tell nothing different happens. I'm curious why there is a choice - seems like there must be some distinction.
    I'm using CS4 but I've meant to ask this question since AE7 - obviously it's not real pressing!
    I guess I could also throw in "Make Movie"  - seems like all 3 commands lead you to the Render Queue...and when you get there it's all the same choices, same settings and modules available...
    Thanks!

    nevermind - it was a dumb question. i know when / how to use pre-rendering - instead of trying to render a 100-layer comp, you pre-render and nest individual comps inside your final comp.
    i was just curious why there are 3 menu choices that take you to the Render Queue...

  • Pre-Render Accordion panels

    I have an accordion with 4 different headers -- in each one
    is a form --- i want to be able to drag and drop onto this
    accordion and have all the form fields in each header populate ---
    but i get a message that the components in the closed headers are
    NULL (basically not rendered) is there a way to pre - render
    EVERYTHING in an accordion????

    very simple,
    the creationPolicy attribut of your Accordion component determines this functionality. By default it is 'Auto'
    You need to set as creationPolicy='all'
    this will initialise all you panel so that you wont get the NULL error again.
    Good day,
    Nith

  • Pre-render previews ?

    Is there a way i can set all the videos in my library to pre-render at a lower quality. I use a 2009 mac book pro and it really struggles to play the 1080p 60fps on the fly. But when i render the previews it works fine. Is there a way to have them all rendered and stored so i can use them for viewing instead of using the orginal feed ?
    Thankyou for the help!
    Kieran

    Press Enter instead of the Space Bar and the bar above your timeline will turn green after the render.

  • Video "crunched" on pre-render

    hi, I need some help here. I just upgraded my motherboard to an EVGA classified & put a new i7 CPU in, yet now whenever I pre-render (hitting zero on the numpad) it creates a crunched or flattened video. It the timelines flicker &  whenever I try to render anything, I get a serious error. I turned off SLI & Physx from Nvidia, what else can I do to fix this?
    Thanks, V.

    Thanks for correcting me, here is what I got.
    I recently upgraded my system from XP to an i7 860 CPU & Windows 7. Basically, my windows appear squished when rendered. I have turned off SLI & Physx. Screen shots are coming in my next post but right now I am working with Targa sequences & *.mov files, usually Animation codec.
    This is a very recent issue as it worked fine in Windows XP & has happened since start up. After effects work fine & I see no other conflicts with program.
    dxdiag & msinfo attached. thanks.

  • Render textarea content charachters in a div

    Hi all,
    I want to render the formatted content of my textarea in a div with 150px width
    So now I have the string in my DB like "My string \r\n blah blah blah eccccccccccccccccccccccccccccccccccccccccc"
    Wrapping this text in a html <pre> element causes the string to be formatted but it breaks the div because the formatted string is too long for the div content.
    So don't want to use the pre element instead maybe change the \r\n to <br> o something like that.
    Is there something in jsf to manage this problem?
    thanks

    You can apply the CSS overflow property on the div so that it would get a scrollbar if the content it too long.
    Replacing CRLF by <br> is relatively easy: you can do it with String#replaceAll().

  • Flash problems with Mountain Lion - web browsers hang when trying to render flash content

    Hi Everyone,
    After installing Mountain Lion all my web browsers - including the new Safari - seem to not be able to retrieve web content properly.
    For example:
    1. Youtube video will not play, hang for a while, then error out
    2. Facebook will hang then error out (Safari cannot even get to the Facebook page for some reason)
    3. IMDB.com cannot render the page, then errors out.
    I've tried uninstalling all browsers, flash players, Java and reinstalling again, yet the same thing keeps happening.
    Anyone have any ideas for a solution?
    Thanks.

    Same problem. Done every thin to fix it . I noticed today that if i login to Youtube y can´t watch videos (some times only once), but if i logout i can watch every video.  Can you check on that???
    I have reinstalled Flash, delete cokies, cache files, fixed rights, and the same. The problem is the same in Chrome, Safari and Firefox and started just after i upgraded to Mountain Lion.

  • Canvas content showEffect

    How to show / hide in sequence the content of two canvas in a
    viewStack ??
    i try something like this witout results. Thnx
    cg
    <mx:Canvas label="dos" width="100%" height="100%"
    hideEffect="Fade" >
    <mx:showEffect>
    <mx:Sequence>
    <mx:Fade target="{imageB1}" duration="3000"/>
    <mx:Fade target="{imageB2}" duration="3000"/>
    <mx:Fade target="{imageB3}" duration="3000"/>
    <mx:Fade target="{imageB4}" duration="3000"/>
    <mx:Fade target="{imageB5}" duration="3000"/>
    </mx:Sequence>
    </mx:showEffect>
    <mx:Image id="imageB1" source="assets/images/21.png"
    />
    <mx:Image id="imageB2" source="assets/images/24.png"
    />
    <mx:Image id="imageB3" source="assets/images/23.png"
    />
    <mx:Image id="imageB4" source="assets/images/25.png"
    />
    <mx:Image id="imageB5" source="assets/images/22.png"
    />
    </mx:Canvas>

    Set layoutDirection="ltr" in the global selector

Maybe you are looking for

  • Can't connect visa card for account

    I'm trying to connect to the VISA account. All enter correctly, but Itunes says that "Your credit card has not been confirmed. Enter credit card information true test." What's the problem?

  • I dont know where to begin, what is a sliding window?

    The problem is to create a "smooth" image/"oil painting" image for a given image. You must create a GUI interface that include a menu which uses a JFileChooser to load/save an image file (a plain PGM file). The menu also include an exit menu item. Th

  • Recurring calendar entries synced with exchange do not display correctly on ipad

    Hi I have just bought a new ipad2. It is full updated to IOS version 4.3.2 I have set it up to sync with my Exchange Server Outlook account Any calandar entries that I have in outlook that are "all day" and recurring (eg birthdays) display correctly

  • Can't open Adobe Reader

    Hello, I was able to read pdf files since I got E65. Unfortunately it has changed (other files like doc can be open with no problem). When I try to open Adobe Reader or any pdf file it crashes. I have installed DrJukka's Y-Task and started Crash Moni

  • How do I remove the outdated flash from the latest and greatest "secure" Acrobat Reader XI?

    I read that the version XI is enhanced with better security in mind. Great all for that. But what I also see is the included version of Flash player is outdated. Not so good. So how do I blast this flash plugin part of the installation into oblivion?