iPanda Posted January 25, 2014 Share Posted January 25, 2014 Hi guys. I'm just starting to learn and shaders .FX files. Could you please help me in creating a shader "reflection" or "palette". To each texture was light reflection-shadow: A little light falling on texture. The example in the screenshot. p.s. I know that there are some in the community for similar shader machines, but I have a few days to do them, but nothing happens. Help create a shader with nudya relying on those that already exist. Link to comment
Ren_712 Posted January 25, 2014 Share Posted January 25, 2014 Hi guys. I'm just starting to learn and shaders .FX files. Could you please help me in creating a shader "reflection" or "palette". To each texture was light reflection-shadow: A little light falling on texture. The example in the screenshot. p.s. I know that there are some in the community for similar shader machines, but I have a few days to do them, but nothing happens. Help create a shader with nudya relying on those that already exist. I posted a reflection shader called golden_ped, which is a modified stock effect reflective bump from nvidia examples. It's in your last topic afaik. It's quite similar, you would need a diff cubebox tho. Link to comment
iPanda Posted January 26, 2014 Author Share Posted January 26, 2014 Hi guys. I'm just starting to learn and shaders .FX files. Could you please help me in creating a shader "reflection" or "palette". To each texture was light reflection-shadow: A little light falling on texture. The example in the screenshot. p.s. I know that there are some in the community for similar shader machines, but I have a few days to do them, but nothing happens. Help create a shader with nudya relying on those that already exist. I posted a reflection shader called golden_ped, which is a modified stock effect reflective bump from nvidia examples. It's in your last topic afaik. It's quite similar, you would need a diff cubebox tho. Sorry, but I have no idea how to change golden_ped.zip: there's too much code .fx file, I can not understand it. Link to comment
Ren_712 Posted January 26, 2014 Share Posted January 26, 2014 you don't need to change anything in the .fx file at all. 1.Look into the lua file and see how the effect is being applied 2.Change the texcube (.dds) file in textures folder to get more appropriate 'reflection'. All in all you can apply this effect to anything Link to comment
iPanda Posted January 26, 2014 Author Share Posted January 26, 2014 you don't need to change anything in the .fx file at all. 1.Look into the lua file and see how the effect is being applied 2.Change the texcube (.dds) file in textures folder to get more appropriate 'reflection'. All in all you can apply this effect to anything I almost got to make my shader. Screenshot. But I have two problems and their solutions are two options, only one is correct: 1. Perhaps the problem with exceptions black white shader. Can you please suggest any code that I can add using engineRemoveShaderFromWorldTexture that machines did not change their color. 2. Possible problem with your resource "shader_car_paint." By default, the vehicle has blue-gray color. I need a red - scarlet, which has RGB (255,36,0) Can you help me please. Link to comment
Ren_712 Posted January 26, 2014 Share Posted January 26, 2014 1. If you are using to texture effect - Just download shader_tex_names from shader examples. Use it to get texture names of the machine objects. Other way you can get texture list: table engineGetModelTextureNames( string modelId = "" ) for _,name in ipairs( engineGetModelTextureNames( "480" ) ) do engineRemoveShaderFromWorldTexture(shader,name) end 2.A screenshot comparison would be nice . "shader_car_paint" example has not been written by me. As any other resource on example page. There has been some issues with it - look for "shader_car_paint_fix" on community. Set the filmic pass and sky reflection to 0 if it interferes. I haven't noticed any major color issues (apart from issues with white - that was main fix). Link to comment
iPanda Posted January 27, 2014 Author Share Posted January 27, 2014 1. If you are using to texture effect - Just download shader_tex_names from shader examples. Use it to get texture names of the machine objects. Other way you can get texture list:table engineGetModelTextureNames( string modelId = "" ) for _,name in ipairs( engineGetModelTextureNames( "480" ) ) do engineRemoveShaderFromWorldTexture(shader,name) end 2.A screenshot comparison would be nice . "shader_car_paint" example has not been written by me. As any other resource on example page. There has been some issues with it - look for "shader_car_paint_fix" on community. Set the filmic pass and sky reflection to 0 if it interferes. I haven't noticed any major color issues (apart from issues with white - that was main fix). Ren, thank you for everything! I succeeded. Here's a screenshot. Link to comment
yoya99 Posted November 16, 2014 Share Posted November 16, 2014 Hiw did you got this effect?? Link to comment
WASSIm. Posted November 17, 2014 Share Posted November 17, 2014 Hiw did you got this effect?? dude why BUMP ? look at community or PM him for ask Link to comment
yoya99 Posted November 17, 2014 Share Posted November 17, 2014 Its community! Its open worls sharing forum so dont act like this pls 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