Well, i can say that i've started using text2d since java1.3beta

changing the text size has never worked since i've used it, in fact, i
posted a message to this news group a while ago about this very problem.
it's probably not that big of a fix, but i'm not quite sure why the
*initial* string-font rasterizing would never fail, and the subsequent
changes could affect the texture size to non-power of 2 and thus be bad
textures... wouldn't these call the same function, logically? regardless...

the solution? don't use text2d to change text. it's broken at the moment. i
have no idea if there's a bug in the bugparade yet. clear and recreate
text2d objects over and over... it works until there's memory leaks and all
crashes.

It does indeed to seem like a power of two issue, since lots of tests i've
come up to a working point size/font/string length that works for an fps
counter, but other than cudging that data together yourself (i would suppose
there's a formula if you know the size/font/way font is rasterized to a
texture to tell what the legal string length would be, and pad from there)
is the only way i can see to get this workaround happening.


help, java3d team! ;)


>From: Marc Palmer <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JAVA3D] My code broken with Java3d 1.3?
>Date: Sun, 11 Aug 2002 23:07:48 GMT
>
> > > My code seems to be behaving differently / not working under Java3D
>1.3
> > > whereas it was previously OK with Java3d 1.2
>
> >    From the stack trace i would *guess* that your texture size is not a
>power of
> > 2, which textures should be, maybe in 1.3 they fixed something that was
>not
> > checking this before?, anyway, like i said, thats just my guess from the
>stack
> > message, what size is the texture in reality?
>
>Yes, I guessed that much thanks ;-)
>
>My point is, I'm using Text2D and it has no texture size parameters that
>I know of – it works it out for you based on the size of and length of
>the text.
>
>At least it used to in Java3D 1.2 – it seems broken in 1.3
>
>Anyone successfully using Text2D with Java3d 1.3?
>
>Thanks
>Marc
>
>==========================================================================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".




------------------------

Chris Forrester

http://www.geocities.com/Psionic81


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===========================================================================
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".

Reply via email to