The best way to get information on materials is starting to read the manual. Material Scripts

Attached is a collection of material templates that can be used as the launching pad for your own OGRE projects. Programmatic materials - e.g. materials created systematically via C++ code - can be found here.

Get Syntax highlighting for Material files using Crimson Editor.

Basic

Simple image map

The simplest material - apply an image to a mesh.

Material Requirements

  • image.png - Texture


Material Template

material Template/texture_map
 {
    technique
    {
       pass
        {
          texture_unit
          {
            texture image.png
            scale 0.1 0.1
            // this means that the texture will be tiled 10 times (1/10 = 0.1)
          }
       }   
    }
 }

Solid colour



Use a script like this to create a solid coloured material:

Material Template

material Template/Red
  {
    technique
    {
      pass
      {
        texture_unit
        {
          colour_op_ex source1 src_manual src_current 1 0 0
        }
      } 
    }
  }

'source1' uses the first source without modifications. In this case, the first source is the very next argument. 'src_manual' means to use the colour denoted by the three numbers at the end. The numbers represent RGB values and can be between 0 and 1. 'src_current' is the texture_unit that is being blended with 'src_manual', but in this case, since the operation is to use the first source unchanged, the resulting texture is simply the solid color as denoted by '1 0 0'.

Simple shaded colour

Create a single colored material with shading:

Material Template

material Template/Red
{
   technique
   {
      pass
      {
         lighting on

         ambient 0.3 0.1 0.1 1
         diffuse 0.8 0.05 0.05 1
         emissive 0 0 0 1
      }
   }
}


material Template/Blue
{
   technique
   {
      pass
      {
         lighting on

         ambient 0.3 0.3 0.3 1
         diffuse 0.1 0.2 0.7 1
         emissive 0 0 0 1
      }
   }
}

material Templates/RadioactiveGreen
{
   technique
   {
      pass
      {
         lighting on

         ambient 0.1 0.3 0.1 1
         diffuse 0.2 0.2 0.2 1
         emissive 0.05 0.8 0.05 1
      }
   }
}

All colors are formed using three values between 0 and 1 that represent the RGB components. Some parameters take 4 values, with the fourth being the alpha value (also between 0 and 1). A value of 1 means white or maximum brightness, 0 means black or lowest brightness.
Ambient determines the base color of the object, without any lighting applied to it. This means, since the color model is additive, that this is the minimal brightness of the object (when it is in absolute shadow or no light shines on it). Making this value too high (eg. completely white (1 1 1) ) will result in all your objects being completely white. Setting it to black (0 0 0) will give you completely black shadows.
Diffuse color determines the base color of your material in the presence of lights. It determines how much of each color component is reflected, defining what color the material will have when a full white light shines on it. Note that the ambient color is added to the result of the diffuse, so if you set an ambient value you might have to reduce your diffuse value to compensate for that.
Emissive term is the amount of light or the color that is emitted from the object without needing any light, and gives the effect as if the object is lit by its own personal ambient light. Note that emissive does not cast light on other objects in the scene, so if you want a glowing object that casts light on the rest of the scene you will have to add an additional light to the scene. If you want an ambient color in the absence of lights this is the parameter that you need, instead of ambient.
Additionally, there is a 'specular' setting that allows to set the specular component of your material. By default it is disabled (0 0 0 0).
For these settings (ambient, diffuse and emissive) to work, you need to have 'lighting' on. Also using 'colour_op replace' in a texture unit of your material will disable those settings.
For more information about these parameters have a look at the material passes section of the manual.

Transparent colour

Use a script like this to create a transparent colour material:

Material Template

material Template/Red50
 {
   technique
   {
     pass
     {
       scene_blend alpha_blend
       depth_write off
       
       texture_unit
       {
         colour_op_ex source1 src_manual src_current 1 0 0
         alpha_op_ex source1 src_manual src_current 0.5
       }
     }
   }
 }

The 'colour_op_ex' line is explained above. The 'alpha_op_ex' has the same argument structure, the only difference is that the value at the end specifies the alpha value to use. Here, the colour is being set to 50% transparent. You can experiment with different arguments for scene_blend to give the material different kinds of transparency.

Simple texture transition

Suppose you have three quads representing a ground plane. Quad A you want to be dirt, Quad B you want to be a combination of dirt and grass, and finally quad C is grass. Here is a simple material for Quad B that does not require external creation of a dirt/grass texture.

Material Requirements

  • the blending file must be in 8 bit format (24 bit doesn't work)
  • be sure that you really save the following images itself (and not the target page)
  • Material_grass.png - Source texture




Material_grass.png

  • Material_dirt.jpg - Desination texture


Material_dirt.jpg

  • Material_alpha_blend.png - A PNG file that has the alpha mask we want to borrow for the transition.


Material_alpha_blend.png

The Rule of blending image: The black (or color) area will be the source texture, and the transparent area will be destination texture

Material Template

material Template/texture_blend
 {
    technique
    {
       pass
       {
          texture_unit
          {
            texture Material_grass.png
          }
          texture_unit
          {
             texture Material_alpha_blend.png             
             colour_op alpha_blend
          }
          texture_unit
          {
             texture Material_dirt.jpg
             colour_op_ex blend_current_alpha src_texture src_current
          }
       }
    }
 }

The result

Result.jpg

Pro: Easy, no programming required

Con: You have to build a new transition material for each transition you would like.

Advanced Tip: See Alpha Splatting.

Dynamic texture transition

You can programatically control the amount of grass/dirt shown with some minor adjustments to the above example.

Dynamic Material Template

material dynamic_texture_blend
{
   technique
   {
      pass
      {
         texture_unit
         {
           texture Material_grass.png
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit
         {
            texture Material_alpha_blend.png             
            //The alpha_op for this texunit is programatically set, see below
            //alpha_op_ex modulate src_manual src_texture SOME_NUMBER
         }
         texture_unit
         {
            texture Material_dirt.jpg
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}

Then in your source code:

Ogre::MaterialPtr materialPtr = Ogre::MaterialManager::getSingleton().getByName("dynamic_texture_blend");
Ogre::TextureUnitState* ptus = materialPtr->getTechnique(0)->getPass(1)->getTextureUnitState(0); //2nd pass, first texture unit
ptus->setAlphaOperation(Ogre::LBX_MODULATE, Ogre::LBS_MANUAL, Ogre::LBS_TEXTURE, your_transparency_level_varaible_goes_here);

Stained Glass Window

Suppose you have a quad, and you want it to be partially transparent, much like a stained glass window.

Material Requirements

  • image.png - Texture you want to be transparent




Material Template

material Template/TransparentTexture
 {
   technique
   {
     pass
     {
       lighting off
       scene_blend alpha_blend
       depth_write off
       
       texture_unit
       {
         texture image.png
         alpha_op_ex source1 src_manual src_texture 0.5      
       }
     }
   }
 }

Transparent map



Suppose you have a alpha-masked texture of a tree, and you want to apply this texture to a quad.

Material Requirements

  • image.png - An image with an alpha layer that dictates what part of the image should be visible (and by how much)




Material Template

material cutout
 {
     technique
     {
         pass
         {
             lighting off
 
             ambient 1 1 1 1
             diffuse 1 1 1 1
             specular 0 0 0 0
             emissive 0 0 0
 
             scene_blend alpha_blend
             depth_write off
 
             texture_unit
             {
                 texture image.png
                 tex_coord_set 0
                 colour_op modulate
             }
         }
     }
 }

Note: This material script was produced by the maya6.0e exporter. It may contain more information than is necessary.
However, If we use this script for many object nearby each other, we will get problem like this
Blending scene problem. So, this is the script we can use if we want to make many object with transparent near each other like a forest.

Material Template

material cutout
 {
     technique
     {
         pass
         {
             lighting off
 
             ambient 1 1 1 1
             diffuse 1 1 1 1
             specular 0 0 0 0
             emissive 0 0 0
 
             // by increase this number, we will get more transparent objects
             alpha_rejection greater 128
             depth_write on
 
             texture_unit
             {
                 texture image.png
                 tex_coord_set 0
                 colour_op modulate
             }
         }
     }
 }

Chroma Key



Quoted from OGRE MVP Christian "DWORD" Larsen: "It's not possible really, unless you use shaders or modify your textures dynamically. You're better off saving your textures in a format containing an alpha channel."

Quoted from OGRE Project Lead sinbad: "Colour keying went out with palettised textures and other dinosaur techniques Wink Alpha channels are in."
HAve a look at thisforum thread.

Alternatively, you could use this function:
Creating transparency based on a key colour in code

Old Chroma key info below:

Suppose you have a texture with no alpha-layer and you want to make all pixels of a given color (be it green, blue, etc) transparent in the texture.

Material Requirements

  • An RGB color - say (0,255,0) for green
  • image.png - An image with the RGB color applied as the alpha mask




Material Template

TO DO

Porcelain and Steel shader

This shader can be used to made porcelain or steel objects based on environment maps.
First step, create an environment map. That is the map that your object will reflect.

Boncau_env.jpg

And this is the shader:

material porcelainshad
    {
        technique
        {
            pass
            {
                ambient 1.0 1.0 1.0
                diffuse 1.0 1.0 1.0
                specular 1.0 1.0 1.0 9800.0
                emissive 0.0 0.0 0.0 1
                texture_unit
                {
                    texture env_room.jpg
                    color_op_ex blend_manual src_texture src_current 0.1
                    env_map spherical
                }
            }
        }
    }

env_room is the environment map.
With

specular 1.0 1.0 1.0 9800.0

we have the Porcelain shader


And with steel shader, increase the specular

specular 0.9 0.9 0.9 10000.0

Lightmap



A lightmap is just a texture for blending in OGRE. Normally, the lightmap texture is a grayscale texture like this

lightmap.jpg

Lmaa.jpg

The black area will be the shadowed and in the white are, the obejct will be illuminated.
And we have material:

rock.jpg

Aaa.jpg

And we will blend them like this:

material rock_lightmap
    {
        technique
        {
            pass
            {
                ambient 1.0 1.0 1.0
                diffuse 1.0 1.0 1.0
                specular 1.0 1.0 1.0 9800.0
                emissive 0.0 0.0 0.0 1
                texture_unit
                {
                    // the detail texture
                    texture rock.jpg
                    // UV set for the detail map (if you have multi-UV)
                    tex_coord_set 0
                    colour_op modulate
                }
            }
            pass
            {
                scene_blend modulate
                texture_unit
                {
                    // the lightmap texture
                    lightmap.jpg
                    // UV set for the lightmap (if you have multi-UV)
                    tex_coord_set 0
                    colour_op modulate
                }
            }
        }
    }

And the result of the blending:

Untitled-1.jpg



Some advanced points:
If you create multi UV for model in 3D program, you have to set their UV set in tex_coord_set. You can check the .XML file for more information.

vertexbuffer positions="true" normals="true" colours_diffuse="true" colours_specular="false" texture_coords="1"

The .MESH file converted from .XML will contain these information too.

Intermediate Materials

Detail Textures

TO DO

Advanced Materials

Alpha Splatting

This technique is used to allow multiple detail textures to be blended over each other according to an alpha map, that determines for each texture, where it is to be put. This is most often used for terrain, where you have many different undergrounds like dirt, walkways, grass, stone etc. This cannot be done with one pre-rendered texture, because it would require too much texture memory or look too coarse grained otherwise.

Alpha_blending_done.jpg

Material Requirements

  • alpha_blending_mesh.gif A mesh, for instance a landscape
  • alpha_blending_uvmap.gif A uvmap for the mesh
  • alpha_blending_alpha.gif A texture containing the alpha map (this texture can contain colour channel informations, but it is ignored)
  • alpha_blending_texturen.gif detail textures for each underground type




Material Template

material Material/SOLID/erdboden.jpg
{
    receive_shadows on

    technique
    {
        // base pass
        pass
        {
            // no lighting
            lighting off

            texture_unit
            {
                // we use the grass texture as the base, other textures are blended over it
                texture grass.jpg
                // scale the texture so, that it looks nice
                scale 0.1 0.1
                // only blend colour
                // colour_op_ex source1 src_texture src_texture
            }
        }

        // dirt pass
        pass
        {
            // no lighting
            lighting off

            // blend with former pass
            scene_blend alpha_blend

            // only overwrite fragments with the same depth
            depth_func equal

            // alpha map for the dirt
            texture_unit
            {
                texture alpha_dirt.png

                // use alpha from this texture
                alpha_op_ex source1 src_texture src_texture
                // and colour from last pass
                colour_op_ex source2 src_texture src_texture
            }

            // detail texture
            texture_unit
            {
                texture dirt.jpg
                scale 0.15 0.15
                // alpha blend colour with colour from last pass
                colour_op_ex blend_diffuse_alpha src_texture src_current
            }
        }

        // ... further detail passes like the former one ...

        // lighting pass
        pass
        {
            ambient 0.5 0.5 0.5 1
            diffuse 0.3 0.3 0.3 
            

            depth_func equal
            scene_blend zero src_colour
        }
    }
}

BumpMapping

First of all, Dot3Bump is a perfect example for bump mapping.

Here are my 3 examples files:

SolPSDNet.png: color texture

SolPSDNet.png

SolPSDNetbump.png: bump texture

SolPSDNetbump.png

SolPSDNetb.png: normal map obtained with bump texture

SolPSDNetb.png


STEP 1 : Convert bump to normal map

I only found this for photoshop users. You will need a plug-in for photoshop by Nvidia: 'NVIDIA Normal Map Filter'
(Go here(Nvidia site) and search for: "Normal Map Filter", you'll find in first results).

GIMP version available here

Load your bump map in photoshop and go to filter/nvidia tool and normal map. Play around with the scale parameter for stronger effects.

After conversion, save your file as "SolPSDNetb.png" for example.


STEP 2 : Read example-advancedmaterial

Find example-advanced.material and look for Examples/BumpMapping/MultiLight section. Copy and paste it to your .material file.

Here is the code:

<pre>material Examples/BumpMapping/MultiLight
 { 
 
     // this is the preferred technique which uses both vertex and
     // fragment programs and supports coloured lights
     technique
     {
         // base ambient pass
         pass
         {
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine

             ambient 1 1 1
             diffuse 0 0 0 
             specular 0 0 0 0 

             // really basic vertex program
             // NB we don't use fixed functions here because GL does not like
             // mixing fixed functions and vertex programs (depth fighting can
             // be an issue)
             vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
             {
                 param_named_auto worldViewProj worldviewproj_matrix
                 param_named_auto ambient ambient_light_colour
             }
             
         }
         // wow do the lighting pass
         // NB we don't do decal texture here because this is repeated per light
         pass
         {
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine
             ambient 0 0 0 
             
             // do this for each light
             iteration once_per_light
 
             scene_blend add
 
             // vertex program reference
             vertex_program_ref Examples/BumpMapVP
             {
                 param_named_auto lightPosition light_position_object_space 0
                 param_named_auto worldViewProj worldviewproj_matrix
             }
 
             // fragment program
             fragment_program_ref Examples/BumpMapFP
             {
                 param_named_auto lightDiffuse light_diffuse_colour 0 
             }
             
             // base bump map
             texture_unit
             {
                 texture NMBumpsOut.png
                 colour_op replace
             }

             // normalisation cube map
             texture_unit
             {
                 cubic_texture nm.png combinedUVW
                 tex_coord_set 1
                 tex_address_mode clamp
             }
         }
         
         // decal pass
         pass
         {
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine

             lighting off

             // really basic vertex program
             // NB we don't use fixed function here because GL does not like
             // mixing fixed function and vertex programs (depth fighting can
             // be an issue)

             vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
             {
                 param_named_auto worldViewProj worldviewproj_matrix
                 param_named ambient float4 1 1 1 1
             }

             scene_blend dest_colour zero

             texture_unit
             {
                 texture RustedMetal.jpg 
             }
             
         }
     }
 
     // this is the fallback which cards which don't have fragment program 
     // support will use
     // Note: this still requires vertex program support
     technique
     {
         // base ambient pass
         pass
         {
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine

             ambient 1 1 1
             diffuse 0 0 0 
             specular 0 0 0 0

             // really basic vertex program
             // NB we don't use fixed function here because GL does not like
             // mixing fixed function and vertex programs (depth fighting can
             // be an issue)

             vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
             {
                 param_named_auto worldViewProj worldviewproj_matrix
                 param_named_auto ambient ambient_light_colour
             }
             
         }
         // now do the lighting pass
         // NB we don't do decal texture here because this is repeated per light
         pass
         {
             // base colours, not needed for rendering, but as information
             // to lighting pass categorisation routine

             ambient 0 0 0 

             // do this for each light
             iteration once_per_light
 
         
             scene_blend add
 
             // vertex program reference
             vertex_program_ref Examples/BumpMapVP
             {
                 param_named_auto lightPosition light_position_object_space 0
                 param_named_auto worldViewProj worldviewproj_matrix
             }
             
             // base bump map
             texture_unit
             {
                 texture NMBumpsOut.png
                 colour_op replace
             }

             // normalisation cube map, with dot product on bump map
             texture_unit
             {
                 cubic_texture nm.png combinedUVW
                 tex_coord_set 1
                 tex_address_mode clamp
                 colour_op_ex dotproduct src_texture src_current
                 colour_op_multipass_fallback dest_colour zero
             }
         }
         
         // decal pass
         pass
         {
             lighting off

             // really basic vertex program
             // NB we don't use fixed function here because GL does not like
             // mixing fixed function and vertex programs, depth fighting can
             // be an issue

             vertex_program_ref Ogre/BasicVertexPrograms/AmbientOneTexture
             {
                 param_named_auto worldViewProj worldviewproj_matrix
                 param_named ambient float4 1 1 1 1
             }
             scene_blend dest_colour zero
             texture_unit
             {
                 texture RustedMetal.jpg 
             }
              
         }
  
     }
 }</pre>

After that, you can find the "header" of CG program in the same example-advanced.material file (only copy CG program header for bump maping):

// bump map vertex program, support for this is required
 vertex_program Examples/BumpMapVP cg
 {
     source Example_BumpMapping.cg
     entry_point main_vp
     profiles vs_1_1 arbvp1
 }
 
 // bump map fragment program, support for this is optional
 fragment_program Examples/BumpMapFP cg
 {
     source Example_BumpMapping.cg
     entry_point main_fp
     profiles ps_1_1 arbfp1 fp20
 } 
 
 // bump map with specular vertex program, support for this is required
 vertex_program Examples/BumpMapVPSpecular cg
 {
     source Example_BumpMapping.cg
     entry_point specular_vp
     profiles vs_1_1 arbvp1
 }
 
 // bump map fragment program, support for this is optional
 fragment_program Examples/BumpMapFPSpecular cg
 {
     source Example_BumpMapping.cg
     entry_point specular_fp
     profiles ps_1_1 arbfp1 fp20
 }

Copy and paste the headers at the beginning of your .material file.


STEP 3 : Lat work, include your textures

You have to replace the following in your .material :

RustedMetal.jpg by your color map SolPSDNet.png

NMBumpsOut.png by your NORMAL MAP (not bump) SolPSDNetb.png

And thats all folks!

Important Hint: To use bumpmapping, we'll need tangent vectors for our meshes.

OGRE can do this for you ahead of time if you use the '-t' parameter to the command line tools OgreXmlConverter or OgreMeshUpgrade. Otherwise, you can generate them in code like this:

// load the meshes with non-default HBU options
     MeshPtr pMesh = MeshManager::getSingleton().load("Block02.mesh",
           ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME,    
           HardwareBuffer::HBU_DYNAMIC_WRITE_ONLY,
           HardwareBuffer::HBU_STATIC_WRITE_ONLY,
           true, true);
     // so we can still read it
           
     // build tangent vectors, all our meshes use only one texture coordset 
     // Note: we can build into VES_TANGENT now (SM2+)
     
     unsigned short src, dest;
     if (!pMesh->suggestTangentVectorBuildParams(VES_TANGENT, src, dest))
     {
        pMesh->buildTangentVectors(VES_TANGENT, src, dest);
     }

Read also BumpMapping in this wiki.

Manual

Also have a look in the OGRE manual

<HR>
Creative Commons Copyright -- Some rights reserved.


THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.

BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.

1. Definitions

  • "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
  • "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
  • "Licensor" means the individual or entity that offers the Work under the terms of this License.
  • "Original Author" means the individual or entity who created the Work.
  • "Work" means the copyrightable work of authorship offered under the terms of this License.
  • "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
  • "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.

2. Fair Use Rights

Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.

3. License Grant

Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:

  • to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
  • to create and reproduce Derivative Works;
  • to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
  • to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.
  • For the avoidance of doubt, where the work is a musical composition:
    • Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work.
    • Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights society or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).
    • Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).


The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.

4. Restrictions

The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:

  • You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by clause 4(c), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by clause 4(c), as requested.
  • You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-ShareAlike 2.5 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License.
  • If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit.

5. Representations, Warranties and Disclaimer

UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.

6. Limitation on Liability.

EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

7. Termination

  • This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
  • Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.

8. Miscellaneous

  • Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
  • Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
  • If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
  • No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
  • This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.