Page 1 of 1

Wierd Text3D

Posted: Thu Dec 07, 2017 12:14 pm
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?

Re: Wierd Text3D

Posted: Thu Dec 07, 2017 9:21 pm
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))

Re: Wierd Text3D

Posted: Wed Dec 13, 2017 11:20 am
by troy
Comtois, thanks for clarification!