Wierd Text3D

Everything related to 3D programming
troy
User
User
Posts: 51
Joined: Sat May 31, 2003 2:59 pm

Wierd Text3D

Post by troy »

Playing with a Text3D.pb piece of code from documentation I found its strange behavior. First of all, If I remove all font definitions from proper-definitions.fontdef and leave StarWars font only, PB's debugger throws "The specified #Text3D is not initialised." error. It seems StarWars font doesn't work by some reason. Ok, I removed StarWars font and put the only following definition on the file:

Code: Select all

BlueHighway-8
{
	type 		truetype
	source 		bluehigh.ttf
	size 		24
	resolution 	96
}
Now It works! But, if I change BlueHighway-8 to something like BlueHighway-9 or just BlueHighway and run the code, I get "The specified #Text3D is not initialised." error! :shock:
Can someone confirm that? Is it something on my side or it's OGRE/PB issue?
--
troy
User avatar
Comtois
Addict
Addict
Posts: 1429
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: Wierd Text3D

Post by Comtois »

CreateText3D() use BlueHighway-8 by default, if you change the name (or want to use other font) you have to write it this way :

Code: Select all

    CreateText3D(0, "Hello world","BlueHighway-9",1,RGBA(255, 0, 0, 255))
Please correct my english
http://purebasic.developpez.com/
troy
User
User
Posts: 51
Joined: Sat May 31, 2003 2:59 pm

Re: Wierd Text3D

Post by troy »

Comtois, thanks for clarification!
--
troy
Post Reply