Author Topic: Metallic Code for Presets  (Read 12914 times)

Sullivan

  • Guest
Metallic Code for Presets
« on: April 25, 2011, 06:10:07 pm »
also works great for objects :]



you too can look like the Silver Surfer, easy peezy.

step one
Get 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 two
paste 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 three
continue 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

Offline Avani

  • Slytherin
  • Elder Grey Pelt
  • ****
  • Posts: 2,647
  • Country: no
  • Floof-O-Meter: 241
  • Avatar © Rizzla ☆゚
    • View Profile
Re: Metallic Code for Presets
« Reply #1 on: April 25, 2011, 06:15:18 pm »
oOooo Awesome! 0:
Must try! >:3

Thanks for posting <3
: D

JazzForLife

  • Guest
Re: Metallic Code for Presets
« Reply #2 on: April 27, 2011, 08:23:36 pm »
LOL this is so cool! Very epic preset!

Liekos

  • Guest
Re: Metallic Code for Presets
« Reply #3 on: April 29, 2011, 12:29:07 pm »
Wow! this looks epic xD

Offline GemWolf

  • Avani's Ninja Agent
  • Community Champion
  • ****
  • Posts: 2,072
  • Country: 00
  • Floof-O-Meter: 191
  • play rain world
    • View Profile
Re: Metallic Code for Presets
« Reply #4 on: May 02, 2011, 09:57:57 pm »
Oooh.. I wonder if there is a code that makes it reflective.. but anyway, I'm gonna try this. xP

Zodiac

  • Guest
Re: Metallic Code for Presets
« Reply #5 on: May 03, 2011, 12:43:29 am »
Ooooooh it's silvery <3

Offline Grypwolf

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Floof-O-Meter: 6
  • Turn on the ignition!
    • View Profile
    • DA Gallery
Re: Metallic Code for Presets
« Reply #6 on: May 03, 2011, 04:46:42 am »
Hey! thanks sully :D I loved mane texture you made in feralistic 3 ^^

Offline TeddyLover

  • Forum Newcomer
  • *
  • Posts: 6
  • Floof-O-Meter: -1
    • View Profile
Re: Metallic Code for Presets
« Reply #7 on: November 09, 2011, 08:13:36 pm »
Oh wow, thanks for the code! I've already made a character, a simple one haha.

However I have a question: Is it possible to have multiple textures on a certain body part? Like for example, blue legs on a black body.  I tried and failed; is there something I'm missing or is it impossible? Thank you for any answers~

[-new to fancy preset things hurr-]

Offline SilverTW

  • Finest Floof
  • ***
  • Posts: 855
  • Country: 00
  • Floof-O-Meter: 54
  • Inactive account
    • View Profile
    • DeviantART
Re: Metallic Code for Presets
« Reply #8 on: February 27, 2012, 12:15:30 am »
Look what I made with it!


Is what I made with this script!
and download is here: http://www.deviantart.com/download/287379623/metal_preset_by_rashanon-d4r3jjb.zip

This account is no longer in use, and any messages sent to here will not be read. If you need to reach me, head to https://softdiamond.net

Specialized in FeralHeart Maps,Presets,Objects,Mods,Markings,Textures and MORE.
Video Maker and more!

Offline imtoots2

  • Experienced Traveler
  • **
  • Posts: 107
  • Floof-O-Meter: 4
  • Hello~
    • View Profile
Re: Metallic Code for Presets
« Reply #9 on: March 24, 2012, 05:22:36 pm »
Thanks! I loves meh preset. Thanks again <3