Feral Heart

Help & Guidance => Game Help => Topic started by: deemsss1234 on May 30, 2017, 12:50:18 am

Title: SOLVED Preset maker - Reflective eyes! (Contains the code)
Post by: deemsss1234 on May 30, 2017, 12:50:18 am
Hello, I found a topic earlier today and I tried my best to figure out to do whatever this person did with the eyes of my wolf, but I simply cannot get it to work.

https://feral-heart.com/smf/index.php?topic=44489.0;nowap

This is the topic. Scrolling down, you can see that the eyes of this item are reflecting the environement, and I was wondering if it was possible to have the eyes of a preset do the same thing?
Title: Re: Preset maker - Reflective eyes?
Post by: Kuri on May 30, 2017, 02:17:26 am
When i look closely i see the reflection appears to be drawn on the eyes themselves.   If that is so, in a cave the eyes would still show that line of trees, which would not actually be there.  Using the env_map spherical you can achieve something similar to reflection so if you had a picture of an environment that would fit most situation then yes, you can.


Just in case people reading this want to try it
Code: [Select]
{
receive_shadows off
technique
{
pass
{
lighting on
scene_blend alpha_blend
specular 0.5 0.5 0.5 1 128
cull_hardware none
cull_software none

texture_unit
{
texture Eyetextureofyourchoice.png
}
}
pass
{
lighting on
scene_blend alpha_blend
texture_unit
{
env_map spherical
texture semi-transparentReflection.png
}
}
}
That's what i'd use anyway.  Yours may differ.

Edit, made the mistake of using specular on my eyes once.  When the eyes were closed the eyelids were shiny.
Title: Re: Preset maker - Reflective eyes?
Post by: deemsss1234 on May 30, 2017, 08:49:08 am
Thanks Kuri! (Why are you always the one to save my preset making? ;p)
You were right, using an own picture of a forest is what the person from the post did. I used your code (You did forget one } at the end, however.) and it looks really awesome! Makes the eye look pretty realistic.

(http://i.imgur.com/LZuiycx.png)

There it is! If someone reads this and likes the treees I used, its: http://freebigpictures.com/wp-content/uploads/2009/09/forest-light.jpg
I do recommend removing the sky above the trees since it makes the colour of the eye a bit dull.

Title: Re: SOLVED Preset maker - Reflective eyes! (Contains the code)
Post by: Kynvuu on May 30, 2017, 01:41:24 pm
I'll go ahead and lock this as it seems your issue has been fixed. Please let us know if you need any further help. c: