Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - parler

Pages: [1]
1
Game Help / Re: transparent code/image not working?
« on: July 07, 2012, 05:15:05 pm »
no, no, the code from happyshadow was exactly what i needed! thank you so much! ; u ; i'm so happy, ahhhh. thank you, thank you, thank you!

2
Game Help / Re: transparent code/image not working?
« on: July 07, 2012, 05:03:10 pm »
okay, thank you! i'll see if that works and edit my post later.

edit or not? i saw you struck out your suggestion..

3
Game Help / transparent code/image not working?
« on: July 07, 2012, 04:42:29 pm »
i cannot, for the life of me, figure out what i did wrong. i know the common errors are that not all of the code matches the preset number (like preset_5body.png), or that the image isn't a .png file. however, my file is a .png file and i've gone through my code over and over to make sure i didn't make a dumb mistake. every time i export the file, though, nothing changes at the preset stays white. ):

here's the code:
Code: [Select]
material preset_5_bodyMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     [size=10pt][size=10pt][size=10pt]scene_blend [/size][/size][/size]alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture transparentbody.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
         texture_unit
         {
            texture transparentbody.png
         }
      }
   }
}

material preset_5_bodyMatR
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5body.png
         }
      }
   }
}

material preset_5_headMatL
{
        receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5head.png
         }
      }
   }
}

material preset_5_headMatR
{
  
        receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5head.png
         }
      }
   }
}
material preset_5_eyeMatL
{ receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5eye.png
         }
      }
   }
}

material preset_5_eyeMatR
{
    receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5eye.png
         }
      }
   }
}

material preset_5_tailMat
{
   receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture preset_5tail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_5tail.png
         }
      }
   }
}

material preset_5_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_5mane.png
         }
      }
   }
}

the image name i'm using is "transparentbody." it's only partially transparent, but i don't think i need a different code for that, do i? if i do, could somebody please link me to it or paste it here? i'm desperate ; o ;

Pages: [1]