Author Topic: TRANSPARENT CODE FOR YOU!  (Read 26243 times)

Lavender

  • Guest
TRANSPARENT CODE FOR YOU!
« on: April 25, 2011, 04:12:08 am »
Hey guys! I know iv been looking for this EVERYWHERE,and iv finally got it~! So i'll share it with you guys,here <3

Just PASTE IT INTO YOUR Preset_5 material

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
                     scene_blend 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 TransparentBody.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture TransparentBody.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 Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture Transparenthead.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 Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture Transparenthead.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 eyes.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture Transparenteye.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 eyes.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture Transparenteye.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 Transparenttail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
texture Transparenttail.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 GuideMane.png
}
}
}
}




NOTE: Only works on preset_5 unless you change the numbers!


;w;


---


KK. Everyone is asking for explainz So,i'll us my preset for example

Its pretty simple. In the places where you want it transparent. You erase,leaving it transparent

-exampleplz-




You understand?

« Last Edit: May 15, 2011, 01:04:28 am by Lavender »

Offline Falconwing

  • Curious Wanderer
  • *
  • Posts: 22
  • Floof-O-Meter: 2
    • View Profile
Re: TRANSPARENT CODE FOR YOU!
« Reply #1 on: April 25, 2011, 04:54:54 am »
I honestly don't know if I understand what this exactly does .... could you explain a little more please for us noobies haha

Lavender

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #2 on: April 25, 2011, 07:39:51 am »
I honestly don't know if I understand what this exactly does .... could you explain a little more please for us noobies haha

Mmm,it depends,have you even made a preset?

SoulWolfPup1

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #3 on: April 25, 2011, 07:08:08 pm »
can you explain how to do this for me?
And yes I have made a preset before.

IntendedSuicide

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #4 on: April 25, 2011, 07:34:57 pm »
Ok so if your using GIMP go to layer-transparency-add alpha rejection(something like that) Now erase what you want to be invisible, it should be a grey checkered pattern.

Now save that go to eg. preset_5.material and put this above texture_unit -alpha_rejection greater_equal 128- now your white parts will be transparent ^^

SoulWolfPup1

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #5 on: April 26, 2011, 12:55:58 pm »
oh so much thx
^.^

IntendedSuicide

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #6 on: April 26, 2011, 08:40:16 pm »
My pleasure=)

Tigres

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #7 on: April 27, 2011, 03:44:24 am »
Hmm I seem to have done that... doesnt work...

IntendedSuicide

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #8 on: April 27, 2011, 12:01:26 pm »
Ok when in GIMP save it as a .png because .jpg can't handle the transparency eg.-preset_3body.png- ok now Inc you have done that you need to change the material file as well, so go into it and change the .jpg to .png.

I'm not sure for photo shop because I don't use it but as for GIMP that's what I do,

Good luck hope that helped ^^

Offline lugailover

  • Pack & Pride Representative
  • ****
  • Posts: 1,039
  • Country: 00
  • Floof-O-Meter: 56
    • View Profile
    • Foxes of Ireland
Re: TRANSPARENT CODE FOR YOU!
« Reply #9 on: April 28, 2011, 10:17:47 am »
sorry still doesnt work for me