Why don't you use Text2D objects and translate them at
the good place directly ?
-----------------------------------------
--- Jorge Guerra <[EMAIL PROTECTED]> wrote:
<HR>
<html><div style='background-color:'><DIV>
<DIV>
<DIV>here's a picture of what I'm trying to do... I
want to have the flat little boxes by the geometry
entities display numbers. I'm trying to use Raster
obects to accomplish this however I can't seem to
understand the way in which I can draw to these
Rasters.... There's a connection with drawing Images
of things like Strings, in this case. If anyone can
help me I'd be very greatful. I'm also putting the
section of code that does the work here.</DIV>
<DIV> </DIV>
<DIV><BR> BufferedImage bi = new
BufferedImage(25, 20,
BufferedImage.TYPE_INT_RGB);<BR> Graphics2D
big =
bi.createGraphics();<BR> big.setFont(new
Font("Arial", Font.PLAIN,
8));<BR> big.setColor(Color.white);<BR> big.drawString(String.valueOf(entityNumber+1),
0, 0);<BR> big.drawImage(bi, new
java.awt.geom.AffineTransform(), new
javax.swing.JPanel());<BR> <BR> javax.media.j3d.Raster
numberImage = new javax.media.j3d.Raster(new
Point3f((float)placement.x, (float)placement.y,
(float)placement.z),
javax.media.j3d.Raster.RASTER_COLOR, 0, 0, 25, 20, new
ImageComponent2D(ImageComponent.FORMAT_RGB, bi),
null);<BR> <BR> Shape3D
textObject = new
Shape3D(numberImage);</DIV></DIV></DIV></div><br
clear=all><hr>Chat with friends online, try MSN
Messenger: <a
href='http://go.msn.com/bql/hmtag1_etl_EN.asp'>Click
Here</a><br></html>
> ATTACHMENT part 2 image/pjpeg name=problem.jpg
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".