TEDERIs Posted May 24, 2018 Share Posted May 24, 2018 What about the post-processing? It is possible to color some object with world-shader and then just cut off all the rest by post-processing. Or use the depth buffer to remove a background. Link to comment
Dzsozi (h03) Posted May 25, 2018 Author Share Posted May 25, 2018 14 hours ago, TEDERIs said: What about the post-processing? It is possible to color some object with world-shader and then just cut off all the rest by post-processing. Or use the depth buffer to remove a background. And how do I do that? I don't know. Link to comment
TEDERIs Posted May 26, 2018 Share Posted May 26, 2018 (edited) 15 hours ago, Dzsozi (h03) said: And how do I do that? I don't know. Just use the code above to render your object with any contrast color. Then write simple post-processing shader, that finds the contrast color, converts it to black-n-white and delimits your object from a background. In case of the depth buffer, you might use the example from wiki . It probably also will require hiding of all world objects. For this is possible to use vertex shader that moves all vertices far away. By the way, a sample of the second approach you can watch here Edited May 26, 2018 by TEDERIs Additional info Link to comment
Dzsozi (h03) Posted May 26, 2018 Author Share Posted May 26, 2018 17 hours ago, TEDERIs said: Just use the code above to render your object with any contrast color. Then write simple post-processing shader, that finds the contrast color, converts it to black-n-white and delimits your object from a background. In case of the depth buffer, you might use the example from wiki . It probably also will require hiding of all world objects. For this is possible to use vertex shader that moves all vertices far away. By the way, a sample of the second approach you can watch here I do not know how to write shader files. Link to comment
TEDERIs Posted May 29, 2018 Share Posted May 29, 2018 On 27.05.2018 at 06:13, Dzsozi (h03) said: I do not know how to write shader files. So, I have released the resource from the video. There is a complex login system that includes the logo, rain rendering, and custom UI example. I hope it helps you. https://github.com/tederis/mta-resources/tree/master/sp_login Link to comment
Ren_712 Posted June 2, 2018 Share Posted June 2, 2018 On 25.05.2018 at 01:50, TEDERIs said: What about the post-processing? It is possible to color some object with world-shader and then just cut off all the rest by post-processing. Or use the depth buffer to remove a background. You can render the object to render target and the modify output as you want. Example in the link: https://bugs.mtasa.com/view.php?id=8769 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