Search Issue Tracker

Fixed in 7.6, 8.3, 9.1, 10.1

Votes

0

Found in [Package]

5.13

Issue ID

1154328

Regression

No

[VFXExpression] Infinite recompile when sampling texture twice using UVs made with VFXExpressionRandom(true)

Package: Visual Effect Graph

-

Repro steps:
1. Import the attached package
2. Open the InfiniteRecompile VFX
3. Connect the InfiniteRecompile node's output to the graph
4. Observe an infinite recompile of the effect.

Expected outcome: the effect to compile only once.

Notes:
- Code overview:

//uv = new VFXExpressionCombine(VFXOperatorUtility.FixedRandom(0, true), VFXOperatorUtility.FixedRandom(1, true)); // <=== Works Fine
uv = new VFXExpressionCombine(new VFXExpressionRandom(true), new VFXExpressionRandom(true)); // <=== Causes an infinite recompile

// sample texture twice (issue only repros with two samples)
VFXExpression output1 =new VFXExpressionSampleTexture2D(inputExpression[0], uv, VFXValue.Constant((0f)));
VFXExpression output2 = new VFXExpressionSampleTexture2D(inputExpression[0], uv, VFXValue.Constant((0f)));

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.