pesnike Posted November 19, 2017 Share 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 Link to comment
Moderators IIYAMA Posted November 19, 2017 Moderators Share 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. Link to comment
pesnike Posted November 19, 2017 Author Share Posted November 19, 2017 I usage this system for Chat. And drawText in RenderTarget have bad quality. Thank you for answer. Link to comment
idarrr Posted November 19, 2017 Share Posted November 19, 2017 This function may help you to improve text quality. dxSetBlendMode Link to comment
Moderators IIYAMA Posted November 19, 2017 Moderators Share 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 Link to comment
pesnike Posted November 19, 2017 Author Share 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. Link to comment
Moderators IIYAMA Posted November 19, 2017 Moderators Share Posted November 19, 2017 Blow-up and down scaling is not working? Link to comment
pesnike Posted November 19, 2017 Author Share Posted November 19, 2017 2 minutes ago, IIYAMA said: Blow-up and down scaling is not working? Yes, MTA bad work with scale 1 Link to comment
Moderators IIYAMA Posted November 19, 2017 Moderators Share Posted November 19, 2017 True Link to comment
Bonsai Posted April 21, 2018 Share 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? Link to comment
Jayceon Posted April 22, 2018 Share 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. Link to comment
Bonsai Posted April 22, 2018 Share 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. Link to comment
Jayceon Posted April 22, 2018 Share 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. Link to comment
Bonsai Posted April 22, 2018 Share 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 Link to comment
Bonsai Posted April 29, 2018 Share 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? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now