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"

What does ResolvedView.WorldCameraOrigin actually do?

I just came across this function when checking Ryan Bucks guide for creating volumetric fog. It appears to be used in a custom material node to somehow get the camera position but I am not entirely sure if this is correct.

So do you have any suggestions or actual answers to what ResolvedView.WorldCameraOrigin does?

Also do you know if/where can I find some documentation about the parameters or built in variables that I can access from inside custom material nodes?

Thank you!

Product Version: UE 4.18
more ▼

asked Nov 22 '17 at 09:20 PM in Rendering

avatar image

1 1 1

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

1 answer: sort voted first

That line of code is a uniform shader parameter associated with a view. Here's the index. link text

It does indeed get the the world camera position. You can call these in code with View. or ResolvedView.

Example, return ResolvedView.AtmosphericFogSunDirection;alt text

This get the Directional light (needs the AtmosphericFogSun flag on the light set).

Heres the index for uniform shader parameters associated with a primitive link text.

Take a look inside the LocalObjectBounds node in the material editor, note it uses LocalObjectBoundsMin and LocalObjectBoundsMax called in code with Primitive.

Hope that helps.

more ▼

answered May 27 '18 at 01:50 PM

avatar image

121 5 6 10

(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