Feral Heart

Help & Guidance => Game Help => Topic started by: OreoHeroz on November 29, 2013, 04:31:16 pm

Title: Two-sided Preset?
Post by: OreoHeroz 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:
(http://i41BannedImageSite/20zycdw.png)

This is what happens in the FH game:
(http://i40BannedImageSite/335ckue.png)

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

Title: Re: Two-sided Preset?
Post by: Shally 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]
Title: Re: Two-sided Preset?
Post by: OreoHeroz on November 29, 2013, 05:08:41 pm
For some reason it shows up like this :

(http://i39BannedImageSite/e05rv4.png)

It's transparent now in a way
Title: Re: Two-sided Preset?
Post by: ~Stargazer~ on November 29, 2013, 05:37:26 pm
I'm not a preset expert but see if this (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=31792.0) helps you in any way.
Title: Re: Two-sided Preset?
Post by: Feareh 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
Title: Re: Two-sided Preset?
Post by: Shally 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]