Author Topic: Preset help? Please?  (Read 1952 times)

Offline Hawkspot2

  • Curious Wanderer
  • *
  • Posts: 11
  • Floof-O-Meter: 1
    • View Profile
Preset help? Please?
« 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.

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: Preset help? Please?
« Reply #1 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.
« Last Edit: July 16, 2018, 09:22:30 pm by Wolvie »
stinky dog coming through, don't mind me!

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Preset help? Please?
« Reply #2 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
}
}
}
}
Farewell everyone<3

Offline Hawkspot2

  • Curious Wanderer
  • *
  • Posts: 11
  • Floof-O-Meter: 1
    • View Profile
Re: Preset help? Please?
« Reply #3 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
}
}
}
}



Offline Hawkspot2

  • Curious Wanderer
  • *
  • Posts: 11
  • Floof-O-Meter: 1
    • View Profile
Re: Preset help? Please?
« Reply #4 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
}
}
}
}

Lucius

  • Guest
Re: Preset help? Please?
« Reply #5 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
}
}
}
}
« Last Edit: July 16, 2018, 09:44:53 pm by Lucius »

Offline Hawkspot2

  • Curious Wanderer
  • *
  • Posts: 11
  • Floof-O-Meter: 1
    • View Profile
Re: Preset help? Please?
« Reply #6 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
}
}
}
}

Lucius

  • Guest
Re: Preset help? Please?
« Reply #7 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.

Offline Hawkspot2

  • Curious Wanderer
  • *
  • Posts: 11
  • Floof-O-Meter: 1
    • View Profile
Re: Preset help? Please?
« Reply #8 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
« Last Edit: July 16, 2018, 10:20:45 pm by Hawkspot2 »

Lucius

  • Guest
Re: Preset help? Please?
« Reply #9 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)

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.
« Last Edit: July 16, 2018, 10:36:32 pm by Lucius »