Google Groups Home
Help | Sign in
Text on the screen , java3d
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Joyal  
View profile
 More options Mar 1, 3:29 am
Newsgroups: comp.lang.java.3d
From: Joyal <dhgouv...@gmail.com>
Date: Sat, 1 Mar 2008 00:29:10 -0800 (PST)
Local: Sat, Mar 1 2008 3:29 am
Subject: Text on the screen , java3d
hey mates, im really newbie with java3d, im learning this api, and
doing somes test, but i have my first question, i want to put some
text on the screen, i know its exist a Text2D class, but its interact
with the virtualuniverse , i want only put flat text on the screen,
with some  data, maybe the fps , coordenates , etc

i was trying to use the getGraphics of Canvas3D and use drawString but
didnt work, i did the same thing with Frame also with Applet, i got
the graphics and used drawString, but nothing

how can i do to be able to do this? could you give me somes examples?

i hope you can help me:D

PD: sorry my bad english , i from venezuela :$


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tugalsan  
View profile
 More options Mar 26, 4:38 am
Newsgroups: comp.lang.java.3d
From: tugalsan <tugal...@gmail.com>
Date: Wed, 26 Mar 2008 01:38:00 -0700 (PDT)
Subject: Re: Text on the screen , java3d
just ovverride postRender method in Canvas3D
use getGraphics() method and use it
I know it flickering but itworks :)
if you find a better way please sent to my email (t u g a  l s a n @ g
m a i l . c o m)
as I am not using this site much.
byz

tugalsan karabacak TURKEY


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tugalsan  
View profile
 More options Mar 26, 5:34 am
Newsgroups: comp.lang.java.3d
From: tugalsan <tugal...@gmail.com>
Date: Wed, 26 Mar 2008 02:34:44 -0700 (PDT)
Local: Wed, Mar 26 2008 5:34 am
Subject: Re: Text on the screen , java3d
1. hey man, the code I wrote above, use it on postSwap method, iyt
filckers less.

2.I found a code on another thread in this site and made a class for
you:

    class Canvas3DWithDebug extends Canvas3D {
        Canvas3DWithDebug(GraphicsConfiguration graphicsConfiguration)
{
            super(graphicsConfiguration);
        }
        public void postRender() {
            getGraphics2D().drawString("asli", 30, 30);
            getGraphics2D().flush(true);
        }
    }

it work fine but no font or color chnage can be made. its always
white.

if you find a good code, dont forget  to send me email man,
byz


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google