Author Topic: Preset issues.  (Read 842 times)

Offline RottenLemon

  • Curious Wanderer
  • *
  • Posts: 37
  • Country: us
  • Floof-O-Meter: 0
  • Tiny lamb noises.
    • View Profile
Preset issues.
« on: May 29, 2018, 02:45:50 pm »
Hello! I'm a bit of a newbie when it comes to presets, but seems I've gotten myself in to a pickle. So, I'm making a preset for my zombie oc, Kevin, and he requires two sides and his ear has a bit missing so I wanted to do transparency on that side of the head. Well I got the codes and stuff with help from a friend(Which, I think are right?...) and everything is fine until I go in to preset tester. It's marshmallow heads/tails/manes. The body is fine though? I dunno what I'm doing wrong. Probably a very easy fix though

Image (warning, large): https://prnt.sc/jo3szb


and Code, of course:
Code: [Select]
material preset_9_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9body.jpg
}
}
}
}
material preset_9_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9body2.jpg
}
}
}
}
material preset_9_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
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
material preset_9_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9head.jpg
}
}
}
}
material preset_9_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye.jpg
}
}
}
}
material preset_9_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye2.jpg
}
}
}
}
material preset_9_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_9tail.jpg
}
}
}
}
material preset_9_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_9mane.png
                        }
                }
        }
}
I don't use the forum haha.

[Sits in the same corner, on the same character, doing the same nothing in Grounds 24/7]

Offline yourlocalcrow

  • Dedicated Supporter
  • ***
  • Posts: 412
  • Country: us
  • Floof-O-Meter: 43
  • they/them
    • View Profile
    • my deviantArt
Re: Preset issues.
« Reply #1 on: May 29, 2018, 03:44:42 pm »
Have you made the head/tail/mane yet? And if you have, have you double checked that the names and file types match up? I just have to ask, since you haven't specified. ^^'

If you've already done that, I'll be turning back to your code. You're missing a few brackets going down at the end.
Your code:
Code: [Select]
material preset_9_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
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_9head2.png
tex_address_mode wrap
filtering trilinear
}
}

VS how it should look:
Code: [Select]
material preset_9_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
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
}
}

And if you're still having trouble with that, I found a much simpler transparency code that you can use!
Code: [Select]
material preset_#_bodyMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_#body.png
   }
  }
 }
}

Hope this helps!

Offline RottenLemon

  • Curious Wanderer
  • *
  • Posts: 37
  • Country: us
  • Floof-O-Meter: 0
  • Tiny lamb noises.
    • View Profile
Re: Preset issues.
« Reply #2 on: May 29, 2018, 10:30:13 pm »
Have you made the head/tail/mane yet? And if you have, have you double checked that the names and file types match up? I just have to ask, since you haven't specified. ^^'

If you've already done that, I'll be turning back to your code. You're missing a few brackets going down at the end.
Your code:
Code: [Select]
material preset_9_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
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_9head2.png
tex_address_mode wrap
filtering trilinear
}
}

VS how it should look:
Code: [Select]
material preset_9_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
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
}
}

And if you're still having trouble with that, I found a much simpler transparency code that you can use!
Code: [Select]
material preset_#_bodyMatL
{
 technique
 {
  pass
  {
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_#body.png
   }
  }
 }
}

Hope this helps!



It worked! Thank you very much.
I don't use the forum haha.

[Sits in the same corner, on the same character, doing the same nothing in Grounds 24/7]

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset issues.
« Reply #3 on: May 30, 2018, 04:36:56 am »
Locking this topic up as the problem has been resolved.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.