Feral Heart

Help & Guidance => Game Help => Topic started by: Hawkspot2 on July 16, 2018, 08:38:48 pm

Title: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 08:38:48 pm
Okay, so I made this preset a little while ago, and I just edited it to have an invisible leg. I went to try the preset, never noticed the error until I exported it. I have sence checked the invisibility coding, and from what I can tell it is fine. But this error is still present. Any advice?

https://gyazo.com/8b74ac9c607a0d2d4dbeaa05ce9fe229
https://gyazo.com/79963babb7da9be23aa6fede035420b0
https://gyazo.com/a8ad436badcfaf47911d7175587c8dc3
https://gyazo.com/8650dccc2f8f62ecaf601a57896028ab
https://gyazo.com/5526bf5869a3ea9822b3110277ac5157
Sorry for all the pictures.
Title: Re: Preset help? Please?
Post by: Kastilla on July 16, 2018, 09:19:23 pm
Can you please send images of the .png file and the coding using the [*code]? It will be easier to view the code that way, rather than a picture. And, it seems there is a random floating texture there. I want to make sure.
Title: Re: Preset help? Please?
Post by: Kerriki on July 16, 2018, 09:22:43 pm
You can also try using this code ^^

Code: [Select]
material preset_#_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#body.png
}
}
}
}
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 09:24:10 pm
Sure! I hope this helps!
Code: [Select]
material preset_4_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 preset_4body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_4body.png
}
}
}
}
material preset_4_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 preset_4bodyR.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture preset_4body.png
}
}
}
}
material preset_4_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 preset_4head.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture preset_4head.png
}
}
}
}
material preset_4_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 preset_4head.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture preset_4head.png
}
}
}
}
material preset_4_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 preset_4eye.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture preset_4eye.png
}
}
}
}
material preset_4_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 preset_4eyes.png
                         tex_address_mode wrap
                         filtering trilinear
}
texture preset_4eyes.png
}
}
}
}
material preset_4_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 preset_4tail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
texture preset_4tail.png
}
}
}
}
material preset_4_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture Preset_4Mane.png
}
}
}
}


Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 09:29:55 pm
I just tried that, and sadly it did not work. Dx
You can also try using this code ^^

Code: [Select]
material preset_#_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#body.png
}
}
}
}
Title: Re: Preset help? Please?
Post by: Lucius on July 16, 2018, 09:42:22 pm
Cleaned up your code to the best of my abilities. I hope it will provide some help.

Code: [Select]
material preset_4_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 preset_4body.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4bodyR.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4eyes.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4tail.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture Preset_4Mane.png
}
}
}
}
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 09:48:03 pm
Thank you so much! Though that did not fix it. Dx
Cleaned up your code to the best of my abilities. I hope it will provide some help.

Code: [Select]
material preset_4_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 preset_4body.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4bodyR.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4eyes.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_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 preset_4tail.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture Preset_4Mane.png
}
}
}
}
Title: Re: Preset help? Please?
Post by: Lucius on July 16, 2018, 10:16:45 pm
Alright, I think I know what's going on. I don't believe it's the coding, but the mesh. There appears to be something that looks like an artifact on the paw of the feline model which causes this problem; this issue isn't present on the canine model.

I don't know if it's fixable, but I'll try to find what the UVs are for this portion of the paw and let you know if you can fix it by erasing them.
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 10:18:44 pm
Okay thank you! It seems to be on the 'wrist' part though. If that makes sense.
https://gyazo.com/59fe9c4563a1a0141d72c36ffe851bbb
Title: Re: Preset help? Please?
Post by: Lucius on July 16, 2018, 10:31:59 pm
I'm so sorry, but it doesn't look like it can be fixed without modifying the mesh.

Spoiler (Large Image)
(https://i.imgur.com/QJx2VKm.png)

As you can see from the left side, there is a planar triangle inside the paw of the feline model. The UVs on the right side show that this small triangle has a large area of the body assigned to it.

I know this isn't the answer you were expecting, and I am sorry that this isn't something that's easily fixable.

Edit: What you could do would be to switch the left and right sides of your body in the material file. That way, your "invisible" leg would be on the left side. I don't think there were any artifacts in the left paw that would cause problems.
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 10:37:26 pm
This confuses me even more to be honest. I've made presets with missing limbs in the past, and I have never come to this complication. So, you're saying it's the model itself? Would it be different if the invisibility part was on the other side of the body?
Title: Re: Preset help? Please?
Post by: Lucius on July 16, 2018, 10:41:53 pm
So, you're saying it's the model itself? Would it be different if the invisibility part was on the other side of the body?

Yes. Only the front paw on the right side has this problem. All of the other 3 legs are fine.
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 10:46:40 pm
Okay, I'll try switching preset sides. Thank you. ^^
Title: Re: Preset help? Please?
Post by: Hawkspot2 on July 16, 2018, 10:48:25 pm
My gosh it worked! You are a life saver! Thank you so much!
Title: Re: Preset help? Please?
Post by: Kerriki on July 17, 2018, 05:51:33 am
Have fun with your preset, I'll be locking this now ^^