2 registered members (VoroneTZ, TipmyPip),
1,333
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: What are you working on?
[Re: PadMalcom]
#444796
08/18/14 21:28
08/18/14 21:28
|
Joined: Jul 2001
Posts: 6,904
HeelX
Senior Expert
|
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
|
|
|
Re: What are you working on?
[Re: HeelX]
#444868
08/20/14 12:49
08/20/14 12:49
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
bmap-fonts with custom per-character width ...unfortunately, every character's width needs to be hardcoded, but after that it works perfectly. edit: Seems like generating the text is reeaally slow. This only needs to be done when the text changes but in the example this just barely works within a single frame (at 60 fps). So if there's a lot of changing text, it could cause fps drops => damn bmap_blitpart, looks like I'll have to write a shader for that.
Last edited by Kartoffel; 08/20/14 14:04.
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: MasterQ32]
#444875
08/20/14 14:09
08/20/14 14:09
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
wow, never heared of bmap_rendertarget, thanks, I'll try that. but first I've got to understand that funcion edit: err, yeah. I have not the slightest clue about how to use these.
Last edited by Kartoffel; 08/20/14 14:18.
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#444876
08/20/14 14:28
08/20/14 14:28
|
Joined: Nov 2007
Posts: 2,568 Germany, BW, Stuttgart
MasterQ32
Expert
|
Expert
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
|
just a small example: bmap_rendertarget(yourTarget, 0, 0); draw_quad(...) // replaced bmap_blit bmap_rendertarget(NULL, 0, 0);
|
|
|
Re: What are you working on?
[Re: MasterQ32]
#444880
08/20/14 14:52
08/20/14 14:52
|
Joined: Jun 2009
Posts: 2,210 Bavaria, Germany
Kartoffel
Expert
|
Expert
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
|
Well, I don't know what this function exactly does, so I don't know under what circumstances I have to use it and everything... sorry (It's probably not even going to work for my case, although it would be pretty cool because I could color the text much easier and also because of the performance, of course)
Last edited by Kartoffel; 08/20/14 15:04.
POTATO-MAN saves the day! - Random
|
|
|
Re: What are you working on?
[Re: Kartoffel]
#444888
08/20/14 21:37
08/20/14 21:37
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
Renderziel 0 kann nur dann gesetzt werden, wenn der View kein eigenes Renderziel hat (view.bmap) und läßt sich durch bmap_rendertarget(NULL,0,0) zur Wiederaufnahme des normalen Bildschirmrenderings abschalten.
What are you doing with your view? Any pp shader stuff running on it?
|
|
|
|