Horde3D http://horde3d.org/forums/ |
|
More Examples, Text http://horde3d.org/forums/viewtopic.php?f=2&t=1035 |
Page 1 of 1 |
Author: | gamecreator [ 16.12.2009, 20:37 ] |
Post subject: | More Examples, Text |
Hello. I'm new to Horde3D but am excited about getting started with it. For now, I have two questions to start: 1. Is there a sample program that implements the "Getting started - a small tutorial" code? Or something similar? I found Getting Started code easy enough to understand but the Knight and Crowd examples get a bit more complex, especially all the app/crowd code (which is fine for advanced use but for now, I just want to start). Specifically, I'm looking for something with as few variables/functions/classes as possible, but still a complete, working program that does what the Getting Started tutorial means to do. 2. I noticed in the manual that h3dutShowText requires a "font texture of the specified font material has to be a regular 16x16 grid." However, the example seems to use 32x32. Is the manual dated in this respect? If so, what sizes does the function accept? Thank you. |
Author: | swiftcoder [ 16.12.2009, 20:44 ] |
Post subject: | Re: More Examples, Text |
gamecreator wrote: 2. I noticed in the manual that h3dutShowText requires a "font texture of the specified font material has to be a regular 16x16 grid." However, the example seems to use 32x32. Is the manual dated in this respect? If so, what sizes does the function accept? The texture needs to contain a 16x16 grid of characters (i.e. maximum of 256 characters). The size of grid cells can be whatever you want - OpenGL works in arbitrary units (here 1/16 of texture dimensions), rather than pixels.
|
Author: | marciano [ 16.12.2009, 23:00 ] | ||
Post subject: | Re: More Examples, Text | ||
Here is an almost minimal sample that is very similar to the tutorial code. Just copy the BareBasics folder to the Horde3D Samples directory and add the project to the Horde3D solution.
|
Author: | gamecreator [ 16.12.2009, 23:19 ] |
Post subject: | Re: More Examples, Text |
Wow! Perfect! Marciano, thank you very much!! That's exactly what I was hoping for. I'll play with it when I get home. Swiftcoder, thanks to you as well. I misread the wording but I understand now. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |