Displaying a 2d overlay on a 3d canvas

how can i display a image like a interface
on a 3d canvas
ive tryed imageoverlay but it doesnt work for me

create your own class extending Canvas3D.
This is one I wrote for 2D text be displayed over 3d canvas. should work with images.
import javax.swing.*;
import java.awt.*;
import com.sun.j3d.utils.universe.*;
import com.sun.j3d.utils.geometry.*;
import javax.media.j3d.*;
import javax.vecmath.*;
import com.sun.j3d.utils.image.*;
import javax.media.j3d.LineAttributes;
public class JoCanvas extends Canvas3D
     private String t;
     private Font f;
     public JoCanvas(GraphicsConfiguration gcIn)
          super(gcIn);
          f = new Font("Arial",0,30);
          t=" ";
     public void postRender()
          J3DGraphics2D g = getGraphics2D();
          g.setFont(f);
          g.setColor(Color.orange);
          g.drawString(t, 100, 100);
          g.flush(true);
     public void setText(String s)
          t=s;
          repaint();
}

Similar Messages

  • Loading an external SWF in and displaying it behind overlay/watermark

    I am building a SWF and the goal is to load in an external SWF file and then display that within my container. They are totally unrelated items and I do not want to modify the functionality of the item I am loading in. My SWF will briefly display a watermark overlay, but then disappear. Can anyone guide me into this best way of doing this?
    Also, is there anyway to get the properties from the SWF I loaded in (namely height and width) so I might be able to easily adjust the size of my SWF to match?
    Thanks!

    just load your external swf using the loader class.  what you described doing is standard stuff and nothing special needs to be done.
    however, you must wait until loading is complete before you can access the loaded object's width and height.

  • My computer displays a blue overlay over my log in screen when I wake from sleep. How do I avoid this?

    My Macbook Pro (late 2012) recently started making a weird startup noise coming from the optical drive and displaying a blue overlay screen with a bar at the bottom when waking from sleep, after about 2-3 hours of non-usage. It then takes about 30-45 seconds until I can type in my password. When I first got my computer, this wouldn't happen.
    Any idea why it does this and how I can stop it?
    This is a picture of the screen:
    Message was edited by: ekom
    (I did click the camera icon to add the picture the first time. I tried it again.)

    If you want to post an image please use the Camera icon in the message composition window's toolbar. You cannot just drag one in from your computer, hence why your image does not appear.
    I would suggest you try this:
    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Black background in native Display List elements overlayed with Starling

    Hello, I'm having an issue in the iPad, where all native DisplayObjects are shown with an opaque black background instead of being transparent while being displayed over Starling graphics using "nativeOverlay". This doesn't happen in the PC, in ADL, only in the iPad. Does anyone know what's causing this?
    I also tested in Android, and this doesn't happen. So this is a problem only in iOS. Is this a known problem? Surely someone has tried before to overlay Flash display objects over Starling display objects and had this issue?
    Any possible fixes or workarounds for this?
    Thanks!

    Hello, I just found the culprit of this annoying bug.
    It's StageVideo! If you play any video with StageVideo BEFORE showing any Stage3D/Starling stuff, then you'll get this behaviour (native DisplayObjects with opaque background over Starling).
    This is a bug which happens to be almost 1 year old!
    Please, check this out and vote to try to get this finally fixed for good!!
    https://bugbase.adobe.com/index.cfm?event=bug&id=3186454

  • Display iFrame in Overlay

    Hi all,
    Im developping a webpage in which I need to display some iFrame content in the Overlay written with Javascript.
    The code works perectly in IE6/7 and Firefox, but in Safari, it works only the first time the overlay comes up. if I click on "back" and repeat that action, it the overlay displays nothing. Can someone help me on this? Thank you.
    Issue Environment:
    PC: Thinkpad T61
    Safari: 3.1.2 for Windows
    OS: Windows XP Professional, SP3
    Here is the code, FYR:
    var loginDivWidth = 960;
    var signinflow = '<table align="left" bordercolor="#000000" border="2" valign="top" width="960" height="760">'
    +'<tr><td align="right"><table><tr><td align="left" style="border:1px solid #b1b1b1;">'
    +'CLOSE X</td><td width="20"></td></tr></table>'
    +'
    <iframe name="ifrTur" id="leftTur" onload="showIfrStyle();" align="left" border="0" frameborder="0" scrolling="auto" width="950" height="760" src="http://64.211.90.9/iframe/tutorial.seam?custId=${param.selectedDeviceId}"> </iframe></td><tr></table>';
    if (G("sign_div")) {
    G("sign_div").style.width = 960 + 'px';
    G("sign_div").style.right = 20 +'px';
    G("sign_div").style.top = 22 +'px';
    G("sign_div").style.display = '';
    } else {
    var signDiv = GC('div');
    document.body.appendChild(signDiv);
    signDiv.id = 'sign_div';
    signDiv.align = "center";
    with (signDiv.style) {
    position = 'absolute';
    right = 20 + 'px';
    top = 22 + 'px';
    width = loginDivWidth + 'px';
    zIndex = 999;
    background = '#FFFFFF';
    border = '#999999 solid 2px';
    G("sign_div").innerHTML = signinflow;
    Thanks a lot in advance!

    I don't know why it's not displaying properly, so I'll suggest some alternatives.
    Could you use an <object> and leave the iframe for IE? Or do the whole thing with something like php?

  • Firefox 19 beta for MacOS new native pdf function seems to display 2 versions overlayed...i.e., each letter is doubled. Anyone else notice this?

    i've tried different pdfs. They all seem to behave same. It's as if there are 2 copies, one overlayed over the other. I tried to copy and paste, but didn't work. could take a snapshot if necessary. thanks

    Try to disable hardware acceleration in Firefox.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *https://hacks.mozilla.org/2010/09/hardware-acceleration/
    Instead of Tools > Options use:
    *Mac: Firefox > Preferences
    *Linux: Edit > Preferences
    *Windows: Firefox > Options

  • Canvas of canvas type "tab" doesn't get displayed

    I have one canvas which displays fields from two database blocks.
    Next I have a second canvas of canvas type "tab".
    I have already added the fields in the tab pages but the problem is that when I compile and run the form, only the first canvas is displayed.
    I don't see the canvas with the two tab pages.
    What code to I need to display the second canvas please?
    Thanks.

    The tab canvas should appear without using any code.
    make sure both of your canvases are assigned to the same window; they have the same value for the "Window" property. Also make sure you don't have any items on your content canvas (main canvas or first canvas) overlaying the tabbed canvas.
    If there are any overlaying items this will cause the tab canvas to hide to show the item, a tab canvas acts the same as a stacked canvas, the only difference is that it has tab pages.
    Tony

  • Image display on java 3D canvas

    Hi
    I have an application in Java 3D which has Canvas.
    Canvas is holding different objects.
    What i need is to display a bitmap image on canvas.
    Can anybody tell me the way to put an image on canvas.
    Thanks in advance......

    See this post for keywords to all the ways I found to implement this.
    http://forums.java.net/jive/thread.jspa?threadID=37487&tstart=0
    The main problem is that these techniques all have drawbacks.
    If your display is small, and overlays are small. Use J3DGraphics2D.
    If your display is large / overlays large, and your display does not move. Use PlatformGeometry with Rasters.
    Example Code can be found in the linked post.

  • 13.1.1 retina display canvas issue

    Is anybody else having this problem with retina display macbooks? It seems that the canvas at 100% is displaying more as if it were at 66.7%
    It is very small, the type in the screenshot is at 12pt, at 200% everything is blurry. the Canvas in the screenshot  is 1440 x 900 px 72 DPI
    I am on a retina display 15" macbook

    ataxia2 wrote:
    Is anybody else having this problem with retina display macbooks? It seems that the canvas at 100% is displaying more as if it were at 66.7%
    It is very small, the type in the screenshot is at 12pt, at 200% everything is blurry. the Canvas in the screenshot  is 1440 x 900 px 72 DPI
    I am on a retina display 15" macbook
    Your screenshot does not show anything too small, in my opinion.
    The white background in your screenshot measures 1402 x 902 pixels. If the canvas definitely is 1400 x 900 then there seems to be a display error of 2 pixels vertically and horizontally.
    At 72 ppi, 1 point = 1 pixel. The caps and numerals in the type are 12 pixels tall, therefore 12 points tall, which is unusually large for 12 point type because it leaves no space for descenders.

  • How to display everything inside a canvas on a new HTML page

    Hi, im trying to display images, words and everything inside a canvas on a new HTML page. By a click of a button, a new window with HTML page will pop up display the canvas. Can anyone help me?

    Apps and other media from iTunes can only be used with the account they were bought with.

  • Java Canvas displaying boxes for Tamil Characters

    Hi
    I am getting boxes when I display a tamil character on a Java Canvas from an Applet.Please let me know if any solutions.
    With Best Regards
    Shrinivas

    Thank you
    We must do a g.setFont(Latha.ttf) and also made an entry in font.properties for latha.ttf.
    It works fine now.
    With Best Regards
    Shrinivas

  • Canvas displaying

    Hello, probably a pretty easy question to most; I have a midlet which changes screens for me (by the menu commands). But my midlet hasn't got a display object. How do I display something like an alert from my canvas code?
    Is it a case where my canvas has another display object... but if this is the case will it over write the display in the midlet?

    grand, I'll explain again :)
    I have a midlet; it looks after the "addCommand" and it creates the canvas.
    The canvas does most of the work. But at 1 point I want it to stop displaying the current canvas and have an alert pop up.
    I can't get it working. Please any help would be appreciated...

  • Changing current display to a canvas subclass... still see the last form

    Hello,
    I'm sure most people can answer this in 10 seconds. I am changing the current display from a form to a canvas subclass in a midlet app. I keep seeing the last form displayed even though i assigned the initialized canvas subclass as the current display. Do I need to do something else to make the canvas visible? I pulled this source code right out of a game programming book.
    TestCanvas canvas = new TestCanvas();
    //game is a reference to the midlet
    game.getDisplay().setCurrent(canvas);
    I had the paint method in the canvas paint the back ground black, but I still see the form's image no matter what I do. Anyone know what I am doing wrong here? ... Thanks, Paul

    I figured it out, soory it was really stupid

  • What is canvas view type

    what is canvas view type property in form?

    A canvas is a surface--inside a window container--on which you place the interface items and boilerplate objects that end users interact with when they run the form. By default, any canvas you create at runtime is assigned to the window named WINDOW1. To explicitly associate a canvas to a specfic window, set the canvas' Window property accordingly. While you can create and delete canvases in the Object Navigator, you will use the Layout Editor to accomplish most of your canvas-related tasks.
    There are five types of convases:
    1-Content
    This is default canvas when we create form. It Specifies that the canvas should occupy the entire content area of the window to which it is assigned. Most canvases are content canvases.
    2-Stacked
    Specifies that the canvas should be displayed in its window at the same time as the window's content canvas. Stacked views are usually displayed programmatically and overlay some portion of the content view displayed in the same window
    3-Tab
    Specifies that this canvas will be a container for one or more tab pages.
    4-Vertical Toolbar
    Specifies that the canvas should be displayed as a vertical toolbar under the menu bar of the window. You can define iconic buttons, pop-lists, and other items on the toolbar as desired.
    5-Horizontal Toolbar
    Specifies that the canvas should be displayed as a horizontal toolbar at the left side of the window to which it is assigned.

  • How to drive a 30" Cinema Display from a new 27" iMac?

    How do I drive a 30" Cinema Display from a new 27" iMac that has no obvious video out port? There are lots of ports, but nothing resembling or identified as a video out port. Is the very small hole in the cabinet by the power in port the thing I'm looking for? If so, the power/video adapter for the Cinema will not work as is. Do I need a Mini DisplayPort to VGA Adapter? I am completely uncertain about this, and could use solid advice. The AppleCare tech I spoke with today seemed not to have a clue. He said he would get back with me on this. He didn't.

    Overview
    Every Mac with a Mini DisplayPort allows you to connect an external display or projector using an adapter. You can use an external display as your main workspace or to extend your desktop, or you can work in mirrored mode with a projector so you can view what your audience sees.
    Use the Mini DisplayPort to Dual-Link DVI Adapter to connect your Mac to a 30-inch display that includes a DVI connector, such as the 30-inch Apple Cinema Display HD, and enjoy the ultimate widescreen canvas with a resolution of 2560 by 1600 pixels.
    Compatible only with Mac computers with Mini DisplayPort and Mac OS X v10.5.6 or later.

Maybe you are looking for

  • Welcome to the Linksys Small Business Community!

    Welcome to the Linksys Small Business Community! Please feel free to share your experiences with our SMB products here. Thanks!

  • If I buy my Iphone 5 now, will I be able to upgrade it if a new one comes out for free?

    I am looking to buy an Iphone 5, but I have seen that a new model is due soon. Should I wait or will Apple upgrade it if I buy it now?

  • Problème inactivité VISA GPIB

    Bonjour, Je travail sous LB8.5 J'utilise une centrale d'acquisition AGILENT 34980A pour switcher sur 32 pièces dans un banc de mesure. Mon programme est du type séquentiel dans une boucle infinie ( je fait un tas de mesure, j'enregistre, je switch su

  • Evaluated Expression

    Having successfully used .txt files to store queries an then run using Evaluated Expression it seems to fall over when it comes to merging. I am faced with the following error Formula.Firewall: Query 'Merge2' (step 'EvaluatedExpression') is referenci

  • How to change Artist/Creator EXIF field in JPEG file?

    I need to change EXIF Artist field in original files from JPEG camera. With LR I can change Creator metadata field. Then I can "Save Metadata to File" or "Export" the files. "Save Metadata to File" changes IPTC and XMP fields, but EXIF field still em