Author Topic: SOLVED Preset maker - Reflective eyes! (Contains the code)  (Read 1542 times)

Offline deemsss1234

  • Familiar Grounds Dweller
  • **
  • Posts: 90
  • Country: 00
  • Floof-O-Meter: 7
  • Idiocy...
    • View Profile
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?
« Last Edit: May 30, 2017, 08:50:01 am by deemsss1234 »
VirtualWorlds.Boards.Net
Game character based RP group

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 maker - Reflective eyes?
« Reply #1 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.
« Last Edit: May 30, 2017, 02:21:02 am by Kuri »
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 deemsss1234

  • Familiar Grounds Dweller
  • **
  • Posts: 90
  • Country: 00
  • Floof-O-Meter: 7
  • Idiocy...
    • View Profile
Re: Preset maker - Reflective eyes?
« Reply #2 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.



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.

VirtualWorlds.Boards.Net
Game character based RP group

Offline Kynvuu

  • #Grimstagram
  • Elder Grey Pelt
  • ****
  • Posts: 2,538
  • Country: us
  • Floof-O-Meter: 212
  • I'm not saying that it was aliens but...
    • View Profile
Re: SOLVED Preset maker - Reflective eyes! (Contains the code)
« Reply #3 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:
On a temporary leave. Please contact other members of staff if you need assistance.