• EyeRefract breaking eyes
    2 replies, posted
To apply eye movement and some cool illumination effects for the model I am porting I am trying to use [I]EyeRefract[/I] in both [I]eyeball_l[/I] and [I]eyeball_r[/I]. Using [I]Eyes[/I] instead provides a good result. Position is OK, but I get this weird color, transparency, reflection or whatever this effect is over the eyes: [IMG]https://i.gyazo.com/b8ad23debd3bfb80924b15ad3d6d9a2b.png[/IMG] Original model: [IMG]https://i.gyazo.com/ea89325cc2a6beef5c800a0685aecd6f.png[/IMG] [I]eyeball_l.vmt[/I] and [I]eyeball_r.vmt[/I]: [CODE]"EyeRefract" { $Iris "models/serah/eyetex" $Envmap "engine/eye-reflection-cubemap-" $CorneaTexture "engine/eye-cornea" $AmbientOcclTexture "engine/eyeball_l_ambient" $ambientocclusion 1 $EyeballRadius "0.4" $AmbientOcclColor "[0.25 0.25 0.25]" $Dilation "0.5" $ParallaxStrength "0.30" $CorneaBumpStrength "1" $halflambert "1" $nodecal "1" $RaytraceSphere "1" $SphereTexkillCombo "0" }[/CODE] In the QC: [CODE]$eyeposition 0 0 70 $model "eyes" "objects/eyes.smd"{ flexcontroller eyes range -45 45 eyes_updown flexcontroller eyes range -45 45 eyes_rightleft eyeball lefteye "ValveBiped.Bip01_Head1" 1.25 -2.7 61.63851 "eyeball_l" 1.00 4 "pendant" 0.45 eyeball righteye "ValveBiped.Bip01_Head1" -1.2 -2.7 61.63851 "eyeball_r" 1.00 -4 "pendant" 0.45 }[/CODE] All eye files: [IMG]https://i.gyazo.com/c4b56cd210ace72e53b7d514b685a997.png[/IMG] [I]eyetex.vtf[/I]: [IMG]https://i.gyazo.com/e78fc6418ae11d6117dba9d9fe15422a.png[/IMG]
You need an alpha channel on the eye texture. In particular, the iris and pupil need to be black, and the sclera needs to be less black, in the alpha channel. For conveniences' sake, [url=https://files.catbox.moe/2zop9e.psd][b]you can just use the PSD I use for eyes[/b][/url]. You can either just recolor the iris as is, or copy-paste your diffuse onto it and adjust the size as necessary. Note that if the iris is a different size than this image's iris, then the eyes won't look right. So you may want to just copy-paste-resize the iris itself.
Thank you so much! I made what you said, using the sclera you provided and the original iris, and I got a great result. I needed to re-scale the eyeball because the sclera-iris proportion was different too. Turning [I]$Glossiness "0"[/I] was the last change I made, making a big improvement. I suppose that very light eyes and reflections are not the best combination. [IMG]https://i.gyazo.com/986afaab87798ffd71ba6d0de7b01087.png[/IMG]
Sorry, you need to Log In to post a reply to this thread.