Hi Xavier,

On Wed, 2005-12-07 at 11:32 +0100, Xavier Larrode wrote:
> Hello all,
> I'm using the TextTXF to generate text information on my 3D scene.
> I was wondering if the  "textureWidth" of the OSG::TextTXFParam was 
> really used because the texture size does not change when I change the 
> textureWidth from 512 to 32 (actually I always get the same boundingBox 
> for the OSG::TextTXFFace wich uses the TextTXFParam ) .

the texture width is not related to the resolution of the text at all.
If you run testTextTXFTexture you can see the whole TXF texture that is
generated. textureWidth defines the width of this texture, with the
height being calculated automatically.

> And so, as the texture is pretty big for me i have to make a big scale 
> on it, and the mipmapping it's killing the "beauty" of the texture.

You can change the resolution of the generated font by setting the size
of the font. You can try it in testTextParams, keys - and =.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to