Author Topic: Code for Bi-colored eyes  (Read 2859 times)

Offline duna the killer

  • Community Champion
  • ****
  • Posts: 1,663
  • Floof-O-Meter: 35
  • Vacationing 28th - 4th, You all are amazing!
    • View Profile
Code for Bi-colored eyes
« on: September 14, 2013, 07:37:27 pm »
Hi guys! I was needing the code for the bi-colored eyes, and how to apply it. I will be using the code to make a preset for my new fursona. Thanks!

Offline LordSuragaha

  • The Karen Slayer
  • Immortal Legend
  • *****
  • Posts: 11,027
  • Country: 00
  • Floof-O-Meter: 1052
    • View Profile
Re: Code for Bi-colored eyes
« Reply #1 on: September 14, 2013, 07:44:29 pm »
Basically make sure that you create and color two seperate eye pics with two different names. Then go into your material file for that preset and change your coding in the parts I highlighted in red with the proper eye names:

Below is what I did for Suragaha-

material preset_2_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_2eye.jpg
         }
      }
   }
}
material preset_2_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_22eye.jpg
         }
      }
   }
}

Offline Elias_Ainsworth

  • Familiar Grounds Dweller
  • **
  • Posts: 53
  • Country: 00
  • Floof-O-Meter: 10
  • ✧ drop me some nuzzles if you so please ✧
    • Sir-Elias-Ainsworth
    • View Profile
Re: Code for Bi-colored eyes
« Reply #2 on: September 25, 2013, 01:00:14 am »
I open the material files on both my desktop and my mac.
it wont let me open it as if theres no such thing as a material file!
please help?

Offline wolfspirit999

  • Experienced Traveler
  • **
  • Posts: 124
  • Floof-O-Meter: 5
  • Live well laugh often love much~
    • View Profile
    • Wolf Kin
Re: Code for Bi-colored eyes
« Reply #3 on: September 25, 2013, 06:49:59 pm »
Please don't ask for help in other peoples help threads, make your own. You will likely get better result and it is polite.
In answer to your question, you need to open it as a Notepad file.

Offline Feareh

  • The Jaguar Artist
  • Ancient Silver Mane
  • *****
  • Posts: 4,026
  • Country: us
  • Floof-O-Meter: 195
  • Where is the Walrus Species?
    • View Profile
Re: Code for Bi-colored eyes
« Reply #4 on: September 25, 2013, 07:04:39 pm »
Just to add on to he information Lord has provided you, when nameing a file for a bi-color eye to not name the additional file after any low numbers such as
preset_5eye.jpg
or
preset_12eye.jpg
Cause if you add any range of number from 1-12, then it will use the original file name that is stored in that folder
usually it helps out better to just name the eye after the file and at the end add "R" and "L" to the files
« Last Edit: September 25, 2013, 07:06:52 pm by Feareh »
I Stalk from time to time...I have moved on to other things but do miss this place. Good times
Add me on discord:
Bakujio 🐺#7358