Difficulties adding 2D or 3D text to the scene.

Hello!
I have a 3D cube which I have created, and I've been able to add things to the scene such as spheres and dotted lines. I cannot, however, get any 2D or 3D text to show up. Here is some code I am using. Does this look correct?
        Text2D text2D = new Text2D("X Axis",
                                   new Color3f(0.0f, 0.0f, 0.0f),
                                   "Arial", 18, Font.ITALIC);
        sceneBranch.addChild(text2D);
        Font3D font3d = new Font3D(new Font("Arial", Font.PLAIN, 10),
                            new FontExtrusion());
        Text3D textGeom = new Text3D(font3d, new String("X Axis"),
                              new Point3f(-2.0f, 0.0f, 0.0f));
        Shape3D textShape = new Shape3D(textGeom);
        sceneBranch.addChild(textShape);Thanks for the help!
Chris
Edited by: cmwa70 on Nov 3, 2009 1:55 PM

hi,
        Color3f color = new Color3f(Color.WHITE);
        String fontName = Font.SERIF;
        int fontSize = 200;
        int fontStyle = Font.PLAIN;
        fpsText2D = new Text2D(fpsText, color, fontName, fontSize, fontStyle);
        tgFPS.addChild(fpsText2D);
        TransformGroup tgFPS = new TransformGroup();
        sceneGraph.add(tgFPS);this works fine for me

Similar Messages

  • I saved a PDF doc in adobe and then added text to the form. But every time I try an email it it only

    I saved a PDF doc in adobe and then added text to the form. But every time I try an email it it only sends the original form without text. Once I've changed a doc in Adobe, how can I save it so that I'm able to use it with added text and notes? Also, I'm using a new iPad.

    If you are using those apps or websites, they are likely viewing the PDF using iOS' built in PDF previewing, which will not show annotations and markup to the PDF. We have informed Apple of this issue, but do not have any insight into whether or when they will fix it.
    Regarding the qustion about importing pictures, Adobe Reader does not provide any capabilities to import pictures into a PDF. To do this, you'll need to use Acrobat, available on your desktop computer.

  • Adding Text to the last page in SAP Script RVORDER01

    Hi Experts,
                     I have copied RVORDER01 and changed the log for it and added my ZRVORDER01 in NACE.
    Now they want Some text to be added to the last page of the script how to do this without changing Standard Print Program ? Please guide me.
    Regards,
    Dheepak

    Hi,
    If you copied the the Standard Script to a ZScript then why is the problem adding a Text to the Last page......You should be able to do this easily .....i believe...Sorry if i misunderstood......

  • When adding Custom Text to a slideshow in Aperture, I can no longer centre the text in the text box. Is there something I am missing? I am running Aperture 3.6 on Yosemite. Any ideas gratefully received, thanks.

    When adding Custom Text to a slideshow in Aperture, I can no longer centre the text in the text box. Is there something I am missing? I am running Aperture 3.6 on Yosemite. Any ideas gratefully received, thanks.

    Which theme are you using?
    When I am adding text in a slideshow, I found, that it will depend on the theme, if the text will be centered or flushed left.  The Classic and Ken Burns theme are centering the text, the newer themes will present it flushed left.
    I found no way to select a custom justification for the text.

  • Adding description text to the screen for a custom infotype.

    I have created a custom infotype through PM01 with 3 components.  The component types have domains with lists of values (value range).  How do I display the short description from the value range on the screen in PA20 or PA30?
    For example I want to display Continuous Self:
    Text                            Value     Description
    FML Absence Code     FMCS    Continuous Self
    I tried adding an I/O field to the screen referencing DD07V-DDTEXT (where the domain values are stored) but the description will not display in PA20 or PA30.  All three fields would have this same reference and that is not allowed either.
    Can anyone tell me how to do this? 
    Thank you.

    In PM01 for the custom infotype select Screen..Edit..Flow Logic.  Three input/Output fields were added to the screen layout.  Since all three fields were in the same table with the same field name, they all have to have unique names in the layout.
    Module 9009 was modified to add code to retrieve the text.
      SELECT SINGLE * FROM dd07v
                      WHERE domname = 'ZZHR_FML_ABSENCE_CODE'
                     AND ddlanguage = 'EN'
                     AND domvalue_l = p9009-zzfmlabccd.
    select single ddtext into w_fmlstatus from DD07V
                                where DOMNAME = 'ZZHR_FML_STATUS_CODE' AND
                                      DDLANGUAGE = 'E' AND
                                      DOMVALUE_L = p9009-zzfmlstatus.
    select single ddtext into w_fmlaleave from DD07V
                                where DOMNAME = 'ZZHR_LEAVE_TYPE' AND
                                      DDLANGUAGE = 'E' AND
                                      DOMVALUE_L = p9009-zzfml_leave_type.
    I hope this helps.

  • In have added text to my photos on my mac. Is it possible to transfer that text to the same photos on my iPad which I then display on my TV using Apple TV.

    I have added text to my photos on my iMac. Is it possible to transfer this text to my iPad so that I can view the photos with text on my TV using Apple TV.

    How did you add the text to the photo in the first place?
    OT

  • Adding a line (String text) to a file ,only if it is not present in the

    Please tell me the java code to add a String line to a file.
    The condition is the string to be added should not be present in the file
    Thanks in advance

    Hi ,
    The one simple solution is you can read the file in a string.
    The check the string you want to insert in the string so formed.
    By using
    int if((str.indexOf("String to be inserted"))!=-1)
    //Insert in the file
    else
    //dont Insert in the file
    Thanks & Regards
    Pradeep

  • How to change Alt text for the Popup Key LOV Image in Apex  3.2.1.00.10

    we are using Application Express version is 3.2.1.00.10
    There is an icon to click on to popup the lov search box, the alt text for that image is currently "popup Lov"
    would it be possible to change the text to something more meaningfull e.g. "Lookup Person name" or "search Directory for Person names" .
    I have tried by updaing them
    from
    Shared Components>Templates> Popup List of Values Template > Popup Icon Attr --> width="13" height="13" alt="Popup Lov"
    (under Popup List of Values)
    to
    alt="#CURRENT_ITEM_NAME#"
    it didn't work.
    your respone will help getting accessability sign off

    Venu,
    Try adding title = "Lookup Person name" to the Image Attributes of your icon or button.
    Jeff

  • I'm using Acrobat Pro 11. When printing an email to PDF most of the time it cuts off the text on the right margin. Setting look OK and I've moved things around on the email, but that doesn't seem to make any difference. Is there an Adobe setting I'm missi

    Like I said above, print to Adobe pdf and it wants to cut off the text on the right margin. I can't see to find a setting that changes this. Any ideas??

    OK, so I have now found that this is apparently normal for iTunes, to only accept mpeg 4 movie files, all the searching I did before I must have worded it wrong because I couldn't find anything about this, incredibly. Had been looking for why iTunes won't take all the files it previously did, like if it had been changed, and it hasn't, it's allegedly always taken only mpeg 4 files. Also I had been searching for why iTunes crashes every time I try and add/import anything but mpeg 4 files, and even sometimes with mpeg 4 files. That isn't normal, it's supposed to just do nothing apparently as I've just found out. So for these reasons I didn't find the answer despite my searching all over the web.
    So I guess that answers my own question now, but I'm still perplexed as to why I absolutely, definitely, without any doubt, had several hundred movies of a few different video file types loaded, accessible and playable in my iTunes library that everything here claims iTunes never accepted. It apparently shouldn't have been possible for me to have done this, but for probably 10 years it's been this way.
    Perhaps since I don't remember adding these files to iTunes anymore recently than maybe 6 or 7 years ago, the iTunes back then did accept all kinds of file types? Or could I have somehow had some video codecs or software that expanded the capability of my movie players like Quicktime Player that unwittingly also allowed iTunes to take those files as well? All I know is somehow it worked! So now my question is how did I have it working before, so that maybe I can make it work again.

  • How can I separate the "Icons and Text" of the browser control buttons (Back, Forward, etc.) from the Icons on the Add-on toolbar?

    At home, this is not an issue. I don't know why it's different here at work--same installation, same settings (as far as I can tell).
    Windows Vista
    Firefox 7.0.1
    Status-4-Evar installed to turn add-on bar into a status bar
    I have a NoScript add-on icon in the corner, which works fine. If I add a GreaseMonkey icon from the Customize menu, the "Icon and Text" appears for that icon, like the Icon and Text from the browser controls (Home, stop, etc). Other add-on icons also show Icon and Text (S4E, for instance). NoScript is the only one I've found so far which collapses down to just an Icon.
    This leads to the status (add-on) bar having a much larger height than I like. Essentially what I want is for only the Icon to appear in the Status bar (Add-on toolbar), while keeping Icons and Text in the Browser controls. My current workaround is simply removing the other add-on icons from the status (add-on) toolbar, but that takes away the ease of toggling and setting options.
    Please tell me if I can provide you with anything else, and thanks for your help.
    Edit: I've got some screenshots to show what I mean.
    [http://i41.tinypic.com/ftek9s.jpg desired behavior]
    [http://i43.tinypic.com/1z6a4h3.jpg problem when icon is added]

    Surely there must be some UserChrome.css that will solve this problem. Something like this:
    /* Remove text titles for icons in add-on bar */
    addonbar .button-text {
    visibility: collapse !important;
    Unfortunately that does not work. I probably have the button text item name wrong (there is a pound sign before addonbar but it doesn't show in this posting).

  • Wife and I have an Iphone 4s, she receives my text, but the history on my IPhone disappears as soon as I send a text to her. I also do not receive any of her text messages. Any ideas how to fix this?

    Both my wife and I have an IPhone 4s.  All of a sudden, when I text her, she receives my text, but the history on my IPhone disappears as soon as I send the text.  Also, I don’t receive any of her text messages.  Though while testing and trying to troubleshoot, I have sent a text message from her phone to my phone and I do hear the text sound message go off on my phone but no text.  Though I on my icon, I do see I have 1 new text message and as soon as I click on it, the text message will disappear if it’s from her. Now I have noticed when I call her the history also disappears now.  I can call her and she can call me from the phone successfully.  Just can’t receive any of her text message and no history is retrieve from my phone. Can anyone please help??? Just to share, I have hard booted both phones, deleted and re-added our contact information and in the ‘Message’ settings, we both have the message ‘on’, Send as SMS ‘on’, MMS Messaging ‘on’ and under the ‘send and Receive’ field, it has my number listed with a 1 and area code…1 (210) xxx-xxxx.

    There are a lot of posts in the forums today with people having problems with iMessage.   There was also a published outage yesterday, so it's possible there are still some issues that may be impacting you both.
    I would just wait it out - I'm sure it will be sorted out soon.

  • How do I left justify the text in the tabs of a JTabbedPane.

    In 1.3.1 this used to work by supplying an HTML string with <div align="left"> but when I run with 1.4.1 this is now broken and I get center justification.
    Does anybody know a way to get the text in the tabs to be left justified.
    Thanks,
    Philip

    First, I found while using JTabbedPane that the "standard" behavior is to allow to a tab the exact space needed to display the tab text. Hence with this behavior, there is actualy no difference of "left" or "center" aligned text. So I assumed that you found a way or another to make your tabs wider than the "string width"...
    Here is a solution:
    You can override the TabbedPaneUI class and ajust the "layoutLabel()" method. Here is the code..
    //Your code using the tabbedPane
    JTabbedPane tp = new JTabbedPane();
    tp.setUI(new LeftTabbedPaneUI());
    //File containing the overrided TabbedPaneUI
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.text.View;
    class LeftTabbedPaneUI extends javax.swing.plaf.metal.MetalTabbedPaneUI {
            //I also overrided this function just to force tabs wider than
            //the displayed "String Width". I asume that you found another
            //way to do this so you can delete this function in your
            //implementation
         protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics){
              return 150;
        protected void layoutLabel(int tabPlacement,
                                   FontMetrics metrics, int tabIndex,
                                   String title, Icon icon,
                                   Rectangle tabRect, Rectangle iconRect,
                                   Rectangle textRect, boolean isSelected ) {
            textRect.x = textRect.y = iconRect.x = iconRect.y = 0;
         View v = getTextViewForTab(tabIndex);
         if (v != null) {
             tabPane.putClientProperty("html", v);
         //This Line is added to avoid writing on tab border while aligned to left.
         //You can comment this line to test and or adjust the "5" pixel space
         Rectangle rec = new Rectangle(tabRect.x+5,tabRect.y,tabRect.width,tabRect.height);
            SwingUtilities.layoutCompoundLabel((JComponent) tabPane,
                                               metrics, title, icon,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.LEFT,
                                               SwingUtilities.CENTER,
                                               SwingUtilities.TRAILING,
                                               rec,
                                               iconRect,
                                               textRect,
                                               textIconGap);
         tabPane.putClientProperty("html", null);
         int xNudge = getTabLabelShiftX(tabPlacement, tabIndex, isSelected);
         int yNudge = getTabLabelShiftY(tabPlacement, tabIndex, isSelected);
         iconRect.x += xNudge;
         iconRect.y += yNudge;
         textRect.x += xNudge;
         textRect.y += yNudge;
    }Here I overrided the "Metal" implementation of the tab but you must override the implementation of the used Look And Feel,
    ex. "com.sun.java.swing.plaf.window.WindowsTabbedPaneUI" for the windows LAF.

  • Calendar apps:  1. That my wife and I can share.  2. That shows some of the text in the full month view.  3.  That can have "public" events and "private" events.

    Hello All,
    I am looking for a calendar app that my wife and I can share on both of our iphones.  I am new to this and haven't found an app that will do what I want.
    1. I want the full month view to show some of the text of each event:  Like Pocket Informant and Monthly Calendar Mocha do (not just a dot).
    2. That both of us can post and see each other's events.
    3. That each of us can post "private" events that the other person won't see on their phone.  Things like, "Wife's surprise party."
    4. That sync's both calendars automatically.
    I know a lot of people use Fantastical, but I don't think that would give me the text in the full month view.
    Is there an app that can do all of the above?
    Thanks in advance.
    Rick

    Sharing and syncing is a feature of the calendar database; you can have multiple calendars, and each can be private, shared with specific other iCloud users, or public. If you have a Mac you can set that up in the Calendar app; for either Mac or Windows you can set it up by logging in to iCloud.com using your Apple ID.
    The other calendar apps all use the Apple calendar database; they just have different ways of presenting the content, and can also take advantage of "hidden" features of the Apple calendar database (such as adding icons to entries).

  • BADI 'ME_PROCESS_PO_CUST to populate TEXT at the time of PO creation

    Hello All,
    I am using the above BADI to attempt to populate calculated text from class characteristics into a purchase order. Does anyone know if this can be done.I have checked the  parameters that are available for this BADI (MEPOHEADER and MEPOITEM) and I do not see fields for TEXT.
    The business requirement is that certain text is calculated from the vendor characteristics and this must be populated into the PO during its creation. Since the PO has not been committed to the database the function modules for this 'SAVE_TEXT' cannot be used.
    Please advise.

    hi,
    Vivek is right u have to use  same badi , it helps u out,
    below i gives u code plz ref that, in which u have to call
    CALL METHOD im_header->if_longtexts_mm~set_text
    as given below through this code u can maintain long text for each id in header of po.
    METHOD if_ex_me_process_po_cust~process_header.
      DATA: l_repid  TYPE sy-repid,
            l_dynumb TYPE d020s-dnum,
            l_fldnam TYPE dynpread-fieldname.
      DATA: l_value2(80).
      DATA : re_data1 TYPE mepoheader.
      l_repid = 'SAPLMEGUI'.
      l_dynumb = '1105'.
      l_fldnam = 'MEPO_TOPLINE-BSART'.
      CALL FUNCTION 'GET_DYNP_VALUE'
        EXPORTING
          i_field             = l_fldnam
          i_repid             = l_repid
          i_dynnr             = l_dynumb
      I_CONV_INPUT        = ' '
      I_CONV_OUTPUT       = ' '
        CHANGING
          o_value             = l_value2.
    CODE IS ADDED BY SANTOSH KUBAL**** DT :8.01.2009
    REQ : SANTOSH JAGTAP***
    ***PURPOSE: FOR PUR.ORGANISTION 2700 & 2701 WHEN NEW PO IS CREATED
    DEFULT HEADER TEXT WILL BE CALL IN HEADER NOTE  ID- F02 ***
    ***DEFULT HEADER TEXT is mentain in SO10 TEXT ID ST .
      IF sy-tcode = 'ME21N'.
      DATA: l_purorg(8).
      DATA: im_tdid   TYPE  tdid. "Importing
      DATA: im_textlines  TYPE  mmpur_t_textlines .
      DATA: wa_textlines LIKE LINE OF   im_textlines.
      DATA: text_tab TYPE TABLE OF  tline,
                wa_text_tab TYPE tline.
    l_repid = 'SAPLMEGUI'.
    l_dynumb = '1221'.
    l_fldnam = 'MEPO1222-EKORG'.
      CALL FUNCTION 'GET_DYNP_VALUE'
        EXPORTING
          i_field             = l_fldnam
          i_repid             = l_repid
          i_dynnr             = l_dynumb
        CHANGING
          o_value             = l_purorg.
    IF l_purorg = '2700' OR l_purorg = '2701'.
          CALL FUNCTION 'READ_TEXT'
            EXPORTING
             client                        = sy-mandt
             id                            = 'ST'
             language                      = sy-langu
             name                          = 'DEFULT_HEADR_TEXT'
             object                        = 'TEXT'
            TABLES
             lines                         = text_tab
          IF sy-subrc <> 0.
           * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
              IF text_tab IS NOT INITIAL.
                LOOP AT text_tab INTO wa_text_tab .
                wa_textlines-tdline = wa_text_tab-tdline.
                APPEND wa_textlines TO im_textlines.
                ENDLOOP .
             ENDIF.
          wa_textlines-tdobject     = 'TEXT'  .
          wa_textlines-tdid =     'ST'.
          wa_textlines-tdformat = 'SP'.
          APPEND  wa_textlines  TO im_textlines.
          CALL METHOD im_header->if_longtexts_mm~set_text
            EXPORTING
              im_tdid         =  'F02'
              im_textlines    = im_textlines.
              ENDIF.
         ENDIF.
    ***end of code**
    ENDMETHOD.

  • How do I highlight text in the new Pages?  It's not clear.

    I have the new version of Pages.  And it appears that highlighting of text is an issue.  This is a basic function.
    I found there is one quick key version, but doesn't clearly explain how to change highlighting colours.  How to get into it.
    I have to explain this to my 80 year old mom, who we told to get a Mac because it was easier!
    So if anyone has it laid out step 1, 2, 3, that would be helpful, because it's not clear to me either.
    Thanks!
    Apple - please to a quick fix for this one, it should be the same as changing the size or the font or like bold or italic.  Simple, clear, fast and doable..... for anyone!

    TO Peter,
    Thanks for the list. I had found it in LibreOffice, tucked away in the Background tab of the Character pane opened by the Character... menu item in the Format menu, and named "Background Color. A few steps further down than in Pages. Apache OpenOffice has it in the same place. But both also have a hilight icon in the toolbar.
    I didn't fin highlighting or Color fill in Text Edit (v1.8). Might need a further search.
    But this well-equipped party of (one) oscurantist did find a shorter path to highlighting text in Pages '09, cleverly hidden in plain view! See the image below.
    TO hscortez,
    I'm aware that changing the text colour is not highlighting.
    But YeOldMacFan pointed out how to change text colour AND how to change background colour of text, using Character fill, found in the Advanced Options (Pages 5) or the More (Pages '09) tab of the Text Inspector.
    Character Fill fills the space around the character with the chosen colour. As shown above, it's essentially the same effect as dragging a hiliter pen along a line of printed text.
    Unfortunately, whats shown above is the Character fill well on the format bar of Pages '09—right out in the open like the highlighter pen button in LibreOffice, and presumeably in MS Word. I don't have Pages 5 (avoiding it until a few more of the missing features arrive), but I do note that Pages for iOS offers highlight as one of the options in the contextual menu that appears when a block of text is selcted.
    The process appears to be:
    tap twice to select some text.
    drag the handles at each end of the selection to adjust what's selected.
    tap Highlight in the menu that has appeared on the screen.
    One thing missing appears to be colour choice. The default is a 'hiliter yellow'. I didn't see a way to select a different colour.
    "Hopefully, this will make it on their upgrade list. "
    Hope is good, but taking action is useful.
    Pages menu > Provide Pages Feedback > Make your request that this be added to Pages 5. Requests made through Provide ...Feedback go directly to Apple. Comments and questions here are read by users like yourself, and we don't have the ability to change the way the apps work. Not directly,anyway.
    Regards,
    Barry

Maybe you are looking for

  • How to read the return values of the API call

    Hi Friends, I am trying to access an image on DocumentMall and I am passing the following URL to login to DocumentMall in my ABAP program. https://beta-dmapi.documentmall.com/dmapi/login.do?account=NOBLEBETA&appid=39xxxxxxn&username=admin&password=pa

  • Does Captivate 6 work with IE 11 and Windows 8.1?

    I have a situation where I created a Captivate presentation in Captive 6. The users are using IE 11 and Windows 7 and 8.1. The presentation will not load. Is there a problem with Captivate woring with those OSs and browser? Thanks!

  • How can I change "manually manage music and videos" option whitout loose my files?

    When I change "manually manage music and videos" option iTunes delete all my files first. This a stupid thing from Apple. Anybody knows if exists a way to change this option without loose the contents in iPhone?

  • How do I assign one of the license tokens to a newly added internal user?

    I have 6 out of 10 licenses assign and I added another user, assign him "roles" and now I need to assign a internal netpoint license token to the user. How is this done? It's been a while. Thanks

  • Adobe AIR + iFrame + Java

    Hello! I am creating a simple application, that will allow my friends to access a Java-based website through a desktop application. And, I chose to use Adobe AIR, because it's very easy to use and also because I already know HTML, CSS and some Javasc