pesnike 1 Posted November 19, 2017 Hello. I have big trouble and i can't fix they. Sometimes RenderTarget (using dxDrawImage, of course) becomes soapy. How up quality RenderTarget ??? Sorry, i'am bad know English lang Share this post Link to post
IIYAMA 885 Posted November 19, 2017 You could try to scale up and scale down. Also texture images have better quality than images rendered directly from file. Share this post Link to post
pesnike 1 Posted November 19, 2017 I usage this system for Chat. And drawText in RenderTarget have bad quality. Thank you for answer. Share this post Link to post
idarrr 24 Posted November 19, 2017 This function may help you to improve text quality. dxSetBlendMode Share this post Link to post
IIYAMA 885 Posted November 19, 2017 (edited) I do not recommend to use renderTargets for text. Because rendertargets do not include anti-aliasing. There reason behind that is for me unknown. Maybe it can work with blendmode as idarrr said. Edited November 19, 2017 by IIYAMA Share this post Link to post
pesnike 1 Posted November 19, 2017 dxSetBlendMode using, using in any variants. This not full decision. 3 minutes ago, IIYAMA said: I do not recommend to use renderTargets for text. Because rendertargets do not include anti-aliasing. There reason behind that is for me unknown. But i don't have any choice. If i not using RenderTarget - then client down FPS, because for draw good shadow need a lot black dxDrawText. Share this post Link to post
IIYAMA 885 Posted November 19, 2017 Blow-up and down scaling is not working? Share this post Link to post
pesnike 1 Posted November 19, 2017 2 minutes ago, IIYAMA said: Blow-up and down scaling is not working? Yes, MTA bad work with scale 1 Share this post Link to post
Bonsai 63 Posted April 21, 2018 I ran into the same problem now. Even though the render target is not being scaled (its size is exactly the size that is used to draw it) because I only need to be able to scroll with it, it still looks like the images and text are blurry. Changing the blend mode doesn't make it much better either. I have used something like render targets in another environment outside of MTA, and there everything looks fine. So there seems to be something that is done different in MTA, or something that could be tweaked to improve the quality. Anyone has an idea what to do about this? Share this post Link to post
Jayceon 21 Posted April 22, 2018 For me works very well. I'm using custom dx font with antialiased flag and in the dxDrawText the scale is every time is 1 + added modulate_add blend to renderTarget. The final view: https://i.imgur.com/AYxroK1.png The font size/quality and the scale in render can increase/decrease the quality. Share this post Link to post
Bonsai 63 Posted April 22, 2018 5 hours ago, Jayceon said: For me works very well. I'm using custom dx font with antialiased flag and in the dxDrawText the scale is every time is 1 + added modulate_add blend to renderTarget. The final view: https://i.imgur.com/AYxroK1.png The font size/quality and the scale in render can increase/decrease the quality. This is how my example looks: If you check how e.g. the "Hunter" or "Freeroam" text looks compared to the Training or Logout text (which are out of render target), its not as clear. Also, its hard to see, but under the pictures, there is also something that shouldn't be there. (the dark lines under the colored area) Its not scaled and the font size is the same. The render target just makes it look a little blurry for some reason. Share this post Link to post
Jayceon 21 Posted April 22, 2018 This is font is default-bold? Try to use custom dx font with my opinion. When i use default MTA Fonts my quality looks like yours. Share this post Link to post
Bonsai 63 Posted April 22, 2018 5 minutes ago, Jayceon said: This is font is default-bold? Try to use custom dx font with my opinion. When i use default MTA Fonts my quality looks like yours. Yes it is. Okay, I will try that later, but the problem still exists for pictures too Share this post Link to post
Bonsai 63 Posted April 29, 2018 Anyone maybe still has an idea whats wrong here? I mean, it doesn't look thaaaat bad, but its still a difference compared to normal rendering. Maybe the problem is not even the drawing inside a rendertarget, but the drawing of the image of the rendertarget itself? Share this post Link to post