RodZill4/material-maker

Random nodes will "jitter" on preview2d in some occasions

Opened this issue · 1 comments

Material Maker version:
1.4a

OS/device including version:
Windows 11
Lenovo laptop with a NVIDIA GeForce RTX 2060

Issue description:
On some rare occasions, trying to preview a random node output on preview2d will cause it to "jitter" for a few seconds, appearing to rapidly change seeds, before stabilizing in a single state
When the bug occurs in a material, the jitter will occur even on nodes that are not connected to the shader.

Steps to reproduce:
Bug can be reproduced with the following node chain:

{"connections":[{"from":"transform2_4","from_node":"node_transform2_4","from_port":0,"to":"blend2_2","to_node":"node_blend2_2","to_port":3},{"from":"voronoi_triangle","from_node":"node_voronoi_triangle","from_port":1,"to":"warp","to_node":"node_warp","to_port":1},{"from":"transform2_3","from_node":"node_transform2_3","from_port":0,"to":"blend2_2","to_node":"node_blend2_2","to_port":1},{"from":"warp","from_node":"node_warp","from_port":0,"to":"transform2_3","to_node":"node_transform2_3","to_port":0},{"from":"warp","from_node":"node_warp","from_port":0,"to":"transform2_4","to_node":"node_transform2_4","to_port":0},{"from":"warp","from_node":"node_warp","from_port":0,"to":"blend2_2","to_node":"node_blend2_2","to_port":0}],"nodes":[{"name":"voronoi_triangle","node_position":{"x":-532.780029296875,"y":-187.380004882813},"parameters":{"randomness":0.85,"scale_x":3,"scale_y":1,"stretch_x":1,"stretch_y":1},"seed_int":1927375744,"type":"voronoi_triangle"},{"generic_size":1,"name":"transform2_3","node_position":{"x":27.2200317382813,"y":-87.379997253418},"parameters":{"mode":0,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0,"translate_y":-0.15},"seed_int":0,"type":"transform2"},{"generic_size":1,"name":"transform2_4","node_position":{"x":27.2200317382813,"y":172.619995117188},"parameters":{"mode":0,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0,"translate_y":0.2},"seed_int":0,"type":"transform2"},{"name":"warp","node_position":{"x":-252.779998779297,"y":-187.380004882813},"parameters":{"amount":0.065,"eps":0.2,"mode":0},"seed_int":0,"type":"warp"},{"generic_size":2,"name":"blend2_2","node_position":{"x":289.120025634766,"y":-182.480010986328},"parameters":{"amount1":1,"amount2":1,"blend_type1":12,"blend_type2":12},"seed_int":0,"type":"blend2"}]}

image

Previewing the "blend" node, or any node that takes it as an input will cause the seed on preview to jitter for a few seconds, the issue also occurs when replacing the preview of the glitched node chain by any other node, even if unconnected.
Jittering also sometimes happens when a node in the glitched chain is updated.

Example:

Screen.Recording.2024-11-30.193550.mp4

I'm also having this issue, in my case it makes using Advanced Tiler nodes difficult. It's hard to see the changes I'm making through the jittering.