{"id":734,"date":"2015-10-18T15:02:52","date_gmt":"2015-10-18T15:02:52","guid":{"rendered":"http:\/\/avastar.online\/?page_id=734"},"modified":"2015-10-18T15:02:52","modified_gmt":"2015-10-18T15:02:52","slug":"rigging-eyes","status":"publish","type":"page","link":"https:\/\/avalab.org\/avastar\/279\/avastar-2\/reference\/advanced\/rigging-eyes\/","title":{"rendered":"The Eye Rig"},"content":{"rendered":"<h1><image src=\"\/avastar\/279\/wp-content\/uploads\/2019\/07\/approve_logo_250.png\" style=\"width:120px;vertical-align:middle;margin-left:0px;margin-right:10px;\"><\/image> The Eye Rig<\/h1>\n<p>Rigging and animating eyes is well supported by the Avastar rig. this documents provides information about how to work with the Eye Rig. If you are an animator, then please move to the second part of this document <span style=\"color: #ff6600;\">Animate the Eyes<\/span> further down on the page.<\/p>\n<h2>Set up the Eye Rig for your custom mesh<\/h2>\n<p>As long as you only do classic weighting, rigging the eyes is easy:<\/p>\n<ul>\n<li>Take care that the eyes are separate mesh parts. You can either separate them as submeshes in your head object, or just make separate objects for each eye, it does not matter<\/li>\n<li>Take care that the eyes are rigged to your Avastar. If the eye meshes are submeshes of the head, then they are already rigged together with the head. if they are separate objects, then take care to bind them to your mesh as usual<\/li>\n<li>Take care that the entire eye mesh of the left eye is only weighted to the mEyeLeft bone<\/li>\n<li>Take care that the right eye is only weighted to the mEyeRight Bone<\/li>\n<\/ul>\n<p>Now export as usual. Things should work fine for you.<\/p>\n<h4>Details for the System character<\/h4>\n<div class=\"row-fluid\">\n<div class=\"span6 rhcol\">\n<p>You can understand the following chapter best when you have knowledge about the principles of skeletal animation. We have created a document that hopefully helps to understand the basics:<\/p>\n<\/div>\n<div class=\"span6 rhcol\">\n<p style=\"text-align: center;\"><a href=\"\/knowledge\/skinning-basics\/\" class=\"symple-button default blue   \" target=\"_self\" title=\"Visit Site\" style=\"border-radius:3px\" rel=\"\"><span class=\"symple-button-inner\" style=\"border-radius:3px\">Skinning Fundamentals<\/span><\/a>\n<\/div>\n<\/div>\n<p>Now lets take a more detailed look at what is going on with the Eyes in the Secondlife Avatar. So please do this in Blender (Avastar):<\/p>\n<ul>\n<li>Create a new Avastar using Add -&gt; Avastar ..<\/li>\n<li>Select the left Eye<\/li>\n<li>In Avastar -&gt; Settings select the preset named &#8220;Skin&amp;Weight&#8221;<\/li>\n<\/ul>\n<p>Now the Armature is in pose mode and the mesh is in weight paint mode.<\/p>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>When you select the left eye bone <em><span style=\"color: #ff6600;\">mEyeLeft<\/span><\/em>, then you see the left eye turns red which indicates that the entire eye mesh is weighted to the <em><span style=\"color: #ff6600;\">mEyeLeft<\/span><\/em> bone.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image555.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2752 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image555.png\" alt=\"\" width=\"379\" height=\"247\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image555.png 379w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image555-300x196.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/> <\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>In the Object data properties of the Eye you see there is only one single vertext group (weight map) available, so the left eye has been fully weighted to the left eye bone.<\/p>\n<p>But having each vertex of an eye weighted to exactly one bone and having all vertices of the mesh weighted to the same bone (mEyeLeft) is exactly the same as if the left eye is clamped to the left eye bone.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2754 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image556.png\" alt=\"\" width=\"379\" height=\"247\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image556.png 379w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2015\/10\/Image556-300x196.png 300w\" sizes=\"auto, (max-width: 379px) 100vw, 379px\" \/><\/p>\n<\/div>\n<\/div>\n<p>And just like the left eye has only one weightgroup named mEyeLeft the right eye also has just one weight group named mEyeRigh. And this is all you need to know.. almost<\/p>\n<h4>Details for custom mesh characters<\/h4>\n<p>mFaceEyeAltLeft and mFaceEyeAltRight is a second set of eye bones.<\/p>\n<h2>Animate the eyes<\/h2>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>For the System character we have (see image):<\/p>\n<ul>\n<li>The System Eyes: EyeLeft and EyeRight<\/li>\n<li>The system target: EyeTarget<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-5350 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image904.png\" alt=\"\" width=\"598\" height=\"403\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image904.png 598w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image904-300x202.png 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Avastar by default has enabled the eye bones for the System character. The setting is available in the Rig Display Panel:<\/p>\n<ul>\n<li>Eye Focus : show the Eye target bone for the System eyes<\/li>\n<li>Checkmark: (near Eye Focus) Enable the focus target for animation<\/li>\n<\/ul>\n<p>Note: By default the Eye Target bones are very far in front of the head (about 2 meters). this is to keep the eyes watch &#8220;straight forward&#8221; by default.<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-5351 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image905.png\" alt=\"\" width=\"596\" height=\"588\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image905.png 596w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image905-300x296.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<\/div>\n<\/div>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>Additionally we have an alternative set for Custom meshes:<\/p>\n<ul>\n<li>The System Eyes: FaceEyeAltLeft and FaceEyeAltRight<\/li>\n<li>The system target: FaceEyeAltTarget<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span5\">\n<p><a href=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image909.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5363\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image909.png\" alt=\"\" width=\"598\" height=\"403\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image909.png 598w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image909-300x202.png 300w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<h4>Animating the eye targets<\/h4>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<ul>\n<li>When you move the Eye target in the scene, then by default the eyes follow the target.<\/li>\n<li>When you move the eye target closer to the eyes, then the eyes start to cross (see image)<\/li>\n<li>When you move the targets behind the head, then the eyes still follow, although this is no longer a natural eye movement of course.<\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-5352 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image906.png\" alt=\"\" width=\"596\" height=\"333\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image906.png 596w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image906-300x168.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<\/div>\n<\/div>\n<h4>Animating the eyes individually<\/h4>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>If you want to animate the eyes separately, then all you need is to disable the eye target. then you can rotate each eye separately.<\/p>\n<p>Note: If you also want to move the eyes around, then you must disable the Eye location constraints as well&#8230;<\/p>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-5356 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image907.png\" alt=\"\" width=\"596\" height=\"333\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image907.png 596w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image907-300x168.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<\/div>\n<\/div>\n<h4>Disable the eye location constraints<\/h4>\n<div class=\"row-fluid\">\n<div class=\"rhcol span7\">\n<p>You disable the eye bone location constraints in the Posing Panel:<\/p>\n<ul>\n<li>Select the eye bones which you want to move<\/li>\n<li>Open the Posing Panel (Avastar Tool Shelf)<\/li>\n<li>Set Bone constraints: Selected Bones<\/li>\n<li>Klick Anim Bone Trans <em><span style=\"color: #ff6600;\">Unlock<\/span><\/em><\/li>\n<\/ul>\n<\/div>\n<div class=\"rhcol span5\">\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-5357 size-full\" src=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image908.png\" alt=\"\" width=\"596\" height=\"488\" srcset=\"https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image908.png 596w, https:\/\/avalab.org\/avastar\/279\/wp-content\/uploads\/2020\/04\/Image908-300x246.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Eye Rig Rigging and animating eyes is well supported by the Avastar rig. this documents provides information about how to work with the Eye Rig. If you are an animator, then please move to the second part of this document Animate the Eyes further down on the page. Set up the Eye Rig for [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2752,"parent":3922,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-734","page","type-page","status-publish","has-post-thumbnail","hentry","category-reference"],"_links":{"self":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/comments?post=734"}],"version-history":[{"count":0,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/734\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/pages\/3922"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/media\/2752"}],"wp:attachment":[{"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/media?parent=734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/categories?post=734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/avalab.org\/avastar\/279\/wp-json\/wp\/v2\/tags?post=734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}