Jump to content
  • 0

Chassis spec


Nick Worthmen

Question

1 answer to this question

Recommended Posts

  • 0
  • Find the .material file of the chassis, in my example I'll be using Hotline Miami Night Life.
  • So I'd find HotlineMiamiNightLife.material, once I have this file open your going to see a sort of "list" of .png's that are used within this part of the truck, for example. 

material SOLID/TEX/Chassis.003/SOLID/TEX/Crazyradiator.png/VertCol
{
{
    technique
    {
      pass
      {
       texture_unit
       {
        texture Crazyradiator.png
       }
      }
    }
    }

This is just a radiator, looking at the name of the .png can help a lot. 

  • Once you find the .png that is being used for the color of the chassis you simply replace from the "{" to the very last "}" at the bottom of the section (see above where the red highlighted "{}" are for an example.)

You'll replace it using these lines 

{
    technique
    {
        pass
        {
            scene_blend alpha_blend

            vertex_program_ref NiceMetal_VS
            {
            }
                fragment_program_ref SimpleMetal_PS
                {
                }
                    texture_unit diffusetex
                    {
                        texture OverBoredChassis.png 2d
                        tex_coord_set 0
                        }
                            texture_unit speculartex
                            {
                                texture sm-shine.png 2d
                                tex_coord_set 1
                                }
                            }
                        pass
                        {
                    scene_blend add

                    vertex_program_ref NiceMetal_Reflect_VS
                    {
                    }
                    fragment_program_ref NiceMetal_Reflect_nocolor_PS
                {
                }
            texture_unit reflectivetex
            {
        texture sm-spec.png 2d
        tex_coord_set 0
    }
    texture_unit envmaptex
    {
    cubic_texture EnvironmentTexture combinedUVW
    tex_address_mode clamp
    tex_coord_set 1
                }
        }
    }
}

The only thing you'll be changing in this section is the .png that is highlighted in red. You must change it to whatever .png is being used for the chassis, in my example if it didnt say OverBoredChassis.png, I'd need to change it to that other wise it wont show up. 

You could make your own Spec and Shine .png's but since your still new to this I'd just recommend using the SM-Shine and SM-Spec.png's 

Hope it helps.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...