but nothing causes the default renderpath viewport to render at half size.
I have successfully, rendered to a half size quad and sampled the texture, but I get antialiasing, even with the filter set to false. Filter set to true i get super aliasing. My desire is to get not aliases, and very crisp colors with no interpolated values.
Is there a simple way to view fullscreen but still render a very crisp no aliased render.
I’ve also tried to change the graphics settings to half my screen resolution then set fullscreen to true. That actually is decent, but what should look like a single pixel looks like a small plus sign.
The best looking results i’ve gotten are from the size divisor, but then I’m getting some color interpolation that i’d rather not have.[/quote]
So it looks like I just want to set the filter node to “GL_NEAREST”
I can see in c++ there is a way to set the default filter mode in graphics, however. I dont think I can with angelscript. Also, setting it in C++ to FILTER_NEAREST and setting the renderpath to filter=“true” didnt seem to actually use nearest mode.
If there a way to do this?
I dont want the rendering to do any filtering. It would be super cool to just be able to set that on a shader level, or even in the render path for the rendertarget.
Actually when you set “filter=true” you ask for the bilinear filter, instead if you don’t want any filtering on your buffer then you can have the nearest mode by setting “filter=false”.
Look at the function: Renderer::GetScreenBuffer
I see, it does in fact.
When I render to a sizedivisor 2 2 buffer, i’m getting half values or what look like interpolated values. Which is not desireable for what I am doing. I’ll have to look into another way. Thanks for point that out.
So then it might be applyig a filter when I sample a half sized rendertarget.
Where should I look for that? thanks
From what I read in the code, FILTER_NEAREST works on both magnification and minification.
Try stepping through the code and see what happens in Texture::UpdateParameters when you are creating your buffer.