The official 2023 Newsletter is out! Read here!
also works great for objects :]you too can look like the Silver Surfer, easy peezy.step oneGet a texture... it can be actual photo of metal (i got this one from cgtextures.com) or it can be anything, even a flat color looks ok if you want a super Terminator 2 type look lol...Save the texture in your preset folder, i used "preset_9" so i'll be using that in the code but if you use a different folder, make sure to put in the proper number into the code.step twopaste this code into your material file:Code: [Select]material preset_9_bodyMatL{ technique { pass { ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_bodyMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_headMatL{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_headMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_eyeMatL{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 cull_hardware none cull_software none texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_eyeMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 cull_hardware none cull_software none texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_tailMat{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_maneMat{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 lighting off cull_hardware none cull_software none scene_blend alpha_blend depth_write off texture_unit { texture Metal.jpg env_map spherical } } }}like i said, change the numbers to the appropriate one for your preset number.in this code "Metal.jpg" should be replaced with whatever the file name of your metal texture is (or you can simply rename your texture "Metal.jpg" and you won't have to change the code)step threecontinue like any other preset creation! go to the preset maker and load up "preset 9" (or whatever number) and see if you like how it looks! if you don't, there are some ways to fix it...- looks weird? try a different texture. on my first attempt i used a texture with tons of detail in it and it looked weird, try something simple. i also highly recommend using a texture that has a lot of shine in it so it looks really reflective, but hey there are tons of different textures to try--- experiment!- looks too yellow? too blue? too whatever? try editing the code. find the "ambient 0.8 0.9 0.9" part of the code and plug in some different numbers (between 0.0 and 1.0). - only want the metallic texture in one part of the body? then you'll only want to paste that area's code into your material file (ie: everything under "material preset_9_tailMat" for the tail, but nothing else)done!experiment with it and see if you can come up with some cool effects :] if you figure anything neat out, i hope you'll share it in this thread so others can try it out.IMPORTANT:this code does NOT actually make your preset reflective, it just gives it a metallic look... it won't make your body into a mirror that shows the environment around you. i have no idea how to do that haha...tada :U
material preset_9_bodyMatL{ technique { pass { ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_bodyMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_headMatL{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_headMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_eyeMatL{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 cull_hardware none cull_software none texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_eyeMatR{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 cull_hardware none cull_software none texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_tailMat{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 texture_unit { texture Metal.jpg env_map spherical } } }}material preset_9_maneMat{ technique { pass {ambient 0.8 0.9 0.9 specular 1.0 1.0 1.0 128 lighting off cull_hardware none cull_software none scene_blend alpha_blend depth_write off texture_unit { texture Metal.jpg env_map spherical } } }}
material preset_#_eyeMat{ technique { pass { ambient 0.2 0.2 0.2 1.0 diffuse 1.000000 1.000000 1.000000 1.000000 specular 0.100 0.100 0.100 4 emissive 0.000000 0.000000 0.000000 1.000000 cull_hardware none cull_software none scene_blend alpha_blend alpha_rejection greater_equal 120 texture_unit { texture MetalTexture.png env_map spherical } }pass{ambient 1.000000 1.000000 1.000000 1.000000diffuse 1.000000 1.000000 1.000000 1.000000specular 0.050000 0.050000 0.050000 1.000000 12.500000emissive 0.000000 0.000000 0.000000 1.000000cull_hardware nonecull_software nonealpha_rejection greater_equal 128scene_blend alpha_blendtexture_unit{texture EyeTexture.pngtex_address_mode wrapfiltering trilinear} } } }}