Panda 3d 에서 한글 출력
GamePrograming :
2007. 5. 3. 08:57
반응형
1. import direct.directbase.DirectStart
2. from pandac.PandaModules import Filename,Texture
3. from direct.gui.OnscreenText import OnscreenText
4.
5. Fontk = loader.loadFont('sandolpuzzleWt.ttf')
6. name=u'\uc804\ud638\ucca0'
7. number='2002160227'
8. textA = OnscreenText(fg=(1,0,1,1),text=number+'\n'+name,pos=(-0.3,0),scale=0.3,font=Fontk)
9.
10. environ = loader.loadModel("environment")
11. environ.reparentTo(render)
12. run()
2. from pandac.PandaModules import Filename,Texture
3. from direct.gui.OnscreenText import OnscreenText
4.
5. Fontk = loader.loadFont('sandolpuzzleWt.ttf')
6. name=u'\uc804\ud638\ucca0'
7. number='2002160227'
8. textA = OnscreenText(fg=(1,0,1,1),text=number+'\n'+name,pos=(-0.3,0),scale=0.3,font=Fontk)
9.
10. environ = loader.loadModel("environment")
11. environ.reparentTo(render)
12. run()
핵심은 유니코드!
반응형
'GamePrograming' 카테고리의 다른 글
SDL 첫 연습 (0) | 2008.08.14 |
---|---|
maya7 파일을 panda3d 용 egg 파일로 변환 하였다. (0) | 2007.05.03 |
마야에서 맥스로 (1) | 2007.04.30 |