pesnike

Bad Quality RenderTarget

Recommended Posts

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

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

I usage this system for Chat. And drawText in RenderTarget have bad quality. Thank you for answer.

Share this post


Link to post

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 by IIYAMA

Share this post


Link to post

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

Blow-up and down scaling is not working?

 

Share this post


Link to post
2 minutes ago, IIYAMA said:

Blow-up and down scaling is not working?

 

Yes, MTA bad work with scale

  • Like 1

Share this post


Link to post

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

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
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:

Yj0YYoR.png

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

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
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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.