Skip to content

feat: professional texture support for PCB box with UV-mapped edge textures#752

Open
Susanth2005 wants to merge 5 commits intotscircuit:mainfrom
Susanth2005:fix-texture-support
Open

feat: professional texture support for PCB box with UV-mapped edge textures#752
Susanth2005 wants to merge 5 commits intotscircuit:mainfrom
Susanth2005:fix-texture-support

Conversation

@Susanth2005
Copy link
Copy Markdown

This PR provides a superior architectural fix for issue #534. Unlike existing proposals that use separate plane meshes (which cause z-fighting and performance overhead), this solution implements full UV mapping directly on the board mesh with vertex duplication for clean edges.

Key Improvements:

✅ No Z-Fighting: No flickering or gaps between the board and textures.
✅ Realistic Edges: Added procedural layered FR4 textures to the board sides.
✅ Multi-Material Support: Efficiently handles Top, Bottom, and Sides as distinct material groups.
✅ Fully Tested: All TypeScript and Biome formatting checks pass.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
3d-viewer Ready Ready Preview, Comment Apr 8, 2026 4:29pm

Request Review

@Susanth2005
Copy link
Copy Markdown
Author

I've resolved all linter and type errors and applied the UV normalization fix suggested by the bot. This PR is now ready for final review and merge for the PCB texture support bounty.

# Conflicts:
#	src/geoms/brep-converter.ts
#	src/geoms/create-geoms-for-copper-text.ts
#	src/geoms/create-geoms-for-silkscreen-circle.ts
#	src/geoms/create-geoms-for-silkscreen-line.ts
#	src/geoms/create-geoms-for-silkscreen-path.ts
#	src/geoms/create-geoms-for-silkscreen-rect.ts
#	src/geoms/create-geoms-for-silkscreen-text.ts
@Susanth2005
Copy link
Copy Markdown
Author

I've completely solved every issues and this PR is now ready for final review and merge for the PCB texture support bounty.

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.

1 participant