[SG2]Imposter nodes and documents#7865
Conversation
|
It appears that you made a non-draft PR! |
This reverts commit dba3cd2.
There was a problem hiding this comment.
Is there a better place to put this hlsl file?
bencloward
left a comment
There was a problem hiding this comment.
I need to do a bit more work on this to test our the actual nodes themselves but I won't be able to do that until tomorrow, so I'm just going to submit this bit now and then look at it some more tomorrow when I can switch to your branch and try it.
|
|
||
| ## Description | ||
|
|
||
| The Imposter UV Node calculates the billboard positon and the virtual UVs for sampling. |
There was a problem hiding this comment.
How about we say: "The Imposter UV Node calculates the billboard position (fix the typo in this word) and the UV coordinates needed by the Imposter Sample node." We need to indicate that data output here is intended specifically for the Imposter Sample node.
| @"ImposterSample(HeightMapChannel, ViewDirectionTS, Parallax, Frames, Texture.tex, Texture.texelSize, Clip, Grid, UV0, UV1, UV2, Sampler.samplerstate, RGBA);", | ||
| new ParameterDescriptor[] | ||
| { | ||
| new ParameterDescriptor("Texture", TYPE.Texture2D, Usage.In), |
There was a problem hiding this comment.
Should this be an array texture?
There was a problem hiding this comment.
in the current set up it needs to be a single texture split into frames.
This reverts commit 7aadd3d.
bencloward
left a comment
There was a problem hiding this comment.
Making great progress on this!
xiaoxicici
left a comment
There was a problem hiding this comment.
I reviewed with Tracy live. Main discoveries are:
- Align heightmap port naming with the existing Parallax node.
- Texture size allows user input though would only work with square of 2s, something we might want to handle more elegantly, i.g. change the input field to dropdown selections. And user may have difference resolution on base color vs mask textures for example.
This is super valuable work and useful for users, so great job Tracy! LGTM!
Purpose of this PR
Add imposter nodes and related documents to the node library.

Testing status
Connect the outputs of the nodes to the context node in an sg2 graph, and no error is shown.
Comments to reviewers