Need advice on how to highlight objects

0

Our project needs to highlight "selected" characters or objects. Ideally we could set a flag on an entity to cause it to be rendered with a silhouette outline or a glowing color or something like that. If there are multiple models in the scene that use the same material, the other instances of those models should not be affected.

The most promising clues I've found are some functions in IComponentRender:

SetCustomPostEffect

SetHUDSilhouettesParams

But so far I have not been able to get these to do anything.

Any ideas how to get these features working or other ways to achieve what I'm trying to do?

질문됨 7년 전190회 조회
6개 답변
0
수락된 답변

I found the solution using the legacy entities. I had to edit my PostEffectGroup xml file in Engine\Libs\PostEffectGroups. In that file, find the effect named "HudSilhouettes" and enable it (Set 'Active' to 1) and also make sure the effect named "Post3DRenderer" is not active.

Once those two settings are made in the xml file, calling SetHUDSilhouettesParams on a legacy IComponentRender works fine.

Amazon could add this to the new component system pretty easily.

답변함 7년 전
0

@REDACTEDUSER Didn't you make something like this? I tried looking for your post and couldn't find it.

답변함 7년 전
0

Ideally, I would like something like this:

Inline image 1

답변함 7년 전
0

Or similarly, something like this (this from the CryEngineV editor). I see parts of the code for this is present but I haven't been able to get it working yet.

답변함 7년 전
0

Mine was a shader to do glowing silhouettes. Sorry, but I just procrastinated on the release and still didn't tested in dept. I will try to release it in the current state and see what happens.

답변함 7년 전
0

Thanks for the feedback! We've contacted the team with a feature request for a non-legacy solution.

답변함 7년 전

이 게시물은 마감됨: 새 답변, 댓글 및 투표 추가가 비활성화되었습니다.

관련 콘텐츠