Author Topic: Preset Help? (Coding..)  (Read 3830 times)

Offline Nyctenix

  • Forum Newcomer
  • *
  • Posts: 6
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Preset Help? (Coding..)
« on: October 17, 2017, 03:15:32 am »
Hi,

I need a bit of help with coding a preset, if I made this topic in the wrong thread, please move it for me. ;u;

Anyways, the Preset I'm making has a variety of coding, including Moving Textures, Transparency and Glow Markings.
Everything is working fine, however, I want to apply an Ambiance to my character, which is refusing to work.
I've tried placing it above every texture_unit, as well as below the texture image.png, and even making a new pass, but it is still unable to work.

Oddly, when I alter the colour_op alpha_blend code, the Ambiance is applied. Problem is, the colour_op alpha_blend is needed for my moving textures, so I feel that it's canceling out the Ambiance somehow.
If I remove the colour_op alpha_blend, then the moving texture will overlap the other textures, so I can't remove it.

I've tried nearly everything, I'm not sure what to do at this point. xD
My apologies if it seems confusing.
Also, I do not feel comfortable posting the code here, as I've spent a good amount of time making them synchronize and working.. would rather it not be copied.

Thanks.~
avatar made by MykalaBlu@deviantart

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset Help? (Coding..)
« Reply #1 on: October 17, 2017, 04:11:09 am »
Unfortunate that you can't show us the code so that we can actually have a visual on it...
But it's pretty understandable. All I can say, based off of what you're saying, is that it either will work with the coding, or not.
Depending on where you're putting that new pass of coding can also effect the outcome when it comes to multiple lines of coding.
I once made a coding for someone that had scrolling, transparency ( to see the scrolling ) & animations all on the same body. Me and another helpful floof had to do some serious tweaking and adjusting just so everything would show correctly.

If you were to send the coding itself and not the images, it might give us an idea on what you can do to alter the material file so that it can show correctly unless you want to send things through PM. And even if someone were to copy you, they wouldn't get away with it I'm sure because it'll be linked back to you for you were nej doubt the first to bring it up.

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Nyctenix

  • Forum Newcomer
  • *
  • Posts: 6
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Help? (Coding..)
« Reply #2 on: October 17, 2017, 04:39:52 am »
Aha, alright, I'll try to bunch it together.
EDIT: I hit post instead of preview oops.



This is the body - the rest are pretty much the same. cx
I'm sure you can decode it easily but to sum it up, I got ambiance, scroll, shine and glow on there, the test.png is just the fur base over the rest.
Annnd, yeah, it's the colour_op alpha _blend I was mentioning.. can't seem to move or edit it without the other textures dis-functioning.
Any suggestions would be appreciated. ;u;


« Last Edit: October 17, 2017, 04:44:57 am by Nyctenix »
avatar made by MykalaBlu@deviantart

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset Help? (Coding..)
« Reply #3 on: October 17, 2017, 07:56:58 am »
Well it's pretty late where I am. But if no one else or if there hasn't been a solution for it, yet,
I can try and go over the coding notes that I have in a few hours once I get some rest. Heh.
But hopefully it won't take forever and there'll be a solution soon ~!
So until then, good luck ~!

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Nyctenix

  • Forum Newcomer
  • *
  • Posts: 6
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Help? (Coding..)
« Reply #4 on: October 18, 2017, 01:33:44 am »
Alrighty, no pressure. I appreciate the help, thanks. cx
avatar made by MykalaBlu@deviantart

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset Help? (Coding..)
« Reply #5 on: October 18, 2017, 02:30:57 am »
What confuses me is the 'colour_op alpha_blend'. I usually only use that particular coding for when it comes to the mane and I have a scrolling texture.. on top of that, it makes it so where there won't be any spikes when I test it in game.
Since you're working with the body, I think you won't really need that line of coding.... Of course, if you still want the scrolling.. you can highlight certain areas on the body and simply turn down the opacity for that particular spot. I did something similar when I was doing a scrolling & animation preset and that worked well.

Here's a snipit of the coding.

Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture WolfScroll.png
scroll_anim 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9body.png
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
anim_texture Pulse1.png Pulse2.png Pulse3.png Pulse4.png Pulse5.png Pulse6.png Pulse7.png Pulse8.png Pulse9.png Pulse10.png Pulse11.png Pulse12.png Pulse13.png 1
}
}
}
}

Of course, the scrolling had to be on top of the animation part of the preset in order for it to work out correctly.
Maybe switching around the orders of the animations might give you an idea as to what you should do?

Another thing, especially with the glowing, make sure that the body and the glowing are separate. ( ? )
If you want an ambiance, then simply keep that line of coding.

Code: [Select]
material preset_#_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_#body.jpg
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_#bodyglow.png
}
}
}
}

coding type might benefit... unless you really can't get them all to work right away...

Another thing I'm noticing in your coding, is all those brackets at the end.. Should only be 4 like how it is in the coding I listed above.

Now, I know you said you have worked very hard on the preset and to get it to work. If you want, you can send me the files along with the material code through PM unless you don't feel comfortable with that at all. If that's the case, then I can try and make a test of what you're trying to do and just work around with that until I get it to work and then send you the coding through PM.
But that's all I got thus far. So I'll keep working until I or someone else comes up with something for ya if you haven't yet c:

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Nyctenix

  • Forum Newcomer
  • *
  • Posts: 6
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Help? (Coding..)
« Reply #6 on: October 18, 2017, 04:15:42 am »
Ahh, I'll definitely try it the way you suggested.
But yeah, I kept forgetting to remove those brackets.. whoops. xDD

I'll give it a shot and let you know if that's alright? I'm completely fine with sending it to you as well.
To be honest, I can't really recall where I got the Scroll code from, it's my first time using it.. but the way you've shown makes more sense so I'll give it a go. c:
Thanks for the help~!
« Last Edit: October 18, 2017, 04:24:39 am by Nyctenix »
avatar made by MykalaBlu@deviantart

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset Help? (Coding..)
« Reply #7 on: October 18, 2017, 04:19:51 am »
Whatever works for you, glad I can give ya some help with this ~!
But I wish ya luck and keep us posted c:
If ya need anymore assistance, don't hesitate to ask c:

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7

Offline Nyctenix

  • Forum Newcomer
  • *
  • Posts: 6
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
Re: Preset Help? (Coding..)
« Reply #8 on: October 18, 2017, 04:25:17 am »
AHa your way worked, and is a much easier way then the mess I've been working with. Thank you so much for the help~!
avatar made by MykalaBlu@deviantart

Offline Hakumi

  • ✩ Just A Virtuous Smol ✩
  • Honored Hero
  • *****
  • Posts: 4,835
  • Country: 00
  • Floof-O-Meter: 130
  • A Smol & Helpful Floof ~
    • leanim3fr3akzoid
    • LeAnim3Fr3akzoid
    • View Profile
Re: Preset Help? (Coding..)
« Reply #9 on: October 18, 2017, 04:29:48 am »
Glad it's working for ya ~!
And anytime c:

Keep on traveling across this road called 'Life.'

Discord: Haku - Haku#74O7