• Attempted to make make movable eyes and now they are invisible.
    1 replies, posted
I recently attempted to make movable eyes on a playermodel using qc_eyes. I have tested the results inside of SFM but for some reason, the eyes appear invisible now. I am slightly new to posable eyes in source so excuse me if I have said something stupid. Image reference of what I'm experiencing. [img]http://i.imgur.com/8hCAjdt.png[/img] QC eye details: [code]$ModelName "player/nikolai_bo3.mdl" $Model "body" "nikolai.smd" { eyeball righteye "ValveBiped.Bip01_Head1" -1.38 -67.68 -4.31 "eye_r" 1.00 4 gen_eye_blue 0.63 eyeball lefteye "ValveBiped.Bip01_Head1" 1.18 -67.72 -4.34 "eye_l" 1.00 -4 gen_eye_blue 0.63 flexcontroller eyes range -45 45 eyes_updown flexcontroller eyes range -45 45 eyes_rightleft mouth 0 "mouth" "ValveBiped.Bip01_Head1" 0 1 0 flexfile "nikolai.vta" { defaultflex frame 0 flex "blink" frame 1 } flexcontroller phoneme range 0 1 blink %blink = blink }[/code] Eye VMTs. [code]"EyeRefract" { "$Iris" "models/yolojoe/blackops3/ultimis/nikolai/gen_eye_blue" "$Envmap" "env_cubemap" "$EyeballRadius" "1.5" "$AmbientOcclColor" "[1 1 1]" "$Dilation" ".7" "$ParallaxStrength" "0.1" "$CorneaBumpStrength" "1" "$Glossiness" "0" "$halflambert" "1" "$nodecal" "1" "$RaytraceSphere" "1" "$SphereTexkillCombo" "1" "$ambientocclusion" "1" } [/code] Could somebody help me spot what I have done wrong? Thanks.
Your eyeball coordinates are wrong. You have them as XZY, where Valve uses XYZ (Z axis up-down, not Y axis). Flip your Y and Z coordinates around, and drop the Z sign. EG: [code] eyeball righteye "ValveBiped.Bip01_Head1" -1.38 -67.68 -4.31 "eye_r" 1.00 4 gen_eye_blue 0.63 eyeball lefteye "ValveBiped.Bip01_Head1" 1.18 -67.72 -4.34 "eye_l" 1.00 -4 gen_eye_blue 0.63[/code] becomes [code] eyeball righteye "ValveBiped.Bip01_Head1" -1.38 -4.31 67.68 "eye_r" 1.00 4 gen_eye_blue 0.63 eyeball lefteye "ValveBiped.Bip01_Head1" 1.18 -4.34 67.72 "eye_l" 1.00 -4 gen_eye_blue 0.63[/code] Unless, of course, your model spawns with the face in the ground. I am assuming you have them spawning upright, though.
Sorry, you need to Log In to post a reply to this thread.