Author Topic: Transparent preset help?  (Read 4075 times)

Offline aClementine

  • Forum Newcomer
  • *
  • Posts: 6
  • Floof-O-Meter: 0
  • I'm totally new here.
    • View Profile
Transparent preset help?
« on: September 26, 2014, 02:07:56 pm »
Hello, I quite know my way around the game, but I'm new to the forum. :) Actually this is the first larger forum for me to be a part of. I hope I hit the good category and I apologize if this has been asked before, feel free to redirect me if so, I couldn't find an answer anywhere though.

So, I decided to make a ghost preset following one tutorial found here.

Turned out to be really cool looking, except the fact that the eyes, teeth, legs on the other side of the body, the folds in the paws, the parts of the ears that are supposed to be inside the head and company showed throught. I was wondering if there is any way to not to make them show throught?

I've also noticed that some textures are not seen throught it. Not sure if that has any fix but if it would have, that would be awesome.



Here's the code. I'm new to such coding.

material preset_6_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_6body.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_6body.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_6head.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_6head.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_6eye.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_6eye.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_6tail.jpg
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}
material preset_6_maneMat
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_6mane.png
         }
         scene_blend add
         texture_unit
         {
            texture preset_6ghost.png
         }
      }
   }
}

Thank you in advance everyone! ;D

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Transparent preset help?
« Reply #1 on: September 26, 2014, 03:33:09 pm »
The scene_blend method is just a quick thing to use for people who already made presets to make them "ghost-like," but it has some issues, aye. A different method you could try can be found in the semi-transparent section, here;
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.msg467116#msg467116

Offline aClementine

  • Forum Newcomer
  • *
  • Posts: 6
  • Floof-O-Meter: 0
  • I'm totally new here.
    • View Profile
Re: Transparent preset help?
« Reply #2 on: September 29, 2014, 05:15:38 pm »
Ah I took a little longer while to reply than I thouht I will, sorry ^^;
I've tried the thing you sent me out, there was not any longer a problem with the textures I talked about, I've even managed to make the eyes and teeth dissappear throught the technique it was using so that they won't show throught, but the folds are still there and they look really weird and kind of glitchy. Any chance there might be a trick that would just make it transparent without these? Thank you anyway. c:
Also about that ghost trick, I'm pretty sure I might have read a line or two about a certain way to hide the eyes and teeth there so they won't show throught, I tried it countless times and they always turned out to be white instead of dissappearing.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Transparent preset help?
« Reply #3 on: September 29, 2014, 10:26:56 pm »
The "folds" will always be there because it's the two layers of transparency overlapping each other. There's not really a way to remove them.
To remove the eyes and teeth with the ghost code, just make the eyes and teeth image a transparent .png and change the coding to;
Code: [Select]
material preset_#_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#eye.png
}
}
}
}material preset_#_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#eye.png
}
}
}
}
If it's not working, make sure you replace the numbersigns with the correct preset number, and that the image is a .png, and not a .jpg. o; (If that still doesn't fix it, let me know.)

Offline aClementine

  • Forum Newcomer
  • *
  • Posts: 6
  • Floof-O-Meter: 0
  • I'm totally new here.
    • View Profile
Re: Transparent preset help?
« Reply #4 on: September 30, 2014, 01:24:57 pm »
Thank you, I've fixed the eyes now!
I thought so. But is there perhaps a way to make them less visible or something? Somehow cover them?
I have downloaded a downloadable transparent preset made by someone. It uses the transparency as does the one you sent me as an alternative and it has no texture problems. It also seems to have somehow less visible "folds" and the teeth and eyes are in it and do not show throught at the same time.

Is it anyhow possible to make it glow?
I've recently noticed that on one side of any transparent preset are more of the folds than on another (not sure if it's left or right side ;; ) as if something would cover them on one of the sides. Is it possible to have the whatever cover factor is there work on both sides?

Also this is pretty off-topic but I don't feel like starting a new thread. Can someone steal a preset by somehow taking it out of an export file or it is safe for me to give away my export file so that others can see my preset? I've made a couple of presets that I'm kind of protective of.

I must ask too much questions ^^; Thank you for your patience with me 8)

AlphaEclipse

  • Guest
Re: Transparent preset help?
« Reply #5 on: September 30, 2014, 08:03:39 pm »
Can someone steal a preset by somehow taking it out of an export file or it is safe for me to give away my export file so that others can see my preset? I've made a couple of presets that I'm kind of protective of.
Nope, I do not believe people can steal your presets only using the .fhp file. They'd need the texture files, plus, that .fhp file is assigned to your username. As long as you do not send whoever the preset's folders, along with the .material file and the textures, I'm sure you'll be fine. ^^

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Transparent preset help?
« Reply #6 on: September 30, 2014, 09:17:40 pm »
Thank you, I've fixed the eyes now!
I thought so. But is there perhaps a way to make them less visible or something? Somehow cover them?
I have downloaded a downloadable transparent preset made by someone. It uses the transparency as does the one you sent me as an alternative and it has no texture problems. It also seems to have somehow less visible "folds" and the teeth and eyes are in it and do not show throught at the same time.
-
Is it anyhow possible to make it glow?
I've recently noticed that on one side of any transparent preset are more of the folds than on another (not sure if it's left or right side ;; ) as if something would cover them on one of the sides. Is it possible to have the whatever cover factor is there work on both sides?

Also this is pretty off-topic but I don't feel like starting a new thread. Can someone steal a preset by somehow taking it out of an export file or it is safe for me to give away my export file so that others can see my preset? I've made a couple of presets that I'm kind of protective of.

I must ask too much questions ^^; Thank you for your patience with me 8)

Unfortunately not. Like I said, it's just the double layering. Like looking at light through two sheets of paper as opposed to one. Nothing you can do about it to make it less obvious.
As for the other preset, it was probably just a different method of coding. I know that there are other ways to make a preset transparent, but most of them I did not use because they conflicted with other transparency in the game. Things like seeing through objects or water. The scene_blend code does that, but I only listed it as a "cheap," quick way to get some results if people needed to spiff up for Halloween.
-
If you're set on using this one however, to make it glow use the emissive line. You can find all the info about how that line works from the Glow section, here;
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.msg379366#msg379366
-
Can presets be stolen? Yes. Much like anything on the internet/in your computer. Will it happen? I'd give you money if it did. Whoever wanted to steal your preset would literally have to build a decryptor, which would require knowledge of coding. Anyone with that kind of knowledge would be smart enough to realise that in the time it took them to hack your .fhp, they could have made their own.
In short, .fhp files are secure.
-
And don't worry about the amount of questions you ask. I haven't had this much fun on a topic for a while. xD

Offline aClementine

  • Forum Newcomer
  • *
  • Posts: 6
  • Floof-O-Meter: 0
  • I'm totally new here.
    • View Profile
Re: Transparent preset help?
« Reply #7 on: October 01, 2014, 04:39:49 pm »
Thanks you two for clearing this up. Might have agreed on it with you even before I asked, except as of more recent times I tend to be paranoid about any stuff on a occassion or ten two. :'D

Alright then. I hope you don't mind that I bothered this much with it, I often find myself wanting to have any stuff as perfect as possible. Hahah. Exactly, about the seeing throught stuff thing I talked at the very beginning.
I will try that out, making the downloaded one glowy. Not sure if I make it (being such a newb after all) but I will try. Thanks.

Actually as I rethink it, I realize I'm having fun too. :]