Horde3D

Next-Generation Graphics Engine
It is currently 27.04.2024, 11:03

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: More Examples, Text
PostPosted: 16.12.2009, 20:37 
Offline

Joined: 04.12.2009, 07:56
Posts: 2
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: More Examples, Text
PostPosted: 16.12.2009, 20:44 
Offline

Joined: 22.11.2007, 17:05
Posts: 707
Location: Boston, MA
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.

_________________
Tristam MacDonald - [swiftcoding]


Top
 Profile  
Reply with quote  
 Post subject: Re: More Examples, Text
PostPosted: 16.12.2009, 23:00 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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.


Attachments:
Sample_BareBasics.zip [3.82 KiB]
Downloaded 686 times
Top
 Profile  
Reply with quote  
 Post subject: Re: More Examples, Text
PostPosted: 16.12.2009, 23:19 
Offline

Joined: 04.12.2009, 07:56
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group