Author Topic: Preset white Body and Tail  (Read 5406 times)

Offline Bloodhunter1998

  • Curious Wanderer
  • *
  • Posts: 33
  • Floof-O-Meter: 0
    • View Profile
Re: Preset white Body and Tail
« Reply #10 on: May 06, 2016, 09:54:04 am »
Seems like your coding file has gone a bit weird and that's caused an error in your preset. I'll give you the .mat file I use for my presets, but this will mean you'll possibly have to rename your .png files to match with the new .mat file.

Code: [Select]
material preset_11_bodyMatL

{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11bodyL.png
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11body.png
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11headL.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11eyeL.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
alpha_rejection greater_equal 1128
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
ambient 2.0 2.0 2.0
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 250
texture_unit
{
texture preset_11mane.png
}
}
}
}
alpha_rejection greater_equal 1128 im a little bit confused about that?

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset white Body and Tail
« Reply #11 on: May 06, 2016, 10:03:28 am »
I believe that part will have to deal with the transparency of the preset c:
At least the 'alpha_rejection' part of it.

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Bloodhunter1998

  • Curious Wanderer
  • *
  • Posts: 33
  • Floof-O-Meter: 0
    • View Profile
Re: Preset white Body and Tail
« Reply #12 on: May 06, 2016, 10:14:10 am »
I believe that part will have to deal with the transparency of the preset c:
At least the 'alpha_rejection' part of it.
ah ok thx but should it be in the coding?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset white Body and Tail
« Reply #13 on: May 06, 2016, 01:13:45 pm »
1128 is not a valid value for the alpha_rejection line.
So don't worry about adding that.

Try replacing your code with this:
Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11body.png
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_11mane.png
}
}
}
}
material preset_11_equipMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}

Offline Bloodhunter1998

  • Curious Wanderer
  • *
  • Posts: 33
  • Floof-O-Meter: 0
    • View Profile
Re: Preset white Body and Tail
« Reply #14 on: May 07, 2016, 09:03:17 am »
1128 is not a valid value for the alpha_rejection line.
So don't worry about adding that.

Try replacing your code with this:
Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11body.png
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_11mane.png
}
}
}
}
material preset_11_equipMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}
it works thank you so much :D but is it normal that half of my body looks white?

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset white Body and Tail
« Reply #15 on: May 07, 2016, 09:09:51 am »
Based off of the coding, it seems that the animation is on one side of the body only. Just add it to the other part so it'll be on both sides and it should work c;

Where it says 'texture preset_11body.png' Copy the coding from the right side of the body material and paste it onto the left side of the body material and save. Hopefully it should fix that problem ~

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Bloodhunter1998

  • Curious Wanderer
  • *
  • Posts: 33
  • Floof-O-Meter: 0
    • View Profile
Re: Preset white Body and Tail
« Reply #16 on: May 07, 2016, 09:26:05 am »
i will try my best

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset white Body and Tail
« Reply #17 on: May 07, 2016, 02:39:34 pm »
Aye, I thought maybe you wanted the other side of the body to be a different, static image. xD

If you wanted them to be the same, Hakumi is correct. (+Floof)

You seem a tad hesitant on how the code works...
You'll have to pay attention to what comes after each material section, the first one being bodyMatL, is referring to the left side of the body, which is white because that section is looking for preset_11body.png, which is an invalid file.

You can just copy the bracketed section from the bodyMatR section, as stated above, or here's a fresh code with the fix.

Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_11mane.png
}
}
}
}
material preset_11_equipMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}

Either way, hope you get it working. cx

Offline Bloodhunter1998

  • Curious Wanderer
  • *
  • Posts: 33
  • Floof-O-Meter: 0
    • View Profile
Re: Preset white Body and Tail
« Reply #18 on: May 07, 2016, 06:04:22 pm »
Aye, I thought maybe you wanted the other side of the body to be a different, static image. xD

If you wanted them to be the same, Hakumi is correct. (+Floof)

You seem a tad hesitant on how the code works...
You'll have to pay attention to what comes after each material section, the first one being bodyMatL, is referring to the left side of the body, which is white because that section is looking for preset_11body.png, which is an invalid file.

You can just copy the bracketed section from the bodyMatR section, as stated above, or here's a fresh code with the fix.

Code: [Select]
material preset_11_bodyMatL
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_bodyMatR
{
technique
{
pass
{
texture_unit
{
anim_texture n1.png n2.png n3.png n4.png n5.png n6.png n7.png n8.png n9.png n10.png n11.png n12.png 1
}
}
}
}
material preset_11_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11head.png
}
}
}
}
material preset_11_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_11eye.png
}
}
}
}
material preset_11_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_11tail.png
}
}
}
}
material preset_11_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_11mane.png
}
}
}
}
material preset_11_equipMatL
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}
material preset_11_equipMatR
{
technique
{
pass
{
texture_unit
{
texture preset_11equip.png
}
}
}
}

Either way, hope you get it working. cx
i put it in my coding but for some reason the body and the tail turns into a marshmellow

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset white Body and Tail
« Reply #19 on: May 07, 2016, 08:26:12 pm »
Did you replace the whole file with that one?
Not sure what would be causing that if the other one worked...

You're welcome to zip up the preset's folder and upload it somewhere and PM it to me, or email it to me. I can try to get it working a little better that way.
Can do a site like https://www.mediafire.com/ or just email me at [email protected] if you'd like.