Java3D redrawing and re-rendering.

#10 In order to have my collection of IndexedGeometryArray points (and designated special normals) drawn and filled in, my program will make a call to the NormalGenerator Class.
If the object itself is to change by the stretching and moving of a defining point during runtime, and to experience a line, but mainly a surface change, does one just call the NormalGenerator multiple times? However won't this slow down the program to the point of thrashing?
Is this the ideal way to handle run time redrawing (re-rendering) ?

What happens if I start iteratively calling NormalGenerator
on a particular subset of my overall 3D world,
on a particular IndexedGeometryArray?
I would have an independent thread for this.
Will things essentially happen instantly?
How fast will this go, and will there be any perceivable delay?
What needs to be held in mind when doing things?

Similar Messages

  • [General Question] redrawing and updating front panel objects

    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!

    Nocturn wrote:
    Hello,
    I have several questions on this topic.
    1)  Is there a difference between redrawing and updating the front panel? (I assume so, but when a control is updated it will be redrawn at the same time, right?)
    2)  Is redrawing = rendering? In the case of decorations I think they need only to be rendered once (if fix/static) and stay in memory so that it is available for the gfx-card...
    3)  Are decorations redrawn or updated by LabView with every loop?
    4) Is there a way to prevent LabView from redrawing and/or updating front panel objects (like controls, indicators and decorations)?
        When I put indicators into case-structures they are only updated when the case in which they are placed is executed but they will be obviously still redrawn.
        In another case when I disable visibility of those indicators they will not be redrawn anymore but be updated in the background.
        So when I put these indicators into a case-structure and combine it with toggling the visibility I could stop LabView from updating and redrawing them.
        Is this correct?
        Is there another way to prevent LabView from redrawing single objects? (at best leave them somehow visible)
    Many thanks in advance!
    redraw vs update
    Yes threr is a difference. A control is redrawn when LV decides to update the GUI. Look into "syncronous" setting for controls that forces update when value changed. These tags and thesse tags may help out abit.
    Q2
    Not sure about equality but decoartion may need redrawn if there is overlap of chanable objects.
    Q3
    i have observed decorations that failed to update on occation so I suspect they are only update when required.
    Q4
    LV will update the value for a hidden control but will not update its image. Same if the object is ona hidden tab page.
    No wawy that I know of to prevent an update of a single object with out going to extremes. The Front pnale property "DeferFPupdate" will inhibit FP updates while true and allow then when set false. I use this when doing a lot fast GUI updates so allow the changes to accumulate and be apllied only once.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • JAVA3D versions and runtime errors

    hi, everybody:
    I just begin to program in java3d today and met some problems.Now I share you with my solution(s) and wish every author can end his question with the final solution in the forum.
    OS: Windows XP
    J2SDK: 1.4.1_02,1.4.2._01
    DirectX: 9.0 update
    Java3D: 1.3.1
    Error: Fail to Create Vertex Buffer---D3DERR_INVALIDCALL
    Solution: uninstall java3D1.3.1, install java3D1.2.1_04
    wellcome to add more information to this topic.

    A better solution might be to switch to the OpenGL version
    of Java 3D.
    -Paul

  • Screen wobbles and unsatisfactory rendering after last update

    After the last automatic update (which upgraded QT to 7.2 and a couple of other things), the screen rendering has deteriorated markedly.
    Moving the mouse around causes the screen to wobble by a pixel or two vertically and horizontally and the rendering of fonts (in Firefox particularly, but also system profiler and other apps) to look bad. The wobble is independent of any application and affects the dock as well as the whole screen.
    Is there anything that can be done to fix this?

    You have accidentally turned on screen zoom. Turn it off (System Preferences > Universal Access > Seeing > Zoom > Off).

  • Sound import to 25 fps sequence is always out of sync and need rendering!!!

    Anyone know why an aif sound file from Pro Tools imported to 25 fps sequence is always out of sync and needs rendering? It is like FCP is converting it to another freq. when it is 48k already! I do this all the time with NTSC and 23.98 projects, what is up with the 25 frame seq.??
    Thanks, Mark

    Nick Holmes wrote:
    Your audio files must be 48,000 kHz AIFF files if you want to use them in Final Cut Pro.
    If the originals are coming from CD's they are 44,100 kHz.
    Resample in Soundtrack Pro or convert in QuickTime Player.
    Your location says you are in LA. Why are you working in in PAL?
    I know that things need to be at 48K this would not matter anyway if it was 44.1 FCP would do the conversion and not make it out of sync in an NTSC Timeline, but a PAL timeline FCP screws with the sound file. The files came from pro Tools, the industry standard should mixing.
    I put them through Sound Track Pro and it did not help.
    LA is the entertainment center of the world, we send project all over the world.

  • I have the current Mac Pro the entry level with the default specification and i feel some slow performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest?

    i have the current Mac Pro the entry level with the default configuration   and i feel lack of  performance when applying after effects on my videos using final cut pro and also rendering a video takes long time ? what upgrades do you guys suggest i could do on my Mac Pro ?

    256GB SSD  it shipped with will run low and one of the things to watch.
    Default memory is 12GB  also something to think about.
    D500 and FCP-X 10.1+
    http://macperformanceguide.com/index_topics.html#MacPro2013Performance
    Five models of 2013 Mac Pro running Resolve, FCPX, After Effects, Photoshop, and Aperture

  • Let's talk efficiency. Over 200 clips need trimming and re-rendering. Need to optimize workflow!

    Hi,
    I have over 200 short videos that need:
    -To have the beginning and end trimmed off
    -To have a static title added at the beginning and end
    -Rendered into over 200 separate files.
    -Some videos need to be split into 2 or more separate videos, with the titles added.
    What is the best way to do this?
    Right now I have to:
    -Drag the video into a new timeline with the mouse
    -Hit "C" and trim the ends off
    -Drag the title into the timeline with the mouse, option click and move the title to the end
    -Sometimes, command-x a clip, create a new timeline, and command-v to the beginning of the clip.
    -Render the file
    Any small efficiency I can find: saving a mouse click, saving a keystroke, can result in hours of saved time. Any way I can improve this workflow? Thanks so much.
    -Neil

    Hello,
    For repetitive tasks like these, I've found great success with Keyboard Maestro.  It can let you very easily create a macro that can process all the clips on the timeline after you've recorded the action on just one.
    Use the Up/down arrow keys to move the playhead to the start/end of a clip and then use Shift + left/right arrows to set a trim distance than then Q & W to trim. You can specify the Step forward/back distance in the Preferences (under Playback) if you wish.
    To export, you can use the Ctrl (or is it Command?) + down shortcut to select the next clip, use "/" to mark the selection, Command+M to open the Export dialog, then count the number of times you have to hit Tab to get set focus to the 'Queue' button and hit Spacebar to press the Queue button.
    Once you have a working macro, everything should finish in less than a minute, even if you have hundreds of clips.
    The only thing to watch out for is to set a decent enough pause in Keyboard Maestro between actions so that Premiere has enough time to finish each action (usually around 300-400 milliseconds does the trick for me).
    This is one of the abilities of OS X that I sorely miss on Windows.
    Edit: About the titles you mentioned, you can also get a macro going for this - a few things need to be set in motion for that, but I can see how it can work:
    - If each clip requires a unique title, you're obviously going to have to create that manually.
    - Before creating your titles, set the default image duration in the preferences to the duration you need your titles to be.  Then every title you create will be the correct duration.
    - Set the preference to set focus on the Timeline when performing insert/overwrite edits.
    - When creating the titles, name them so that they're sorted in the same sequence as the clips.
    Once you have the titles prepped, you can use the up/down arrow keys to position the playhead in the Timeline, use the Shift+1 to switch to the Project panel, press down to select the next title and then "." key to insert the title (focus will shift back to the Timeline because of the changed preference and you can use the down arrow to move to the next clip and have the macro repeat the process for you.)
    Good luck.

  • Firefox 4.0b1 and b2 rendering incorrect weight of some fonts

    Firefox 4.0b1 and b2 rendering incorrect weight of some fonts
    The first thing I had noticed when I upgraded from FF 3.6 to 4 beta 1 was that Firefox was incorrectly rendering fonts as bold. After some digging I found out that it was the font-family:"helvetica neue" line in the css file that was causing the ugly bolded font (black weight, actually). After editing the css to "Helvetica 55 Roman", the font displays okay.
    Example site: https://addons.mozilla.org/en-US/firefox/?browse=featured
    The thing happens in the very mozilla addons site.
    Also have noticed that the same bug occurs on different fonts, where the font name in css is specified in alternative namings, as in "나눔 고딕" for NanumGothic (korean font).
    The bug didn't seem to have fixed in beta 2, nor could I find any other thread/document on the web with the same problem. I doubt it's my own problem, since it worked just fine in older versions and I have the very same font files installed since the start.
    Screenshot: http://i25.tinypic.com/zy9co2.jpg
    == This happened ==
    Every time Firefox opened
    == Open certain websites with css font-family:"helvetica neue" in the stylesheets

    I sympathize with you all, and I spotted Kimatg at the Bugzilla forums. My Firefox 3 is all right with Helvetica and Neue Helvetica in PostScript, TrueType and OpenType. However, my Firefox 4 Beta 7 through 9 goes nuts.
    Compared to the situations above, all I can say is: at least you are getting your pages in the right font family or even in the right typeface. Attached are some pages in Helvetica that my Betas are showing. They don’t even come close to ''a typeface'', let alone Helvetica.
    It’s not just Helvetica. Our in-house Arial substitute, Lucire, is also displaying oddly on some pages unless the font is embedded.
    Cor-el, I know you are one of the most helpful folks here, and I thank you for your continued generosity. I have to make one correction to your statement: PostScript on Windows generally does not have a bitmap component, unlike on a Mac where it had suitcases. So all these fonts are vector-based.
    It shouldn’t make a difference to Firefox’s rasterizer anyway, but, for some reason, on 4 Beta, it does.

  • Why is connection speed and page rendering so much slower in FF 3.6.13?

    After installation of the 3.6.13 upgrade, website connection and page rendering speed became significantly slower than in all previous versions. I searched the knowledge base and Forum and found this post:
    http://support.mozilla.com/en-US/questions/668695#answer-108852
    After changing settings as described in the post, speed was easily more than doubled.
    I'm wondering if anyone else has experienced the slowdown in connection and rendering speed with 3.6.13. And also why, if the settings worked so well for me, they aren;t standard in FF?

    http://www.nasdaq.com/asp/quotes_news.asp?cpath=20040608\ACQBIZ200406080001BIZWIRE_USPR_____BW6209.htm&symbol=amd&selected=amd&kind=&mode=basics&formtype=&mkttype=&pathname=&page=news

  • Why is it that text in Mavericks and Safari renders as medium gray and not black, anymore?

    Why is it that text in Mavericks and Safari renders as medium gray and not black, anymore? In Mountain Lion and Safari 6.x this was not a problem.

    Have registered the following to the feedback link above by macjack:
    Mavericks renders most text as a gray (65 +/- in all three RGB using Digital Color Meter) and not black.
    This is a big change from pre-Mavericks and is especially difficult in Safari; worse still in Safari "Reader" where sub-heads in Reader-ized text are still paler.
    Especially for older eyes this does not fly. This user is close to downgrading to Mountain Lion and Safari 6, where this was not a problem.
    Stout rap on the nose: Jony Ive should be shorn of his glasses/contacts and forced to read only on these displays and OS versions until he cries out for the opthomalogist. One can only conclude this problem exists because those who came up with it were never in need of actually using it.
    Make the text BLACK.
    It's the same story on our MacBook Airs and MacBook Pro.

  • PPBM5 Questions and GPU Rendering Concerns

    Bill and Harm, i figured i woud post this here instead of a private email so as to get some opinions and input from others.
    I am a bit confused with the logic behind the gpu testing and want to make sure i understand how this is working and make sure i dont have any problems with my machine.
    I just wiped out my 8 core, 20GB ram, SSD, gtx 460/2GB, machine and put a fresh win7/64 on it with cs5 and nothing else.
    i am planning on doing various tests with the SSD, then SATA Raid, then my 4gbit fibrechannel in combinations.
    My concern is over the gpu acceleration and timeline rendering. My basis for wanting these gfx cards with cs5 is on the PPBM results showing all kinds of double digit speed gains with MPE enabled.
    I have 8 of these machines and need to upgrade them all so i am concerned to make sure what i am doing and what i am getting for it.
    my first obvious question for everyone else is when you load the benchmark in what do you see on the timeline? i have all yellow except for two small red lines near the end of each section where the curtain and cube effects are at.
    Now when i hit the spacebar to play the timeline at starts out ok but then hits the 8 second mark into it and chokes out the rest of the way skipping frames and drawing maybe 3-5 frames per second until it gets through the rest.  Is this what happens for everyone else or does your system play the yellow area smoothly?
    Is this a by-product of my manually putting the 460 into my supported cards file and premiere not properly calculating what the gpu can and cannot accelerate?
    Now as for the benchmark testing itself when i hit enter it simply renders out those 2 effects that have the red line then starts playing the same choked out skippy video as before.
    So if this speed is calculated and then the speed of my cpu rendering the entire timeline then how is this an effective comparison? if i simply remove those two effects at the end then i still have that big complicated timeline and yet if i hit enter it just plays choppy video instantly and nothing is rendered, so compared to my cpu thats a bazillion times faster but i dont get anything out of it as the video doesnt actually play with the gpu.
    My real concern and need is flat out rendering speed for encoding. i had high hopes that getting a video card with hundreds of cores on it would magically render out mpeg 2 files 10-20x faster then my cpus can.
    i saved out a pic of my cores when i am playing the timeline, you can see they are not being maxxed out.
    Before i wiped my system out i tried the trial version of the mainconcept gpu encoder and it went slower with the gpu than it did with my cpus. Their email response to me was that gpu rendering is more of an advantage against slow cpu systems. and my cpu's were too fast in comparison. I find this hard to believe in that my system is several years old now. thier own performance comparison charts show a tremendous speed increase over modern I7 processors.
    On a side note - DONT INSTALL MAINCONCEPT TRIAL ENCODER!- it hijaacked my mpeg encoding/decoding even when i wasnt using it and it was watermarking all my stuff in premiere with its logo!
    I also have been using a program called canopus procoder which does great encoding with multi cores, a standard dv to mpeg2 encode on my system maxxes all 8 cores and renders about 14x faster than realtime.
    I hoped a cuda card could increase this speed for me and render faster then that directly out of premiere. I would think during rendering your cpu's and gpu's would work together at 100% usage to go as fast as possible. i would like to see 20-30x realtime speed for mpeg2 encoding in my situation.
    Thanks and i look forward to any input or help or even a simple "click on this and yoru problem is solved" 

    harm, thats kind of funny actually, you show us a report of your dropped frames on playback then say you cant tell us how because of NDA, yet we obviously know you have an app that reports the dropped frames during playback
    But thats ok, anyways as far as your ppbm goes i love it and dont mean to desparage it in any way, i have been a big supporter and love the work you and bill have put into it. I am really just trying to have a better understanding of how it works.
    My concern is more about premiere as opposed to ppbm.  I want to know if my system matches what everyone else sees, when i load the project is get this:
    i just want to make sure everyone else has the same tiny red sections that premiere feels it can't play.
    previously premiere has always either played in realtime at 30fps or shown a red line which needs to be rendered. then if you render it you get full 30fps playback on the entire timeline.
    now with this new gpu workflow i can only render those two tiny little red sections and the rest of my timeline plays at about 2 or 3 fps from 8 seconds into the timeline until the end.
    So I actually have no physical way to see my video at full 30fps without changing to software mode and rendering the entire timeline?  or am i missing something here?
    Isn't premiere supposed to recognize when it cant keep up with 30fps playback and change that section of the timeline to red?
    And on a side note i still have to say i am fairly annoyed that an adobe employee took it upon themselves to move my thread into the unpopular generic premiere hardware forum, when this is a very specific premiere cs5 question thread. I have never even looked in this forum for any cs5 posts before now and had hoped to get more feedback from users in the main premiere cs5 forum.  A lot of companies like to treat their customers well and the old addage "the customer is always right" doesn't seem to apply anymore. My company probably has purchased over $1,000,000 in adobe software licenses over the years which i feel would make me a valuable customer, and i have some important questions i need to ask about the new version of your software and how it is supposed to work.
    thanks

  • When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    When I send open office documents to a PC user (even saved and sent in the word format), the document reaches with serious format changes and is rendered unusable to the PC user. How to overcome the problem??

    I don't use OpenOffice (I have it on my internal just to play around with, but seldom even open it). I do use MS Word and have few problems sharing files - it's usually a font issue so I tend to use MS fonts for documents that I know will need to be shared.
    Unless you need to make collaborative changed to the document, you could always save it as a pdf file. With Acrobat Pro you can even save a pdf file to a Word document with very little change in formatting.
    If I were you - and you have a need for .doc or .docx files to travel and play nicely - I'd just invest in MS Office. If you don't have to send a Word file, try pdf.
    Clinton

  • Image and font rendering

    Hi all:
    I have some questions about font and image rendering in
    flash. At time, the images Im using on my application are in png
    format, I have noticed that my swf is not very big in size(about
    140Ks), however, when I load it, the memory used increases
    amazingly (nearly 2MB), whats the policy of compressing and
    uncompressing of png images?.
    Also, some attached images are a bit decreased on width, is
    that caused by the image renderer of flash player?
    The fonts displayed (when I use font including glyphs) are
    displayed a little bit blurry too.
    Any advice about the configuration of fonts or imported
    images?.
    Regards

    Assuming you are using s60 and checking memory on the phone,
    I believe the standalone will grab memory from the device once it
    starts running. So, the 2mb is probably Flash Lite occupying its
    maximum allowed memory, and maybe not particular to your SWF. You
    can test this by loading another swf of different size and checking
    memory.
    Make sure that x,y coordinates of images and fonts are on
    whole number values , not decimals. Also make sure the text box
    size is whole number value. Font blurriness maybe from Flash
    anti-aliasing. Have you tried to display your text without
    anti-alias. Are you using a mask over device fonts? (flash will
    embed a font in this case and not use device font).

  • How to personalize and set rendered property false to poplist

    HI,
    could u please tell me that How to personalize and set rendered property false to poplist
    when poplist was developed initially it's user personalization property set as FALSE, that is why when i tried to personalize and set rendered property as flase, i could not able to find the property as rendered for that perticular item.
    Please provide me step by step process.
    Thanks,
    Ram.

    Hi Ram,
    you can do set rendered false through personalization as well as co extension.
    if you go for persoalization set the profile option Personalize Self Service Definitions and clik on personaliztion link
    then search for item and set its rendered property to false.
    If you go for co extension capture the poplist bean and and setRendered(false) to that field.
    If you are feeling difficulty by personalizatoin better go for CO extension.
    Thanks
    Amit Jaitly

  • Swing and Active rendering problem

    Hopefully this is the right place to post. I have a problem with active rendering and swing. Basically my code below messes up when I start rendering the swing either using repaint() or paint(g).
    If I use repaint() then the gui flickers like mad and if I use paint(g) then I get deadlocks when typing into the textbox.
    Any help would be great for what am I doing wrong. How do I solve this problem?
    public GuiWindow() {
              try {
                   guiImage = ImageIO.read(this.getClass().getResource("Images/Gui2.png"));
              } catch (Exception e) {}
              this.setPreferredSize(new Dimension(800, 600));
              this.setUndecorated(true);
              this.setIgnoreRepaint(true);
              this.setResizable(false);
              this.addKeyListener(kl);
              this.setFocusable(true);
              this.requestFocus();
              this.setTitle("PWO");
              JPanel panel = new JPanel()
              public void paintComponent(Graphics g)
              //Scale image to size of component
                   super.paintComponent(g);
                   Dimension d = getSize();
                   g.drawImage(guiImage, 0, 0, d.width, d.height, null);
                   this.setIgnoreRepaint(true);
                            //draw background for the gui
              JTextField Name = new JTextField(20);
              panel.add(Name);
              this.setContentPane(panel);
                    myRenderingLoop();
    public void myRenderingLoop() {
              int fps = 20;
              long startTime;
              int frameDelay = 1000 / fps;
              this.createBufferStrategy(2);
              BufferStrategy myStrategy = this.getBufferStrategy();
              Graphics2D g;
              while (!done) {
                   startTime = System.currentTimeMillis();          
                   do {
                        do {
                             g = (Graphics2D)myStrategy.getDrawGraphics();
                             this.repaint();
                             this.render(g); //render the game
                             g.dispose();
                        } while (myStrategy.contentsRestored());
                        myStrategy.show();
                        Toolkit.getDefaultToolkit().sync();
                   } while (myStrategy.contentsLost());
                   while (System.currentTimeMillis() - startTime < frameDelay) {
                        try {
                             Thread.sleep(15);
                        } catch (InterruptedException ex){}
         }Edited by: Aammbi on Apr 6, 2008 7:05 PM

    I really have no idea what your code is trying to do, but a few comments.
    1) There is no need to use a BufferStrategy since Swing is double buffered automatically
    2) Don't use a while loop with a Thread.sleep(). Chances are the GUI EDT is sleeping which makes the GUI unresponsive
    3) Use a Swing Timer for animation.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.

Maybe you are looking for