Skip to content

Conversation

@Sahil-Gupta584
Copy link

@Sahil-Gupta584 Sahil-Gupta584 commented Jan 2, 2026

Closes #3468

Do you have any suggestion ?

Current Implementation:

cursorful-video-1767354987148.mp4

@timon-schelling
Copy link
Member

!build

@timon-schelling
Copy link
Member

timon-schelling commented Jan 2, 2026

I suggest adding a flag that allows merging adjacent tiles (should be on by default in my opinion).

Should be optional, because not merging can also be useful for example in this usecase.
image

@github-actions
Copy link

github-actions bot commented Jan 2, 2026

📦 Build Complete for 7073daa
https://59335d22.graphite.pages.dev

@Sahil-Gupta584
Copy link
Author

Sahil-Gupta584 commented Jan 3, 2026

Merged:
image
Unmerged:
image

(have renamed Merge to Merge Adjacent Tiles )

Looks good now ? @timon-schelling

@timon-schelling
Copy link
Member

That's just merging rows, not every adjacent tile. Can you fix that?

@Sahil-Gupta584
Copy link
Author

That's just merging rows, not every adjacent tile. Can you fix that?

image
  1. ig think all adjacent tiles(rows and columns) are merging already.
  2. you mean there shouldnt be gap btn 4 boxed-adjacent tiles?

@timon-schelling
Copy link
Member

Screenshot_20260103_164937_Chrome.jpg

As you can see here in your screenshot, row are merged, collums are not merged.
I can tell because the side has indents.

@TrueDoctor
Copy link
Member

Could we just make the shape be boxes and then use a boolean union operation to merge them? Or we could just use a manual flood fill to build contiguous regions

@Sahil-Gupta584
Copy link
Author

I tried using flood fill approach ( ig first one will be heavier):

cursorful-video-1767593925927.mp4

@timon-schelling
Copy link
Member

!build

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

📦 Build Complete for de5dc82
https://0c9fbd34.graphite.pages.dev

@Keavon
Copy link
Member

Keavon commented Jan 5, 2026

The node is currently nondeterministic. It produces different data every evaluation.

@Keavon Keavon changed the title adding qr code node New node: QR Code Jan 5, 2026
Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. The most critical one is making the node deterministic.

@Keavon Keavon marked this pull request as draft January 5, 2026 21:32
@TrueDoctor
Copy link
Member

@Sahil-Gupta584 Due to the use of a Hash Set which uses randomization under the hood, the flood fill algorithm will start from a different point each time, leading to visually identical but different output in each evaluation. This should be relatively easy to fix since in some cases, the HashSet you used is just not necessary. You could for example replace the HashSet in initial calculation of the remaining pixels with a Vec etc., but please do yourself the favor of trying to understand the algorithm that is implemented and fix it without relying on ai tools for this task. The function is pretty sure and this might take a bit longer, but I think this would be a good learning opportunity

@Sahil-Gupta584
Copy link
Author

sure, thanks for the suggestions, looks interesting for me also!

@Sahil-Gupta584
Copy link
Author

So i tried making code more deterministic as well added few comments for understanding working.

@timon-schelling
Copy link
Member

!build

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

📦 Build Complete for 869a5f8
https://fa674ee4.graphite.pages.dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

QR Code Node

4 participants