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

Offline Kamaete

  • Finest Floof
  • ***
  • Posts: 951
  • Country: 00
  • Floof-O-Meter: 25
  • Wings would be good if I weren't afraid of heights
    • View Profile
    • Kama-ItaeteXIII @ DeviantART
Re: TRANSPARENT CODE FOR YOU!
« Reply #10 on: April 29, 2011, 01:29:50 am »
>.>
1. In GIMP or photoshop just erase the parts you want invisible and save as .png.
2. Follow normal preset instructions.  (Saving in C://my_presets/preset_#, etc.)
3. Open the .material with note pad.
4. Scroll down to whichever part/s need to be transparent. (Aka head, body, etc.)
5. Highlight everything after the heading (heading = material preset_#_bodyMatL etc)
 What you highlighted should look like this:
    
Code: [Select]
{
technique
{
pass
{
texture_unit
{
texture preset#body.jpg
}
}
}
}
Replace that with this:

 
Code: [Select]
{
      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
         }
      }
   }
}

6. Save as normal preset.  (AKA preset_#.material)
7. Open FH (type in your exact login name. For example, if your login name is Fancypant208 type n Fancypant208, not fancypant208.  If you're making a preset for someone else, ask for their in-game username and use that.) > Tools > Preset maker
8. Go to whatever preset # you saved it as and it should show up. <:
9. Click export.  A popup window should say something like "Exported preset as presets/username_#.fhz"  Click okay
10. Log in, select the character you want, click edit.  Go to "use preset" and select the preset number. C:


                          Good Luck!
                                <3
...In my pants.

Offline GemWolf

  • Avani's Ninja Agent
  • Community Champion
  • ****
  • Posts: 2,072
  • Country: 00
  • Floof-O-Meter: 191
  • play rain world
    • View Profile
Re: TRANSPARENT CODE FOR YOU!
« Reply #11 on: April 30, 2011, 05:49:40 pm »
Lol Kama, that's most helpful. Thanks for the code, everything worked out fine when I tested it a few days ago.~

Offline Kamaete

  • Finest Floof
  • ***
  • Posts: 951
  • Country: 00
  • Floof-O-Meter: 25
  • Wings would be good if I weren't afraid of heights
    • View Profile
    • Kama-ItaeteXIII @ DeviantART
Re: TRANSPARENT CODE FOR YOU!
« Reply #12 on: May 01, 2011, 05:59:47 am »
Thank you, Gem.  I want to see what you ma~de.
...In my pants.

Tigres

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #13 on: May 05, 2011, 03:23:23 am »
ok whenever I make the preset a .png, it always shows up as the presetless yellow and black. It never works when  I make the picture a .png What is wrong?

Tigres

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #14 on: May 05, 2011, 04:19:30 am »
You know what? can somebody just make a quick preset for me so I can see how it's done? or could I just request a preset from you guys because this is super difficult e.<

12dollars

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #15 on: May 07, 2011, 02:00:20 pm »
ok whenever I make the preset a .png, it always shows up as the presetless yellow and black. It never works when  I make the picture a .png What is wrong?

Most likely the name of your file in your script
should be like this
texture_unit
         {
            texture (randomname)Lbody.png

Make sure its the exact name you have your image called, or it wont show up

redthedog10

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #16 on: May 11, 2011, 10:03:45 pm »
Don't work now one side of my Preset is white and teh other is Balck and Yellow O_o Now what.I'm useing Photoshop Elements 7.

Offline Goldchocobo

  • Finest Floof
  • ***
  • Posts: 534
  • Country: gb
  • Floof-O-Meter: 67
    • Aquachocobo
    • GoldchocoboFH
    • View Profile
Re: TRANSPARENT CODE FOR YOU!
« Reply #17 on: May 11, 2011, 10:45:58 pm »
I'm use to makeing presets and I wanted to make transparent ones..

I used the code but it didn't work- I didn't change the name and left it as preset_#head/body/tail  and I changed the actual preset image to png from jpeg- but my preset came up as white, it wasn't useable.

now- here's the strange thing. I made a new preset but kept both the JPEG and PNG I set the codes to accept the PNG, the preset worked, but didn't have transparencey. I then deleated the JPEG and the preset went white, even though the codes were for PNG, can some one explain what happened to me

I already have a help thread for presets in the game help section, but I thought I should ask here- where the actual code was posted.

XxStarxX

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #18 on: May 15, 2011, 02:39:55 am »
I got everything to work except the eyes and teeth they refuse to work i named the Transparenteye.png just as the codeing and still i get yellow and black eyes

redthedog10

  • Guest
Re: TRANSPARENT CODE FOR YOU!
« Reply #19 on: May 15, 2011, 03:42:51 pm »
Nu just right "eyes".them it works.Also I figured it out.DO NOT ADD TEH WORD texture INTO THE NAME!That was the preblem I had :p.