FranklinRoosevelt Posted January 17, 2015 Posted January 17, 2015 Hello guys, whether it is possible some way copy the shader with a texture and apply it to another? How to do it? Namely, how do you know the name of the texture clothes?
0 MTA Team botder Posted February 4, 2015 MTA Team Posted February 4, 2015 Try to find out the texture with this resource: https://wiki.multitheftauto.com/wiki/Sh ... ture_names You can then replace the texture for specific elements (e. g. players) with the parameter targetElement https://wiki.multitheftauto.com/wiki/En ... rldTexture GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
0 FranklinRoosevelt Posted February 4, 2015 Author Posted February 4, 2015 Try to find out the texture with this resource:https://wiki.multitheftauto.com/wiki/Sh ... ture_names You can then replace the texture for specific elements (e. g. players) with the parameter targetElement https://wiki.multitheftauto.com/wiki/En ... rldTexture I know this, or in Texture_names no parts clothes.
0 Ren_712 Posted February 4, 2015 Posted February 4, 2015 Hello guys, whether it is possible some way copy the shader with a texture and apply it to another?How to do it? Namely, how do you know the name of the texture clothes? The clothes are only for CJ. Every model has (usually) 1 texture. There is a function to get texture names for a model by id. And this you'll use to replace the original ped texture with your own. // // texRep.fx // // //------------------------------------------------------------------------------------------ // Shader Settings //------------------------------------------------------------------------------------------ texture gTexture; //------------------------------------------------------------------------------------------ // Techniques //------------------------------------------------------------------------------------------ technique TexReplace { pass P0 { Texture[0] = gTexture; } } I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
0 FranklinRoosevelt Posted February 4, 2015 Author Posted February 4, 2015 Ren_712, thanks, but in screenshots replaced other skins, how do it?
0 Ren_712 Posted February 5, 2015 Posted February 5, 2015 Ren_712, thanks, but in screenshots replaced other skins, how do it? 1. Get an original texture 2. Get texture name 3. Modify the texture to fit your expectations 4. apply shader to world texture per entity and dxSetShaderValue or something 5. ???? 6. PROFIT! i don't know how to help. This video might do: I make shaders .. mainly. My community resources I'll do some custom stuff, I'm open for cooperation.
0 Anubhav Posted February 5, 2015 Posted February 5, 2015 I realy don't get it too. Any examples? Simple one can help many people who are noobs in shaders. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
0 FranklinRoosevelt Posted February 6, 2015 Author Posted February 6, 2015 Ren_712, I understand, thank you. This - https://wiki.multitheftauto.com/wiki/En ... xtureNames ?
Question
FranklinRoosevelt
Hello guys, whether it is possible some way copy the shader with a texture and apply it to another?
How to do it? Namely, how do you know the name of the texture clothes?
7 answers to this question
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