Feral Heart

Help & Guidance => Game Help => Topic started by: Elohi Adanvdo on May 09, 2013, 01:51:19 am

Title: [FIXED] Semi-transparent legs with solid body?
Post by: Elohi Adanvdo on May 09, 2013, 01:51:19 am
Is it possible to make a preset with see-through (but still visible; semi-transparent) legs that gradually become solid, with the body solid, like a gradient (the body would be solid but give way to ghostly legs)? I've seen it on a galaxy-like preset before, I don't know where it is now... This is the best that I could find, but I would like the effect to be gradual, and the body will be normal (not neon/super glowy): http://divine-angel-heroine.deviantart.com/art/My-best-preset-Updating-it-later-329876576?q=gallery%3Aferalheart-stuff%2F39293806&qo=1 (http://divine-angel-heroine.deviantart.com/art/My-best-preset-Updating-it-later-329876576?q=gallery%3Aferalheart-stuff%2F39293806&qo=1)

I've been saving as .png, but I don't know what the correct coding would be. Please keep in mind that I have some glowing parts on the preset. Here's my code:

material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1body.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1bodyGlow.png
         }
      }
   }
}

material preset_1_bodyMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1body.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1bodyGlow.png
         }
      }
   }
}

material preset_1_headMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1head.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1headGlow.png
         }
      }
   }
}

material preset_1_headMatR
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1head.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1headGlow.png
         }
      }
   }
}

material preset_1_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1eye.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1eyeGlow.png
         }
      }
   }
}

material preset_1_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1eye.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1eyeGlow.png
         }
      }
   }
}

material preset_1_tailMat
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture preset_1tail.png
         }
      }
      pass
      {
         emissive 2.0 2.0 2.0
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1tailGlow.png
         }
      }
   }
}

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

material preset_1_equipMatL
{
   technique
   {
      pass
      {
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_1equipInvisible.png
         }
      }
   }
}
material preset_1_equipMatR
{
   technique
   {
      pass
      {
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_1equipInvisible.png
         }
      }
   }
}

I've already tried a few codes, but none of them work for me, really...

Thankees in advance.
Title: Re: Semi-transparent legs with solid body?
Post by: Feareh on May 09, 2013, 02:05:03 am
 It is still possible to get a semi transparent with a solid preset. You can use the transparent coding still, but still color in the solid parts you want. When you are wanting to put a transparent effect then erase that part out but make another layer over that with the same kind of color as the rest of your solid preset. The lower the opacity so you slightly see the default background
Here is a tutorial on transparent preset if you wanted to know:Feareh's Tutorial:Transparent (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=34786.0)
Title: Re: Semi-transparent legs with solid body?
Post by: Elohi Adanvdo on May 10, 2013, 01:08:55 am
It is still possible to get a semi transparent with a solid preset. You can use the transparent coding still, but still color in the solid parts you want. When you are wanting to put a transparent effect then erase that part out but make another layer over that with the same kind of color as the rest of your solid preset. The lower the opacity so you slightly see the default background
Here is a tutorial on transparent preset if you wanted to know:Feareh's Tutorial:Transparent (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=34786.0)

Ah, thankees. It makes a bit of sense, so I'll try it out. If it doesn't work, then I'd like for you to 'redline' the coding for me...because I see that the invisibility may interfere with my glowing codes. :I
Title: Re: Semi-transparent legs with solid body?
Post by: Feareh on May 10, 2013, 03:07:25 am
 Just so you know that if you are introducing another coding to your already transparent coding then it may freeze up. Only one part of a preset is suppose to have one single coding unless you use very advance coding. The coding you have looks like it doesn't support double posting coding such as transparent and glowing together. The transparent coding and glowing coding that you have only supports that kind. But however you can have one side transparent, while the other side stays glowing.

So just to say, Preset sides are only allowed to have one set of coding unless you use a more advance coding.
Title: Re: Semi-transparent legs with solid body?
Post by: Elohi Adanvdo on May 10, 2013, 08:19:33 pm
Just so you know that if you are introducing another coding to your already transparent coding then it may freeze up. Only one part of a preset is suppose to have one single coding unless you use very advance coding. The coding you have looks like it doesn't support double posting coding such as transparent and glowing together. The transparent coding and glowing coding that you have only supports that kind. But however you can have one side transparent, while the other side stays glowing.

So just to say, Preset sides are only allowed to have one set of coding unless you use a more advance coding.

UUUUGH |[

Can you show me the advanced coding to have double effects? Or does Ogre not support that kind of coding?
Title: Re: Semi-transparent legs with solid body?
Post by: Feareh on May 10, 2013, 08:25:45 pm
 It does support it, but usually double coding in a preset will make things harder in Feral Heart such as lag. And unfortunately some coding that are made to have two different effects aren't really for giving out. All I know that there is such codes, but I personally know none.

Just stick with regular single coding for now, Im sure the preset you are making will look amazing anyways.
NOTE: Just a little graphic cheat, you can easily have a glowing look when you put a blur over something you want to be glowey.
Title: Re: Semi-transparent legs with solid body?
Post by: Elohi Adanvdo on May 11, 2013, 04:58:38 pm
It does support it, but usually double coding in a preset will make things harder in Feral Heart such as lag. And unfortunately some coding that are made to have two different effects aren't really for giving out. All I know that there is such codes, but I personally know none.

Just stick with regular single coding for now, Im sure the preset you are making will look amazing anyways.
NOTE: Just a little graphic cheat, you can easily have a glowing look when you put a blur over something you want to be glowey.

Yes, I know of the 'graphic cheat', but I need it to glow in the dark. Also (mainly out of curiosity), why aren't such advanced codes handed out? Are they considered cheats/hacks/illegal in some way, or is it mainly because of their difficulty/possibility of ruining the game?

(Also, now that I look at the link that I shared, the user IS using to different codes on the preset's bdy area; transparency and ambient lighting/glow-in-the-dark.)
Title: Re: Semi-transparent legs with solid body?
Post by: Feareh on May 12, 2013, 03:54:24 pm
Well if you just want the glowing effect then try this coding out
Quote
material preset_4_bodyMatL
{
receive_shadows on
technique 1
{
pass
{
fragment_program_ref WingModColour_PS
{
param_named colorMod1 float4 0.50 0.50 0.75 0.25
}
texture_unit
{
texture Texture.jpg
tex_coord_set 0
}
cull_hardware none
cull_software none
depth_write off
scene_blend add
}
}
technique 2
{
pass
{
emissive 1.0 1.0 1.0 1.0
texture_unit
{
Texture.jpg
colour_op_ex modulate src_texture src_manual 0.105 0.175 0.135 0.25
}
cull_hardware none
cull_software none
depth_write off
scene_blend add
}
}
}
Also reason for that is the more advance coding arnt really public is they were made by other users, and they have there rights to make there coding public or not.
Title: Re: Semi-transparent legs with solid body?
Post by: Elohi Adanvdo on May 15, 2013, 01:37:24 am
Well if you just want the glowing effect then try this coding out

Hmm.. that's a bit interesting... but silly. Because what if other users 'accidentally' create the same code themselves? It just doesn't seem legit that people could own a code for a program when someone could just stumble upon it themselves. Especially if it's a simple way of coding.

Also, I wanted transparent+glow, and I know how to do both now... at the same time. No lag whatsoever. Also IowntHeCODEANDNOYOUCAN'THAVEIT XD (lol, just kidding)