Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java 3D > My text jitters...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 763 of 818
Post > Topic >>

My text jitters in J3d

by Miss Elaine Eos <Misc@[EMAIL PROTECTED] > Jun 28, 2007 at 05:10 AM

This has been bugging me for weeks, and I'm not sure where to go with it:

I'm using a 2D text object to draw onto the view, and everything looks 
pretty good -- so long as I just display the text and leave it alone.  I 
can move around, change my view, etc., and everything looks great.

The problem is: if I replace the text -- for example, if the text 
contains "time remaining: 15.07 sec" and I update every frame -- the 
text "jitters" in the direction of the view's movement.

My basic logic for updating the text is:

     scene.addChild (newTextBG);
     if (oldTextBG != null)
     {
        oldTextBG.detach();
     }
     oldTextBG = newTextBG;

When I do this, every time the text updates, if I'm turning to the 
right, the text is off-to-the-left for 1 frame; if I turn to the left, 
it's off-to-the-right.  Etc., if I'm moving fwd or backwards.

Again, I can move all around and everything's fine  if I just leave the 
same text up there, not replacing it.

Any ideas what I'm doing wrong?  Any hints?

Thanks!

-- 
Please take off your pants or I won't read your e-mail.
I will not, no matter how "good" the deal, patronise any business which
sends
unsolicited commercial e-mail or that advertises in discussion newsgroups.




 1 Posts in Topic:
My text jitters in J3d
Miss Elaine Eos <Misc@  2007-06-28 05:10:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu May 15 0:45:43 CDT 2008.