Author Topic: Preset help(coding wise)  (Read 2155 times)

Offline Veenus

  • Curious Wanderer
  • *
  • Posts: 23
  • Floof-O-Meter: 2
    • View Profile
Preset help(coding wise)
« on: November 13, 2017, 06:09:42 pm »
So, I don't exactly know where to post this so feel free to move it to where it belongs.

Anyways, I'm making a preset and I wanted to mask it so I could have scrolling markings and a glowing spot on the head, however, I've looked everywhere and attempted to code it but kept failing. Does anyone know how do this? :^

I already made the mask, I just need help with the coding. If anyone could help that'd be so amazing >.<

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Preset help(coding wise)
« Reply #1 on: November 13, 2017, 07:38:58 pm »
This place Clickable link had some good ones, i recommend Ruby1234 thread for good explanations.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline Veenus

  • Curious Wanderer
  • *
  • Posts: 23
  • Floof-O-Meter: 2
    • View Profile
Re: Preset help(coding wise)
« Reply #2 on: November 13, 2017, 10:07:28 pm »
This place Clickable link had some good ones, i recommend Ruby1234 thread for good explanations.

That teaches you how to do the glowing effect, I already know how to do it. I'm just having issues mask the preset, I've already masked what I want masked. I just have to get the code to read it properly. I've looked there and couldn't find a code for masking. :/

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Preset help(coding wise)
« Reply #3 on: November 14, 2017, 03:57:16 am »
Kind of like this?
Code: [Select]
pass
{
scene_blend add
texture_unit
{
texture flames.png
scroll_anim -0.6 -1.0
tex_address_mode wrap
        filtering trilinear
}
scene_blend alpha_blend
texture_unit
{
texture flamemask.png
}
}
}
}
Because that's what i used with a white coloured mask with a transparent background.
Obviously you change the name from "flamemask.png" to whatever your mask is called.

Does that help at all?
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline Veenus

  • Curious Wanderer
  • *
  • Posts: 23
  • Floof-O-Meter: 2
    • View Profile
Re: Preset help(coding wise)
« Reply #4 on: November 14, 2017, 04:18:13 am »
Kind of like this?
Code: [Select]
pass
{
scene_blend add
texture_unit
{
texture flames.png
scroll_anim -0.6 -1.0
tex_address_mode wrap
        filtering trilinear
}
scene_blend alpha_blend
texture_unit
{
texture flamemask.png
}
}
}
}
Because that's what i used with a white coloured mask with a transparent background.
Obviously you change the name from "flamemask.png" to whatever your mask is called.

Does that help at all?
Yes! It worked! Thank you <33 I've coded masks before but I forgot how to do the coding part. I lost the files that had masks so :'( Thank you so very much! :) I'll let you know if anything goes wrong. I'm working on this preset that had scrolling on the ears and marks on her face and thought glowing would be adorbs, but it required masking: http://tinypic.com/view.php?pic=2cmsyl0&s=9#.WgpubWhSzIU (Here's what she looks like)

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Preset help(coding wise)
« Reply #5 on: November 16, 2017, 12:37:06 am »
Locking this since everything is working now, have fun with your preset!
Farewell everyone<3