We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
GLGraphics and texts (Read 861 times)
GLGraphics and texts
Jun 5th, 2009, 7:04am
 
Hej,

I'trying to visualize some text in a 3d space.  

My draw() function looks like this:

for (int i = 0; i < objects.size(); i++) {
        TextMaker TextObject = (TextMaker) objects.get(i);
        fill(255);
        text(TextObject.getWord(),TextObject.getX(),TextObject.getY(),        
              TextObject.getZ());

}


But drawing nearly 30000 Objects (Words) in Processing using OPENGL slows down the Animation horribly.
Anyway GLGraphics looks like exactly what I'm looking for. Is their any way to use texts and fonts?

Thanks, Fejngold
Re: GLGraphics and texts
Reply #1 - Jun 5th, 2009, 4:24pm
 
I ran into a similar problem.  I ended up limiting the amount of text being drawn.  I describe it in this thread.
http://processing.org/discourse/yabb2/num_1237216635.html

I'm going to keep an eye on this thread as I would like to improve performance even more if there is a better way.
Page Index Toggle Pages: 1