Author Topic: Preset not working [ L O C K ]  (Read 5474 times)

Offline Vwang

  • Finest Floof
  • ***
  • Posts: 937
  • Country: 00
  • Floof-O-Meter: 38
    • View Profile
Re: Preset not working
« Reply #20 on: August 17, 2016, 11:37:53 pm »
Wow, my brain is not working as of late.

Yeah, you don't even need the alpha_rejection lines, as NaruWolf said. (+fluff)

I forgot since it produces the same effect within my game, and I always added it as a baseline. ^^'

I apologise.
oh geez. And again.  my preset is yellow and black

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset not working
« Reply #21 on: August 18, 2016, 02:46:09 am »
Oh good.

Have you tried switching the Rendering Subsystem, just to check?

Offline Vwang

  • Finest Floof
  • ***
  • Posts: 937
  • Country: 00
  • Floof-O-Meter: 38
    • View Profile
Re: Preset not working
« Reply #22 on: August 20, 2016, 03:27:14 pm »
Oh good.

Have you tried switching the Rendering Subsystem, just to check?
I dont know if the renderjng subsystem has helped because it would always make my game crash and might be no hope of returning it no matter what if i switch back from trying the other rendering subsystem

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset not working
« Reply #23 on: August 21, 2016, 11:03:08 pm »
Could you upload the files to mediafire so I could take a look then?

Offline Vwang

  • Finest Floof
  • ***
  • Posts: 937
  • Country: 00
  • Floof-O-Meter: 38
    • View Profile
Re: Preset not working
« Reply #24 on: August 21, 2016, 11:29:41 pm »
Could you upload the files to mediafire so I could take a look then?
Alright *PM'D*

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset not working
« Reply #25 on: August 22, 2016, 12:02:35 am »
Alright, so. A few things. This is how the preset currently displays CORRECTLY in-game:

You might see a few issues here. The head works fine, but I'm not sure that's how you wanted the body and tail to turn out.

The problem is that your files don't match what the code is looking for. For example, both sides of your body are using this code, which I provided most of as a template:
Quote
material EXAMPLE
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1
         texture_unit
         {
            texture scroll.png
            scroll_anim 1.0 1.0
         }
      }
      pass
      {
         ambient 0.5 0.5 0.5 1
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_11body.png
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1
         scene_blend alpha_blend
         texture_unit
         {
            texture glow.png
         }
      }
   }
}

The problem is that your files don't match this. This was a template, and you're meant to make alterations. Notice I highlighted some things in red. The code is looking for and needs the preset_11body image to be a .png. Yours is a .jpg.

The .jpg format does not support transparency, which makes the black areas, and disallows you to see through to the underneath layer. The image MUST be a .png to create the scroll areas underneath.

The second issue is that you have no file by the name of glow.png. It's trying to layer something on top that doesn't even exist, which will result in the preset displaying white.

-

This code works fine, as long as you fix the issues.
Until then, if you're curious, my working code can be seen here:
http://pastebin.com/yTpDtD8Z

Let me know if you need anything more.

Offline Vwang

  • Finest Floof
  • ***
  • Posts: 937
  • Country: 00
  • Floof-O-Meter: 38
    • View Profile
Re: Preset not working
« Reply #26 on: August 22, 2016, 11:50:58 pm »
Alright, so. A few things. This is how the preset currently displays CORRECTLY in-game:

You might see a few issues here. The head works fine, but I'm not sure that's how you wanted the body and tail to turn out.

The problem is that your files don't match what the code is looking for. For example, both sides of your body are using this code, which I provided most of as a template:
Quote
material EXAMPLE
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5 1
         texture_unit
         {
            texture scroll.png
            scroll_anim 1.0 1.0
         }
      }
      pass
      {
         ambient 0.5 0.5 0.5 1
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_11body.png
         }
      }
      pass
      {
         emissive 1.0 1.0 1.0 1
         scene_blend alpha_blend
         texture_unit
         {
            texture glow.png
         }
      }
   }
}

The problem is that your files don't match this. This was a template, and you're meant to make alterations. Notice I highlighted some things in red. The code is looking for and needs the preset_11body image to be a .png. Yours is a .jpg.

The .jpg format does not support transparency, which makes the black areas, and disallows you to see through to the underneath layer. The image MUST be a .png to create the scroll areas underneath.

The second issue is that you have no file by the name of glow.png. It's trying to layer something on top that doesn't even exist, which will result in the preset displaying white.

-

This code works fine, as long as you fix the issues.
Until then, if you're curious, my working code can be seen here:
http://pastebin.com/yTpDtD8Z

Let me know if you need anything more.
Thanks! this can be locked.

Offline Warriorstrike

  • . "The truth is often what we make of it; you heard what you wanted to hear, believed what you wanted to believe."
  • Ancient Silver Mane
  • *****
  • Posts: 4,221
  • Country: us
  • Floof-O-Meter: 346
  • . Remember… the Force will be with you. Always.
    • warriorstrike
    • warriorstrike
    • View Profile
    • My Tumblr
Re: Preset not working [ L O C K ]
« Reply #27 on: August 23, 2016, 12:17:00 am »
Happy to see that the issue was resolved. Locking this up for you now.

If you define yourself by the power to take life, the desire to dominate, to possess… then you have nothing.