HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Issues creating new colour masks

Go down 
AuthorMessage
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 503
Join date : 2014-02-09
Age : 20

PostSubject: Issues creating new colour masks   Wed Jun 24, 2015 11:02 pm

I'm not sure if anyone else has messed with this, but I figured I'd give it a shot

I'm trying to add two new colour options to the body - claws and pawpads. I basically followed the duel eye colours tutorial for the coding, then modified the materials how I thought was necessary. However, when I go ingame, the pawpads stay black and the claws don't even show up

Now, the body has two masks originally, underfur and claw marks, which is a static black. This accounts for the pawpads being black. However, I'm confused - is that determined somewhere in the source? Because I changed the BodyMod's cg and program files so it should be working

MagixMod material
Spoiler:
 

MagixMod program
Spoiler:
 

MagixPS cg
Spoiler:
 

I can post chunks of source code if necessary, just not entirely sure which parts would effect this

Result:

Spoiler:
 

________________________________
Back to top Go down
http://azoptaos.boards.net/
Hamilton

avatar

Game username : Hamilton
Server : Myatar Legends // Dragon's Den
Female Posts : 383
Join date : 2011-10-20
Age : 32
Location : everywhere

PostSubject: Re: Issues creating new colour masks   Sat Jul 25, 2015 3:25 am

Finally able to have a look at this and compare it against my own (mods: i was away from my pc for 2 months and don't really have this stuff memorized. lol i know i'm responding to an aged thread). From what I can see right away, there is one line wrong in your MagixPS file.

Code:
float3 blendValue = lerp(textureValue1, textureValue2, alphaMask1);
blendValue = lerp(blendValue, textureValue3, alphaMask2);
color = float4(blendValue,1);

For the new mask layer, you also need to add in an extra blendValue line

Code:
   float3 blendValue = lerp(textureValue1, textureValue2, alphaMask1);
   blendValue = lerp(blendValue, textureValue3, alphaMask2);
   blendValue = lerp(blendValue, textureValue4, alphaMask3);
   color = float4(blendValue,1);

Everything else -seems- to be okay. I haven't implemented a texture layer in the body texture code, so comparing that is a little more tricky. So long as mask 2 is your new mask and 3 is the old paw-lines layer....(for some reason, i also have all my masks set to 1 1 1 1...weird...not sure if related...)
Back to top Go down
Hyper
Admin
avatar

Game username : Hyper
Server : Azoptaos
Male Posts : 503
Join date : 2014-02-09
Age : 20

PostSubject: Re: Issues creating new colour masks   Sat Jul 25, 2015 3:29 am

...I forgot to solve this

I managed to figure it out on my own with a fresh source. I just layered them over the existing masks and kept those blank, then adjusted so the markings would layer over them

Not sure why I was struggling so much in the first place, I managed to get it on one run through with a new source lol

thank you though hammy, I appreciate you taking a look

________________________________
Back to top Go down
http://azoptaos.boards.net/
Sponsored content




PostSubject: Re: Issues creating new colour masks   

Back to top Go down
 
Issues creating new colour masks
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support :: Solved Support Issues-
Jump to: