Hello there, my goal is output text above my character. First step is output his name, then, character speech. For now, i know 2 ways to do this:
1)Billboard
2)Overlay
Both from example page(Moving text etc...)
The problem is that some examples for Mogre, other, i think, is too complex. So my question is: is there another methods to draw text to texture or some methods to output character name and speech? It would be great if there was method like MS WinApi DrawText to HDC.
Thanks.
Draw text to texture(billboard or overlay)
-
TGrey
- Gnoblar
- Posts: 15
- Joined: Sat Feb 08, 2014 8:49 pm
-
TGrey
- Gnoblar
- Posts: 15
- Joined: Sat Feb 08, 2014 8:49 pm
Re: Draw text to texture(billboard or overlay)
I have added Gorilla to the project, it can output string, but it works not like a billboard. When i change my position i cant read the line( Does Gorilla suitable for this?
- areay
- Bugbear
- Posts: 819
- Joined: Wed May 05, 2010 4:59 am
- Location: Auckland, NZ
- x 69
Re: Draw text to texture(billboard or overlay)
What do you mean by that?TGrey wrote: but it works not like a billboard
-
TGrey
- Gnoblar
- Posts: 15
- Joined: Sat Feb 08, 2014 8:49 pm
Re: Draw text to texture(billboard or overlay)
You can see this effect here [youtube]https://www.youtube.com/watch?v=t03LY7g3hH4[/youtube]
Attached node doesn't rotate to camera view(like a billboard does), so if somebody will stay from me on 90 degree, i cant read his name or speech.
Attached node doesn't rotate to camera view(like a billboard does), so if somebody will stay from me on 90 degree, i cant read his name or speech.
- areay
- Bugbear
- Posts: 819
- Joined: Wed May 05, 2010 4:59 am
- Location: Auckland, NZ
- x 69
Re: Draw text to texture(billboard or overlay)
I've only used Gorilla briefly a long time ago so I'm not sure how it all works. Why don't you ask in the Gorilla thread? http://www.ogre3d.org/forums/viewtopic.php?f=11&t=59984
-
TGrey
- Gnoblar
- Posts: 15
- Joined: Sat Feb 08, 2014 8:49 pm
Re: Draw text to texture(billboard or overlay)
Gorilla is one of available options. It seems i found decision for this, if my solution will work i post it here.
-
TGrey
- Gnoblar
- Posts: 15
- Joined: Sat Feb 08, 2014 8:49 pm
Re: Draw text to texture(billboard or overlay)
So sad news is Gorilla doesn't work at all) I can't fix it to my requirements.
So i take MovableText example, fix couple things like
1)Text raise up on char height when new line added(\n)
2)Now it work properly with strings that starts with space symbol.
Seems good.
So i take MovableText example, fix couple things like
1)Text raise up on char height when new line added(\n)
2)Now it work properly with strings that starts with space symbol.
Seems good.