Feral Heart

Help & Guidance => Game Help => Topic started by: MementoMors on August 30, 2017, 03:22:35 am

Title: More preset problems...
Post by: MementoMors on August 30, 2017, 03:22:35 am
I'm making a preset with transparent eyelids, but the left eyelid is still visible.

(http://i.imgur.com/Fyp6EYZ.png)

The code for both eyes looks exactly the same to me, so I'm not sure what's wrong.

Code: [Select]
material preset_10_bodyMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidbody.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow1.png
   }
  }
 }
}
material preset_10_bodyMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidbody.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow1.png
   }
  }
 }
}
material preset_10_headMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidhead.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow4.png
   }
  }
 }
}
material preset_10_headMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidhead.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow4.png
   }
  }
 }
}
material preset_10_eyeMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squideye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow3.png
   }
  }
 }
}
material preset_10_eyeMatR
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squideye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow3.png
   }
  }
 }
}
material preset_10_tailMat
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_10tail.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_10tailglow.png
   }
  }
 }
}
material preset_10_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_10mane.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_10maneglow.png
   }
  }
 }
}
material preset_10_equipMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidequip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow2.png
   }
  }
 }
}
material preset_10_equipMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidequip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow2.png
   }
  }
 }
}
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 03:39:35 am
I'm making a preset with transparent eyelids, but the left eyelid is still visible.

(http://i.imgur.com/Fyp6EYZ.png)

The code for both eyes looks exactly the same to me, so I'm not sure what's wrong.

Code: [Select]
material preset_10_bodyMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidbody.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow1.png
   }
  }
 }
}
material preset_10_bodyMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidbody.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow1.png
   }
  }
 }
}
material preset_10_headMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidhead.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow4.png
   }
  }
 }
}
material preset_10_headMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidhead.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow4.png
   }
  }
 }
}
material preset_10_eyeMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squideye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow3.png
   }
  }
 }
}
material preset_10_eyeMatR
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squideye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow3.png
   }
  }
 }
}
material preset_10_tailMat
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_10tail.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_10tailglow.png
   }
  }
 }
}
material preset_10_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_10mane.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_10maneglow.png
   }
  }
 }
}
material preset_10_equipMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidequip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow2.png
   }
  }
 }
}
material preset_10_equipMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture squidequip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture squidglow2.png
   }
  }
 }
}




Try renaming one of the files / saving it as a different eye file name and see if it does the same thing. Sometimes closing and then opening up the game does the trick because it could be a little glitch.
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 03:56:56 am
I'm not sure what you mean. I made copies of the eye files and renamed them, then changed the code to match. The eyes ended up with the black and yellow missing texture. Also, resetting the game doesn't help.
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 04:08:42 am
I'm not sure what you mean. I made copies of the eye files and renamed them, then changed the code to match. The eyes ended up with the black and yellow missing texture. Also, resetting the game doesn't help.


When I said to rename at least one of the eye file ( in your preset / material file ) just add like a number at the end. But once you do that, you need to make sure they everything matches, including the file name ( picture ) for the preset as well. Changing just the material file won't work. The black & white usually means there was an error in the coding. So make sure that everything is matching correctly.
Do you have pictures that you can show that's in your preset folder for a visual?
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 04:20:16 am
Okay. I added a one to the eye image, in the code and in the folder, but it didn't help so I changed it back.

These are the images in my folder right now:

(http://i.imgur.com/O5VbVBb.png)

The code is the same as it was when i first posted it.
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 04:30:26 am
Okay. I added a one to the eye image, in the code and in the folder, but it didn't help so I changed it back.

These are the images in my folder right now:

(http://i.imgur.com/O5VbVBb.png)

The code is the same as it was when i first posted it.




Try copying the coding onto a blank notepad and name it the exact same thing as the original material and see if that helps. ( Make sure you don't have both material files in the same folder and see if that does anything.
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 04:37:54 am
That didn't help either.
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 04:48:47 am
That didn't help either.



My other option would to see if it does the same thing in another preset folder..
Also, try keeping the 'preset_10body.png.' etc just in case that's causing it despite it working so far currently. I've rarely changed that part in my material folder. I try to name everything similar. As I said, make sure everything is matching to a 'T.'
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 05:14:30 am
Alright, I moved everything to a different folder and changed the code. I also renamed everything to be 'preset_9' instead of 'squid'.
So now, the images are like this:

(http://i.imgur.com/HkRXD3P.png)

And the code is like this:

Code: [Select]
material preset_9_bodyMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9body.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9bodyglow.png
   }
  }
 }
}
material preset_9_bodyMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9body.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9bodyglow.png
   }
  }
 }
}
material preset_9_headMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9head.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9headglow.png
   }
  }
 }
}
material preset_9_headMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9head.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9headglow.png
   }
  }
 }
}
material preset_9_eyeMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9eye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9eyeglow.png
   }
  }
 }
}
material preset_9_eyeMatR
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9eye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9eyeglow.png
   }
  }
 }
}
material preset_9_tailMat
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9tail.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9tailglow.png
   }
  }
 }
}
material preset_9_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_9mane.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9maneglow.png
   }
  }
 }
}
material preset_9_equipMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9equip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9equipglow.png
   }
  }
 }
}
material preset_9_equipMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9equip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9equipglow.png
   }
  }
 }
}

And the problem is still there.
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 05:26:05 am
Alright, I moved everything to a different folder and changed the code. I also renamed everything to be 'preset_9' instead of 'squid'.
So now, the images are like this:

(http://i.imgur.com/HkRXD3P.png)

And the code is like this:

Code: [Select]
material preset_9_bodyMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9body.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9bodyglow.png
   }
  }
 }
}
material preset_9_bodyMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9body.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9bodyglow.png
   }
  }
 }
}
material preset_9_headMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9head.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9headglow.png
   }
  }
 }
}
material preset_9_headMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9head.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9headglow.png
   }
  }
 }
}
material preset_9_eyeMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9eye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9eyeglow.png
   }
  }
 }
}
material preset_9_eyeMatR
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9eye.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9eyeglow.png
   }
  }
 }
}
material preset_9_tailMat
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9tail.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9tailglow.png
   }
  }
 }
}
material preset_9_maneMat
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_9mane.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9maneglow.png
   }
  }
 }
}
material preset_9_equipMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9equip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9equipglow.png
   }
  }
 }
}
material preset_9_equipMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5 1.0
   texture_unit
   {
    texture preset_9equip.png
   }
  }
  pass
  {
   emissive 1.0 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture preset_9equipglow.png
   }
  }
 }
}

And the problem is still there.




Hm... then I'm stumped. Usually when something like that happens, I just change it out or maybe even change renders.. Sometimes the problem goes away after I export it. Sorry I wasn't much help, I'm probably overlooking something minor ...
Good Luck on finding a solution though o;
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 05:34:22 am
Yeah, I really don't know what's going on...

Thanks for trying to help, though. I really appreciate it!
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 05:39:30 am
Yeah, I really don't know what's going on...

Thanks for trying to help, though. I really appreciate it!




Same, this is really bizarre. Lol, but anytime. c;
Title: Re: More preset problems...
Post by: Kuri on August 30, 2017, 05:53:53 am
Ok...  where it has the "Alpha_blend" for the eye glow, is that supposed to glow bright?  If so you might try changing it to "Scene_blend add"

Or if the images are .png (guessing they are?) i noticed if they're compressed at all the transparency takes on the taint of the color, but you'd think that both eyelids would do it..

  i had a similar visibility problem with eyes once.  In daylight they'd change which side was visible depending on where the light was hitting it. Underground they'd remain the same side visible, other not.  Try testing it in different environments and see that happens?
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 04:44:45 pm
I tried looking at it in different lighting, but the eyelid stays on the left eye no matter what.

Then I changed 'alpha_blend' to 'add' for the eyes, and while I like the glow better that way, you can see the other eyelid now...

(http://i.imgur.com/qQEy12i.png)
Title: Re: More preset problems...
Post by: Hakumi on August 30, 2017, 05:43:59 pm
I tried looking at it in different lighting, but the eyelid stays on the left eye no matter what.

Then I changed 'alpha_blend' to 'add' for the eyes, and while I like the glow better that way, you can see the other eyelid now...

(http://i.imgur.com/qQEy12i.png)



Well, from what I saw in the picture a couple of posts back, you still left the eyelid on the preset. That thin black strip ( ? ) That's the eyelid. If you don't want it, then erase that part as well so that the eye itself remains.
Title: Re: More preset problems...
Post by: MementoMors on August 30, 2017, 06:06:46 pm
I erased the rest of the eyelid, but it still looks the same in-game.