x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

アクターがカメラに映っているかを判別したい

アクターがゲーム中のカメラが映し出す範囲内にいるかどうかを判別し、情報を受け取りたいです。そのような機能・ノードはありますでしょうか。よろしくお願いします。

Product Version: UE 4.13
Tags:
more ▼

asked Oct 02 '16 at 02:22 AM in Japanese

avatar image

katutojiWazen
162 32 32 41

avatar image katutojiWazen Oct 02 '16 at 02:26 AM

アクターが柱などの影に隠れているかどうかについては問わないです。

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

1 answer: sort voted first

「カメラの前ベクトル」と「カメラ座標から判定したいアクター座標への方向ベクトル」から角度を出して、閾値未満なら映っているとみなすという風にするのはどうでしょうか?完璧とは言えないですが…

判定したいアクターに下の処理をいれます

alt text

下のGIFのようになりました(青色のキューブが映っているか判定しています)

alt text

check.png (344.8 kB)
checkgif.gif (3.5 MB)
more ▼

answered Oct 05 '16 at 10:47 PM

avatar image

tamfoi
1.9k 74 6 33

avatar image tamfoi Oct 06 '16 at 03:54 AM

下の2パターンでも同じようなことが出来ます。それぞれ微妙に違いがあるので試してみてください。

alt text

alt text

wasr.png (109.4 kB)
cw.png (138.3 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