3D picture Draw shaded boxes - FAST!

Hi,
I would like to draw shaded boxes, like 'Scene.Drawable.Geometry.New Box'. But I want to draw some 100.000 boxes or more. If I use this function, I have to join the boxes using the Object.Add Object' invoke node. Repeating this for 100.000 times takes a long time, costs a lot of memory, and results in a slow display.
As an alternative, I created a box primitive, built from 6 quads. I can create an array holding the vertices of 100.000 cubes, and display them like a mesh. The creation is fast, and also is the display. But: the shading of the boxes differs from the shading that results from the first method. See example code.
I tried a whole lot of different lighting and shading settings, but I cannot get it right. Is it possible to draw a box using a mesh that looks exactly the same as the box using the new.box method?
In the example code, I would like to have the red box to have the same sort of shading as the green box.
Any help is appreciated.
Attachments:
3D Picture Draw.vi ‏23 KB

Well you will have an X, a Y and a Z normal depending on the face of the cube and also positive or negative depending on the side of the cube.
Try {1,0,0}, {0,1,0}, {0,0,1}, {-1,0,0}, {0,-1,0}, {0,0,-1} although I don't know in which order (Depends ont he order of declaration of the "sides".
I think you may have to declare the normal mode to "Per Primitive" for this to work.
PS here are the normals I got working with your example
Say hello to my little friend.
RFC 2323 FHE-Compliant

Similar Messages

  • Cant see pictures- only gray box with !

    please i need help i by accidently double clicked a picture twice (so i clicked the picture 4 times really fast by accident) and then instead of seeing an enlarged picture i saw a gray box with dashed lines with an ! in the middle. when i plugged my ipod touch in i looked and all my pictures were gone. i dont know how to fix it, please help me!

    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • Pictures and text boxes in rtf template

    Hi there,
    are there any general rules for applying pictures and text boxes to rtf-templates?
    As far as I have experienced, the text boxes are not shown when generating a report. Is it generally not possible to display text boxes? Are there any work arounds?
    Thank you,
    BR
    Lena

    Hi,
    do you mean instead of text boxes?
    Yes, that is no pborlem.
    Are there any known issues regardings pictures and any other design elements?
    Thank you!
    BR
    Lena

  • Output a shaded box in SAPScript with Dot Matrix Printer

    Hi guys,
    Is there a way to print a shaded box in Sapscript using Dot matrix printer?
    BOX XPOS '4'CM YPOS '2.8'CM WIDTH '2'CM HEIGHT '0.4'CM FRAME 10 TW INTENSITY 100
    I tried the code as above but it wouldn't work, and doing a search on this forum tells me box command wouldn't work on dot matrix printer. So is there any alternative to do this?

    Hi
    if it is possible try to print the same in another printer and confirm the problem
    no doubt certain printers may create such problems while printing the output
    so to confirm the problem try with other printer.
    Reward points for useful Answers
    Regards
    Anji

  • Drawing a box in smartforms

    Hi,
    Is it possible to draw a box in smartforms in a non specific place on the page?
    Thanks
    Lindy

    Hi Andreas,
    The form I am trying to design is an instruction form for a driver.
    Basically it lists the drivers instructions for the day, then has boxes where the driver can fill in vehicle registration, start kilometers and end kilometers.
    There is also then a place where the customer can tick a box if he was happy with the service, or enter comments into a box if he was not happy with the service.
    The problem is that the driver instructions can be any length, so I cannot place these boxes at a specific place on the page. This is what I originally did, but the client does not want to see a big empty space if the instructions are really short.
    Thanks for your help. I would be interested to here of a solutions, but if it is quite complicated, don't worry about it as I am sure it can be done with a sapcript instead.
    Regards
    Lindy

  • How to draw a box before Line Item in the Main Window  In SapScript

    Hi guys,
    I am trying to draw a box before Line items to be printed but it overwriting the Line Item can anyone help me in this.
    Thanks,
    Ramesh

    Hi ramesh,
    check this:
    /E   TOP
       plant,,status,,GROUP,,Profit,,Min.Size,,Max.Size
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /*   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    /E   NEW
       &IT_SCRIPT-pstat(C)&,,&IT_SCRIPT-werks(C)&,,
    =    &IT_SCRIPT-EKGRP(C)&,,&IT_SCRIPT-PRCTR(C)&,,
    =    &IT_SCRIPT-MINLS(C)&,,&IT_SCRIPT-MAXLS(C)&
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    the corresponding code in abap editor:
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
       APPLICATION                       = 'TX'
       ARCHIVE_INDEX                     =
       ARCHIVE_PARAMS                    =
       DEVICE                            = 'PRINTER'
       DIALOG                            = 'X'
        FORM                              = 'ZFINAL_13688'
        LANGUAGE                          = SY-LANGU
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
                        EXPORTING
                          ELEMENT                        = 'TOP'
                        FUNCTION                       = 'SET'
                          TYPE                           = 'TOP'
                          WINDOW                         = 'MAIN'
                        EXCEPTIONS
                          ELEMENT                        = 1
                          FUNCTION                       = 2
                          TYPE                           = 3
                          UNOPENED                       = 4
                          UNSTARTED                      = 5
                          WINDOW                         = 6
                          BAD_PAGEFORMAT_FOR_PRINT       = 7
                          SPOOL_ERROR                    = 8
                          CODEPAGE                       = 9
                          OTHERS                         = 10
                       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       ENDIF.
    LOOP AT IT_SCRIPT.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'NEW'
        FUNCTION                       = 'SET'
         TYPE                           = 'BODY'
         WINDOW                         = 'MAIN'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    regards,
    keerthi.

  • The hyperlinks in my pdf all have a blue shaded box around them when viewing in adobe reader.

    The hyperlinks in my pdf all have a blue shaded box around them when viewing in adobe reader. How can I get rid of these? Why is this happening? The pdf was created from a presentation in powerpoint and uses the links for some interactivity. 

    That's a great feature request. I'd like the ability to turn off the blue boxes over hyperlinks as well.

  • Pencil mark-ups disappear and Drawing Markups box goes black

    As I use Adobe Reader X, after a few pages of using the Comment--Drawing Markups tools, like the pencil marks, these start going goofy, disappearing an reappearing. Also the Drawing Markups box goes black, the "find" windows starts to disappear too. Seems like something's corrupted. Can anyone help?
    Thanks much.

    Hi there
    I also bought mine from the US, can't believe the sickening price difference. I've kept the powerlead for when I visit the states and want to use on my iPod charger and as Winston said, just used an existing powerlead (figure of eight). They're actually cheaper to buy than an airport-esque US to UK plug adaptor. The unit automatically does the 110/240v thing, so don't worry.
    Regards

  • Drawing a box with now fill and an outline

    I know this is simple, but I it's driving me crazy. Using the rectangle tool how do you draw a box with: an outline and no fill, and an outline with a different color fill. thanks

    public class Flags3 extends JFrame {
        public Flags3() {
            setContentPane( new JPanel() {
                public void paintComponent(Graphics g) {
                    int w = getWidth();
                    int h = getHeight();
                    int x = 0;
                    int y = 0;
                    System.out.println("Width:"+getWidth()+" Height: "+getHeight());
                    for (int i=0; i<100; i++) {
                        Color newGrey = Color.getHSBColor(150, 0, i/100.0f);
                        g.setColor(newGrey);
                        g.fillRect(0, (h/100)*i, w, (h/100));
            Dimension size = new Dimension(800, 600);
            getContentPane().setPreferredSize(size);
            getContentPane().setMinimumSize(size);
            getContentPane().setMaximumSize(size);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            pack();
            setVisible(true);
        public static void main(String[] args) {
            new Flags3();
    }I wrote this mainly to make sure I wasn't giving you bad info, but I also improved your paint method a little bit. It's a JFrame instead of a JApplet, so you'll have to make some changes, but it gives the full range of black to white (although it doesn't include full brightness white, the B value only goes to .99).

  • Drawing a box

    Hi,
    I've developed a sapscript..... and I want to draw a box arround the date which is in the header..... can anybody help me please..... I'm using this syntax /: BOX FRAME 10 TW  but it is drawing a box on all the header.
    Thanks

    hi,
    in print preveiw in the header u get  <b>date xx.xx.xxxx</b>. right.
    by asssuming the cooridnates u enter in
      xpos ,ypos.
    width means the length of date xx.xx.xxxx may b around 3 to 4 cm.
    hight arounud 1 cm
    regards,
    ananth

  • How to draw transparent boxes in different layers including Size inside box

    See this apps http://www.pixelwindowapp.com/
    How to do this thing inside photoshop using Shapes or from any other method. see added video on this page to understand.
    In photoshop i want to draw transparent boxes (round corner not necessary) in different layers including Size in pixel like this Adobe air apps http://www.pixelwindowapp.com/ do on desktop
    http://www.pixelwindowapp.com/

    Hi Anvano,
    You don't actually have to draw the live features to be able to access the attributes. You can just call getLiveFeatureAttrs(x, y, tolerance) on your MapViewer instance to get hold of the attributes, you can use this in getToolTipText() of your component to show the attributes in a pop-up. No drawLiveFeatures needed! This way you still have to add a theme twice (once for drawing, once for the attributes) but it only gets drawn once, just in the nice style.
    Ida

  • Draw a box with a stroke, then invert to a fill, causes resizing using the invisible stroke

    ID-CS3
    Draw a box with a stroke, then invert to a fill, causes resizing using the invisible stroke. Is there a way to fix and have the graphic resize using the fill size without redrawing the shape? Something like expand appearance?
    I'm not looking for a workaround or to redraw the shape. This problem description was used to present the simplest explanation to recreate the problem.

    I'm not sure I understand your question/problem, but if I make a box with an outside stroke and assign a stroke color, then... invert the stroke and fill, the stroke gets redrawn as a centered stroke --- it is no longer an outside stroke.
    This seems to me to be incorrect behavior, but it's more likely I just don't understand *why* this happens.
    Tad

  • I synced my iphone 4 with my computed and the erase pictures after sync box was checked and i did not realize it, is there a way to get the photos back into camera roll?

    i got a new computer and synced my iphone with it for the first time, i didnt realize the box for erase photos after synce was checked and my photos got erased off my iphone. i got the photos onto my iphone again by going into itunes clicked on the button to go into sync settings for the iphone on the top bar from there i clicked photos and picked the folder with the photos i just synced. i was hoping there was a way to move my photos back into caemra roll. right now i have 4 albums. camera roll, photo library, an album i titled, the album of photos synced with onto my phone that had the pictures that got deleted. the photo library and the photos synced albulm have the same thing in them

    Hello there,I hope you will be abale to recover your photos using these applications from the following site
    http://www.wondershare.com/disk-utility/recover-deleted-photos-from-iphone.html

  • Pictures in text boxes on Pages 5.0

    So the update to Pages has had quite a radical overhaul. Most of it I can get used to but there seems to be a major change to how text boxes work. Previously if I create a text box I can drag around the page and everything remains inside of it, in the same place. Now, the pictures I put into text boxes stay on the same part of the page, but the text box moves. How can I arrange it so if I insert a picture into a text box it remains in the same place always.
    Also, editing text boxes seems strange now. Trying to click the cursor into the text box so you can edit text seems bizarrly difficult and takes way too many clicks. What's going on there?
    Sorry one more thing - I use Pages every single day for something with exactly the same format each time. Therefore being able to simply highlight text from the day before and paste over it with the new text was a massive time saver. Especially as using "alt+cmd+shift+v" would keep it in the same format. Now it doesn't paste over, it pastes but keeps the old text below it, even though I'm still highlighting the old text.
    Thanks.

    I think that these issues are most likely bugs.  I have found and reported a couple bugs related to text boxes as well.  You can and should report bugs to Apple here:
    http://www.apple.com/feedback/pages.html
    Meanwhile, a workaround for your first issue that I have been using is selecting the image in the text box, and also selecting the text box itself, and choosing Arrange -> Group.  This will move everything around together, while allowing you to double-click on the text an extra time to still edit it.  It's definitely a workaround and not a bug fix, but it should allow you to work semi-normally until the bug does get fixed by Apple.
    As regards your second issue, I am not able to reproduce that problem when I test it.  For me, selecting text and pasting over it, with or without matching style, replaces only the highlighted text.  Can you perhaps provide more details and how this issue happens?

  • My apple TV WHEN CONNECTED TO THE TV DISPLAYS A PICTURE OF THE BOX WITH A CABLE (USB) ATTACHED TO ITUNES SYMBOL.tHE WHITE LIGHT ON THE FRONT OF THE BOX IS FLASHING RAPIDLY. IS THIS WHAT IS DESCRIBED AS BEING BOXED? IS THE WAY TO FIX THIS TO RELOAD

    My Apple TV white light on the front of the box flashes continously.There is no response from the remote.
    On the TV there is a picture of an appleTV box with a USB cable and an I-Tunes logo.
    I do not have a micro usb cable.Is the only route to fixing this problem to download syestem software via my PC
    and I-Tunes?

    Welcome to the Apple Community.
    If your problem persists get yourself a micro USB cable (sold separately), you can restore your Apple TV from iTunes:
    Remove ALL cables from Apple TV. (if you don't you will not see Apple TV in the iTunes Source list)
    Connect the micro USB cable to the Apple TV and to your computer.
    Reconnect the power cable (only for Apple TV 3)
    Open iTunes.
    Select your Apple TV in the Devices list, and then click Restore.
    (You may already have a micro USB cable if you have a camera or other digital device)

Maybe you are looking for

  • Cannot open any library documents with MS Office

    I recently starting using Beehive. I am a user, not an administrator. I uploaded a bunch of documents to a new workspace I just created. Now I want to open them for viewing and editing. When I try to open any MS Office document (Word, Powerpoint, Exc

  • Template and CSS issue

    I've been asked to keep a new website (template) updated. Many people before I did, were responsible for this website. There are much problems to solve. I replaced the website into Dreamweaver, but I can't change the origin CSS Stylesheet. I tried to

  • YTD , Last year YTD help needed in OBIEE 11g

    Hi all, I have a report which looks this way Banner Name *Sales YTD* *Sales Last year YTD* YTD values are based on actual date of running report. *so ex: the report is ran on 10-feb-2013, the Sales YTD will be from 01-Jan-2013 till 10-Feb-2013.* * Sa

  • Change Requisition Qty or Price in iProcurement

    create a requisition in iprocurement. approve it by approver. our system creates an approved po for this requisition. now change the requisition by changing its price in iprocurement. press next on iprocurement screen - we are on to change order sele

  • Kernel26.preset help [SOLVED]

    While following Allan's guide on enabling KMS I overwrote my default kernel26.preset. Would someone mind posting there's for me so I can change that back. Thanks Last edited by cu3edweb (2009-04-14 14:25:47)