Help & Guidance => Game Help => Topic started by: Arandomperson on December 28, 2016, 10:50:42 pm
Title: Preset help
Post by: Arandomperson on December 28, 2016, 10:50:42 pm
For some strange reason codeing the right side of the presets body does not show at all. And I want to add a missing right back leg and put a metal peg on it.
Title: Re: Preset help
Post by: Morgra on December 28, 2016, 10:57:48 pm
It doesn't show at all, as in, completely transparent, white, or black/yellow?
Title: Re: Preset help
Post by: Kerriki on December 28, 2016, 11:02:11 pm
Moving this over to the game help board ^^
Title: Re: Preset help
Post by: Arandomperson on December 28, 2016, 11:03:28 pm
It doesn't show up at all. Works prefectly on the Left side of the body, but never the right. I even did it on the left side and saved it over as the right said and still nothing.
Title: Re: Preset help
Post by: Morgra on December 28, 2016, 11:10:30 pm
What I mean is that I don't know what you mean by not showing up at all. It is a transparent side or black/yellow, etc?
Title: Re: Preset help
Post by: Arandomperson on December 28, 2016, 11:12:32 pm
None. Its just acts like i didnt add transparency when i did.
Title: Re: Preset help
Post by: TwistedSorrowzz on December 28, 2016, 11:21:22 pm
You didn't add r or l to the body format did you? If you did you need to get rid of it so the preset design shows up on both sides.
Title: Re: Preset help
Post by: Arandomperson on December 28, 2016, 11:34:08 pm
I dont even know how to do that.
Title: Re: Preset help
Post by: TwistedSorrowzz on December 28, 2016, 11:41:16 pm
I think I may have figured out your problem, If you're wanting to add a transparent back leg, You will need to add a r and l to the jpg files of the body mat. And then make the right back leg transparent using the code. Sorry if that sounded confusing.
Title: Re: Preset help
Post by: Morgra on December 28, 2016, 11:43:05 pm
Well, they do need a missing right leg which would be why they would differentiate between the two sides. What Twisted means is that if you want two different textures for your left and right sides, you need to indicate it in the material file.
(http://puu.sh/t44bG/1a800681f7.png)
To make one side different than the other would be to add some character to the "preset_2body.jpg" on the preset_2_bodyMatL or bodyMatR depending on which side is different.
It sounds like you've already been doing this as only one side of the preset is missing, correct?
Title: Re: Preset help
Post by: TwistedSorrowzz on December 28, 2016, 11:44:46 pm
Well, they do need a missing right leg which would be why they would differentiate between the two sides. What Twisted means is that if you want two different textures for your left and right sides, you need to indicate it in the material file.
(http://puu.sh/t44bG/1a800681f7.png)
To make one side different than the other would be to add some character to the "preset_2body.jpg" on the preset_2_bodyMatL or bodyMatR depending on which side is different.
It sounds like you've already been doing this as only one side of the preset is missing, correct?
Thank you for making my point more clear, Morgra. ^
Title: Re: Preset help
Post by: Arandomperson on December 28, 2016, 11:54:08 pm
I have that. It just transparency does not work on the right side of the body. I can make 2 sided presets its just it only for some reason does not work on the right side. I have Alpha channel on, i take the eraser and remove the leg. it has the checkered pattern when i use it. I save the preset, load up FH, go to preset maker, load up said preset that i just saved, and it acts like i didnt just add the transparency on it at all.
Title: Re: Preset help
Post by: Morgra on December 28, 2016, 11:59:05 pm
Oh so what you're saying is that you are saving the missing leg side too and it's just not showing up on the preset? Both sides look the same and have no missing leg?
Title: Re: Preset help
Post by: Arandomperson on December 28, 2016, 11:59:55 pm
Yes!
Title: Re: Preset help
Post by: Morgra on December 29, 2016, 12:01:18 am
Okay, that makes sense. I'm thinking it's a code issue. Mind posting your code for us to look at? It could also be that the right side file isn't in the folder. You've made sure both sides are in the preset's folder right? c:
Title: Re: Preset help
Post by: Arandomperson on December 29, 2016, 12:09:20 am
} There is a preset_8body.png texture in there that doesn't seem to fit as you've already included the "texture preset_10bodyL.png" as a texture unit. If you can explain if that preset_8body.png texture was in there for a reason, let me know ^^
I will be able to fix this up if that's part of the problem
Title: Re: Preset help
Post by: Arandomperson on December 29, 2016, 12:22:25 am
I dont know how that got in there, but i deleted it and still the same result. And yes I deleted all that you pointed out in the code above.
Title: Re: Preset help
Post by: Morgra on December 29, 2016, 12:26:32 am
I dont know how that got in there, but i deleted it and still the same result. And yes I deleted all that you pointed out in the code above.
Oh okay. I don't know what all you deleted but since the same problem is happening I can try to write you a new code. I have a question for you though,
Was all of these details needed for the leg? There are a lot of passes and modifications that I wasn't sure what it was for, including the "tex_address_mode wrap" and the "filtering trilinear" at the bottom:
filtering trilinear Edit: Realized you were talking about a metal leg now.
Title: Re: Preset help
Post by: Arandomperson on December 29, 2016, 12:41:11 am
*Deeply shrugs with stupid/clueless face* I really just copy and paste old code's ive been useing just to get the two-sided stuff. And about the metal leg i download the overwatch item pack just for that leg to use in a Warrior cat rp.
Title: Re: Preset help
Post by: Morgra on December 29, 2016, 12:45:01 am
xD That's okay!
So, if you'd like me to, I can redo your code for ya with the metal leg and all.
However, in order for me to do that, I will need your textures so I can test it properly. If you don't mind me messing with it, you can send me a PM with an imgur or a mediafire link to the textures? It's completely up to you. You can even post it here if you don't mind.
Title: Re: Preset help
Post by: VortexAlive on December 29, 2016, 01:19:16 am
For transparency you have to do something special like this:
#This "#" allows you to make comments in the .material file. material preset_10_bodyMatL #Note how this is only the /left/ side of the body. { technique { pass #This slaps a new texture on /top/ of the previous one. { alpha_rejection greater_equal 128 #This allows transparency to be used. texture_unit { texture preset_#body.png #with the parts of it that you want to be transparent completely erased, make sure alpha channel is ON! } } } }
Here is an example, please ignore the right side of the body: (http://i38.photobucket.com/albums/e104/VortexAlive/Transparency%20For%20Presets_zpsy1la7f4d.png?t=1482887195)
Is the metal leg a texture or an item? If it's an item then it should still show up, not sure how well it will but it will.
Title: Re: Preset help
Post by: Morgra on December 29, 2016, 01:23:12 am
#This "#" allows you to make comments in the .material file. material preset_10_bodyMatL #Note how this is only the /left/ side of the body. { technique { pass #This slaps a new texture on /top/ of the previous one. { alpha_rejection greater_equal 128 #This allows transparency to be used. texture_unit { texture preset_#body.png #with the parts of it that you want to be transparent completely erased, make sure alpha channel is ON! } } } }
Here is an example, please ignore the right side of the body: (http://i38.photobucket.com/albums/e104/VortexAlive/Transparency%20For%20Presets_zpsy1la7f4d.png?t=1482887195)
Is the metal leg a texture or an item? If it's an item then it should still show up, not sure how well it will but it will.
Thank you Vortex ^^ That is currently what I am doing. I sorta took it over for them as they sent me the files to work with
Title: Re: Preset help
Post by: Morgra on December 29, 2016, 02:24:41 am
Finished adding the transparency to the leg and fixing the code! I sent them the files in MediaFire and it sounds like they got it working
Letting the mods know this can probably be locked now, unless A Random Person needs something else ^^