Author Topic: HOW TO ADD TEXTURE INSIDE A PRESET!  (Read 4130 times)

Offline Azon

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 4
    • View Profile
HOW TO ADD TEXTURE INSIDE A PRESET!
« on: October 24, 2019, 11:02:48 pm »
Hello all! This is the first time I've actually made my own post on the forums, cool!

Anyway this is from someone else's code and I haven't found it ever since I did, if anyone knows who made it, please let me know! I did not create this code, but I would like to re-update you guys on it! It's a very hard code to explain without it sounding like a double sided/ asymetrical preset. It is NOT the same!

Anyway on with the tutorial!

So this code actually works as an inside and outside texture. Usually when you look inside someone in feral heart they're actually transparent as seen right here:


 
Now for what you're aiming for is actually to have texture inside, like this preset right here:



As you can see the inside of this preset has texture. In this preset I decided to make Inside and Outside the same texture. It works as a double sided texture, because it goes right under the preset. So one is on TOP and one is on the BOTTOM.

So in terms it works like the insides of the preset. This code is mainly used for transparent coding, as in like showing the insides of presets and making cuts look more realistic than just a cut off transparent wound. This code can be used for anything, removal of limbs, ears, noses, tails, etc. Even eyes can be double sided, though they won't be so easy to see!

BOTTOM TEXTURE, means the INSIDE of the preset, while TOP TEXTURE means the regular texture thats outside the preset.
This code can be applied to any part, I'm just giving the bodyMat so you can have the code. As seen on the preset it has been used on the tail and limbs.


Your files should look something like this, your regular outside texture, and you're inside texture:




THIS IS ALL FOR NOW! I hope you guys found this helpful and this enhances your preset making abilities for the future!



The code is right here:
Quote
material preset_4_bodyMatL
{
   receive_shadows off
   technique
   {
      pass
      {
         ambient 1.000000 1.000000 1.000000 1.000000
         diffuse 1.000000 1.000000 1.000000 1.000000
         specular 0.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture BOTTOM TEXTURE.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
      pass
      {
         ambient 1.000000 1.000000 1.000000 1.000000
         diffuse 1.000000 1.000000 1.000000 1.000000
         specular 0.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture TOP TEXTURE.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material preset_4_bodyMatR
{
   receive_shadows off
   technique
   {
      pass
      {
         ambient 1.000000 1.000000 1.000000 1.000000
         diffuse 1.000000 1.000000 1.000000 1.000000
         specular 0.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture BOTTOM TEXTURE.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
      pass
      {
         ambient 1.000000 1.000000 1.000000 1.000000
         diffuse 1.000000 1.000000 1.000000 1.000000
         specular 0.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture TOP TEXTURE.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}



Offline D-ead7Dog

  • AFK NPC
  • Pack & Pride Representative
  • ****
  • Posts: 1,449
  • Country: us
  • Floof-O-Meter: 97
  • BUMPY SNOW
    • D-ead7Dog
    • d-ead7dog
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #1 on: October 24, 2019, 11:05:18 pm »
Thank you so much!
I’ll for sure be using!!

Artwork (c) Lynxbrush & CosmicFatality

Originally registered January 15, 2011

Offline Oddonelynx

  • Tuesday is applesauce day, but I am also a Jovial Bobcat!(Not lynx)
  • Community Champion
  • ****
  • Posts: 1,944
  • Country: us
  • Floof-O-Meter: 110
  • Hyenas deserve less hate.
    • BOTOFan
    • channel/UC5lDa5s7GLRWQHoH70ne34Q
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #2 on: October 24, 2019, 11:50:21 pm »
Super cool!!

Art by QuietMacaroni

HemiCountry

  • Guest
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #3 on: October 25, 2019, 12:30:20 am »
Azon, this is fantastic! I'll definitely look it over some more and test it out sometime when I get inspiration for an idea this would work with.

BirdieBeep

  • Guest
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #4 on: October 25, 2019, 02:54:29 am »
BLESS
I will give this a try, thank you for sharing

Offline Ame88

  • ❄✧❄✧❄✧❄✧❄✧❄✧❄✧❄ Winter is a .' - ` , ' - . ` timeless ' , ` - '. ` , - ' . season. - ', - ` , ' - . ` , Everything ' , ` - . ' , ` . freezes. `_,_'_-_._`_,_-
  • Admin
  • Elder Grey Pelt
  • *******
  • Posts: 3,139
  • Country: us
  • Floof-O-Meter: 216
  • Yeah I believe in Bigfoot. Nessi and Kovu too!
    • Ame88thewolf
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #5 on: October 25, 2019, 03:14:36 am »
You my friend are a life saver lmao This is extremely helpful! Thank you for sharing this.
I know a lot of preset makers will find this very useful...me included!

Profile picture by Telluric
Thank you ;u;
Bio | My Creations
Renegade Row | FeralHeart Resort

Offline Bawfle

  • Courage is not the absence of fear but rather the judgement that something is more important than fear.
  • Elder Grey Pelt
  • ****
  • Posts: 3,147
  • Country: gb
  • Floof-O-Meter: 344
  • The Zambisi Pride
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #6 on: October 25, 2019, 08:52:26 am »
Intriguing 0.0 Thanks for sharing this, I've always disliked the transparency


Pixel Doll Commissioned and Coloured by RingoKioko
Inactive // Retired // Gone

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #7 on: October 25, 2019, 03:06:55 pm »
Great clear easy to follow, very nicely posted Azon. It’s funny I’ve never considered the texture coating the inside of the character before but I can see the practicality of it especially when you have characters with open transparent spots. Pretty neat :) Thanks for taking the time to write this up and share it with us all!

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: HOW TO ADD TEXTURE INSIDE A PRESET!
« Reply #8 on: October 26, 2019, 09:11:25 pm »
I'm going to have to try this on something.
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"