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"

[Feature Request] SceneCaptureComponent2D::Project()

I would like to be able to project from a world location, to a pixel location, on a SceneCaptureComponent's render target, so I can render icons over a mini-map.

Currently, I am rendering mini-map icons as billboard components in the captured scene, but those Icons are cropped by the bounds of the MiniMapWidget.

I would like to be able to draw the Icons on top of the mini-map, and clamp them to the bounds of the mini-map, so they slide along the edge. To place the icons, I would need to project a 3D world location to a 2D location on the texture, and add that to the 2D coordinates of the mini-map to get the screen location where I would render the icon.

The problem is, as far as I know, you can only project to a HUD's Canvas, and I have not found any functions for projecting to a SceneCaptureComponent2D.

so I'm asking for a SceneCaptureComponent2D::Project() function, exposed to blueprint, and maybe a SceneCaptureComponent2D::Deproject() function as well.

(P.S. I would also love to know why a SceneCaptureComponent2D doesn't have a mesh in the editor, like the Camera, so you can see where its pointing, or better yet: why even have a SceneCaptureComponent2D, when you could just make that an optional function for a camera?)

alt text

Product Version: UE 4.8
minimap.gif (3.0 MB)
more ▼

asked Aug 10 '15 at 08:02 AM in Blueprint Scripting

avatar image

9.6k 319 205 449

avatar image ScottSpadea Sep 07 '15 at 02:29 PM

Bump alt text

avatar image Shadowriver Sep 07 '15 at 03:23 PM

Post feature requests on feedback forum, they are being collected there ;]

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

0 answers: sort voted first
Be the first one to answer this question
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