Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

2D animation eyes (live 2D eyes on 3D model)

2D animation of the eye through the material. I made a model but it does not have standard eyes, I can not move them, it remains either to alter the model or use animation through the material. I have been looking for information on this topic for a long time, but I will not find clear answers. I know that UE4 can react to object (camera) Please help. The model I remake can not, because I'll ruin the canonicity.

must be something like this. alt text

Product Version: UE 4.18
awrnbu3.gif (1.3 MB)
more ▼

asked Sep 29 '18 at 12:13 PM in Using UE4

avatar image

1 1 3

avatar image Colder347 Sep 30 '18 at 11:48 AM

I do not fully understand your question, what exactly do you want to make?

avatar image CloudSnow Oct 01 '18 at 01:23 AM

Colder347, I want the character to be able to follow something without using his eyes, but using the material on those eyes.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Use Draw line3d. Run the line mask from the center of the eye to whatever it's looking at. You have to set the look at location parameter in a blueprint, but can probably just use the actor postion node for the other point to be the center of the eye(may have to offset it a bit though). Its a super useful node but kind of undocumented. If you have trouble figuring it out just leave a comment.

more ▼

answered Oct 01 '18 at 07:33 AM

avatar image

1.3k 9 4 10

avatar image CloudSnow Oct 01 '18 at 11:39 AM

I partly understood. Can see an example from blueprint. It is desirable to see everything that I would understand how the engine works. Yes I can make an object observe a pawn or other object.

avatar image IndieGameCove Oct 02 '18 at 12:49 AM

I put together a prototype at made a video. It didn't work as well as I expected, but you may be able to figure out how to work out the bugs.

link text

avatar image CloudSnow Oct 02 '18 at 03:18 AM

I have two problems. The eyes do not appear in the game, but the editor has, in blueprint the eyes disappear. I also need to use textures and grid. Sample. The material has been applied, but the eye is not, and can do something similar, but with these eyes, not with the plane.

! alt text

screenshot-11.png (840.2 kB)
avatar image IndieGameCove Oct 03 '18 at 06:37 AM

Found a way better method. I tested on a the default shape_sphere mesh that was flatted to resemble the eyes in your pic. You may need to adjust the uv's of your eyes to be similar to the sphere. link video

alt text alt text

bp-eyetracker.png (234.4 kB)
eyematerial.png (308.2 kB)
avatar image IndieGameCove Oct 03 '18 at 06:57 AM

Also you probably have to set the texture from wrap to clamp it the texture's setting so it doesn't tile as you scale it.

avatar image CloudSnow Oct 03 '18 at 07:34 AM

try it now. But where does MID come from?alt text

screenshot-2.png (39.2 kB)
avatar image IndieGameCove Oct 03 '18 at 12:21 PM

Oh forgot to take a pic of the construction script. MID stands for material instance dynamic. The first vid had a similar custruction script.

avatar image CloudSnow Oct 03 '18 at 07:45 PM

Video 1 link text Video 2 link text

I repeated the code, but it doesn't work. I'm probably just stupid.

avatar image IndieGameCove Oct 04 '18 at 12:13 AM

you're casting to the eyes. you need to cast to the thing you're looking at.

avatar image IndieGameCove Oct 04 '18 at 12:51 AM

a few thoughts, you could probably set the same material instance on both eyes. unless your character needs to go crosseyed or the eyes are set too far from the actor's origin, in that case you would need to reference the component's locations rather the actor.

you may need to offset the z location. as is the eyes will look at the origin point of whatever actor they are looking at. if you looking at characters, maybe you can reference the capsule height to dynamically estimate the offset.

you could use interfaces rather than casting to verify if the thing you're looking at is observable. the cast was just for testing purposes.

avatar image CloudSnow Oct 04 '18 at 01:35 AM

Well, I had the idea with eyes like that. When the character is not one else is looking, his eyes are looking in different directions for animations. And when the area gets any character for example the main character or NPS then he looks at him. The thing is, I have no idea how to do this. I learned a lot in UE4 and every day it surprises me more and more. The eyes of my character are not standard and therefore asked for help.

avatar image CloudSnow Oct 05 '18 at 10:20 AM

could you show me how to make those eyes again? I can't do anything.

avatar image IndieGameCove Oct 21 '18 at 03:32 PM

sorry for the delay in responding. have you gotten it figured out or if not what's not working?

avatar image CloudSnow Nov 29 '18 at 03:00 PM

good day friend. and I'm sorry for my long absence. I could move my eyes.. but if I turn the Actor horizontally by 90 degrees, then the eyes are already working incorrectly, if I turn again in the same direction, everything works correctly... That's the first problem. Now the second. How to force the character to pay attention to the object. He just doesn't want to work right a little bit.alt text

screenshot-3.png (376.6 kB)
screenshot-1.png (498.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question