Author Topic: Two-sided Preset?  (Read 2252 times)

Offline OreoHeroz

  • Taco-Hat
  • Elder Grey Pelt
  • ****
  • Posts: 3,225
  • Country: 00
  • Floof-O-Meter: 142
    • View Profile
Two-sided Preset?
« on: November 29, 2013, 04:31:16 pm »
amg. I'm sorry for all the questions. I'm so nooby at this. ;w;

I'm trying to make a two-sided preset (or however it's called) but I'm having some trouble. I just made something simple (before I change it) to see if it works or not. Here's the code:
Code: [Select]
material preset_2_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2body.jpg
}
}
}
}
material preset_2_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_2body.jpg
}
}
}
}
material preset_2_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2head.jpg
}
}
}
}
material preset_1_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_1headL.png
}
}
}
}
material preset_1_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_1headR.png
}
}
}
}
material preset_2_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_2tail.jpg
}
}
}
}
material preset_2_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_2mane.png
}
}
}
}
material wingMatL
{
technique 1
{
pass
{
lighting off
cull_software none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_2wingshade.jpg
}


}
}
}

And here's the quick preset body:

This is what happens in the FH game:

The body doesn't work but the face does (and somehow the tail is made, even though I only did the body)
So, could someone please tell me what I did wrong here? I think it's probably the code owo

I also don't want to make any thread about this...but I was thinking of changing my screen name. I don't like it (idk what got into me when I made it)...any suggestions? =o

Thank you<3


Offline Shally

  • Community Champion
  • ****
  • Posts: 2,049
  • Country: se
  • Floof-O-Meter: 220
    • View Profile
Re: Two-sided Preset?
« Reply #1 on: November 29, 2013, 04:42:47 pm »
You need to name the two sided preset saving diffrently, for example; Right side body: preset_2bodyR.jpg, and Left side body: preset_2bodyL.jpg on the left side, and also change that in the codes. Just as you've done with the head.

Code:

Code: [Select]
material preset_2_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2bodyL.jpg
}
}
}
}
material preset_2_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_2bodyR.jpg
}
}
}
}
material preset_2_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2headL.jpg
}
}
}
}
material preset_1_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_1headL.png
}
}
}
}
material preset_1_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_1headR.png
}
}
}
}
material preset_2_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_2tail.jpg
}
}
}
}
material preset_2_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_2mane.png
}
}
}
}
material wingMatL
{
technique 1
{
pass
{
lighting off
cull_software none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_2wingshade.jpg
}


}
}
}[/spoiler]
« Last Edit: November 29, 2013, 09:56:29 pm by ~Shallow~ »

Offline OreoHeroz

  • Taco-Hat
  • Elder Grey Pelt
  • ****
  • Posts: 3,225
  • Country: 00
  • Floof-O-Meter: 142
    • View Profile
Re: Two-sided Preset?
« Reply #2 on: November 29, 2013, 05:08:41 pm »
For some reason it shows up like this :



It's transparent now in a way

Offline ~Stargazer~

  • Ancient Silver Mane
  • *****
  • Posts: 4,041
  • Country: 00
  • Floof-O-Meter: 78
  • "Helloooo? Trickster."
    • View Profile
    • My deviantART
Re: Two-sided Preset?
« Reply #3 on: November 29, 2013, 05:37:26 pm »
I'm not a preset expert but see if this helps you in any way.

Preset Download
Will be less active until October 7th.

Offline Feareh

  • The Jaguar Artist
  • Ancient Silver Mane
  • *****
  • Posts: 4,026
  • Country: us
  • Floof-O-Meter: 195
  • Where is the Walrus Species?
    • View Profile
Re: Two-sided Preset?
« Reply #4 on: November 29, 2013, 06:12:06 pm »
There are two ways you can get that sort of look.
1) Your coding is wrong (which seems right to me)
2) The file name you saved it as is wrong or the file itself is corrupted.
Did you made sure that you were saving it as a jpg?
Also if you want two different sides then you should name the files differently such as:
preset_6bodyL
preset_6bodyR
I Stalk from time to time...I have moved on to other things but do miss this place. Good times
Add me on discord:
Bakujio 🐺#7358

Offline Shally

  • Community Champion
  • ****
  • Posts: 2,049
  • Country: se
  • Floof-O-Meter: 220
    • View Profile
Re: Two-sided Preset?
« Reply #5 on: November 29, 2013, 09:52:52 pm »
Try this code:

Code: [Select]
material preset_2_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2bodyL.jpg
}
}
}
}
material preset_2_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_2bodyR.jpg
}
}
}
}
material preset_2_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_2headL.jpg
}
}
}
}
material preset_2_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_2headR.jpg
}
}
}
}
material preset_2_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_2eye.jpg
}
}
}
}
material preset_2_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_2tail.jpg
}
}
}
}
material preset_2_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_2mane.jpg
                        }
                }
        }
}

Make sure you've saved you GIMP/Photoshop files as JPG - if you save them as PNG and the coding is in JPG it wont recognize the file, and also makesure you save the file with the same name as the coding = preset2bodyL.jpg etc.
[/i]
« Last Edit: November 29, 2013, 09:55:19 pm by ~Shallow~ »