Vladimir,
Thanks for the reply, I'll test that out ASAP. I'm sure I tried that but maybe I
screwed up.
No, you cannot set a texture to Text3D objects as the geometry generation routines
internally do not generate texture coordinates. Unfortunately there is not way to
access the internal geometry either...
Perhaps when SUN revise the API to allow the ability to control the tesselation of
text they can expose some of its internal geometry?
Sincerely,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vladimir Olenin
> Sent: 27 August 1999 02:14
> To: [EMAIL PROTECTED]
> Subject: Re: Text3D: FontExtrusions crash?
>
>
> Daniel, here a piece of code goes:
> ------------------
> float x = 0f;
> float y = 0f;
> float z = 0f;
>
> int fontSize = 15;
>
> double X1 = 0;
> double Y1 = 0;
> double X2 = 4;
> double Y2 = 0;
> //=============================================================//
>
> Shape extrusionShape = new Line2D.Double(X1, Y1, X2, Y2);
>
> Font3D font3D = new Font3D(
> new Font("TimesNewRoman", Font.ITALIC | Font.BOLD, fontSize),
> new FontExtrusion(extrusionShape));
> Text3D text3D = new Text3D(font3D, text, new Point3f(x, y, z));
> ----------------
> And everything works just fine. Text3D is a geometry instance, so that u
> can create Shape3D later. But the big question is whether i can set some
> texture on this 3D text (via Appearance), so that it wouldn't be shown
> just in some color? I tried but got some rendering error, as far as i
> remember.
>
> vladimir
>
> Daniel Selman wrote:
> >
> > From: Daniel Selman [[EMAIL PROTECTED]]
> > Sent: 27 August 1999 01:06
> > To: Java3D
> > Subject: Text3D: FontExtrusions crash?
> >
> > All,
> >
> > Has anyone been able to use a FontExtrusion with a Text3D
> object? I have found that my application crashes in
> OpenGL32.DLL if anything but the default FontExtrusion() constructor is
> used. The default constructor merely creates text
> that is 0.2 unit deep, has anyone succeeded in modifying this in any
> way?
> >
> > The docs are scarce and I have not found any examples of using
> a awt.Shape to specify a path for the extrusion. I tried
> CubicCurve, Line2D and Rectangle2D (all as simple Monotonic).
> >
> > Sincerely,
> >
> > Daniel Selman
> >
> > [EMAIL PROTECTED]
> > http://www.tornadolabs.com
> >
> >
> ==================================================================
> =========
> > 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".
>
> ==================================================================
> =========
> 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".
>
===========================================================================
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".