assets: project logo, marketplace featured image, and generator scripts - #277
Open
kmarchais wants to merge 5 commits into
Open
assets: project logo, marketplace featured image, and generator scripts#277kmarchais wants to merge 5 commits into
kmarchais wants to merge 5 commits into
Conversation
Contributor
|
📖 Docs preview: https://kmarchais.github.io/mmgpy/pr-277/ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #277 +/- ##
=======================================
Coverage 86.19% 86.19%
=======================================
Files 29 29
Lines 3832 3832
Branches 692 692
=======================================
Hits 3303 3303
Misses 326 326
Partials 203 203 ☔ View full report in Codecov by Sentry. |
Contributor
Benchmark Results Summary
Total: 18 benchmarks Benchmark Comparison ResultsStatus: ✅ PASS 18 benchmarks passed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two ready-to-use marketing assets for the Blender marketplace listing (and general project branding), plus the scripts that produce them so they can be regenerated or tweaked without re-doing the work by hand.
Assets
Logo (
assets/mmgpy-logo.svg+.png)Wireframe icosphere with a top-heavy density gradient — communicates "remeshing" without copying MMG's panda mark. Single Blender-orange stroke (
#E87D0D), transparent fill, so the mark reads on both light and dark backgrounds.mmgpy-logo.svg— vector master (scales to any size)mmgpy-logo.png— 256x256 raster for the marketplace icon slotFeatured image (
assets/featured-image.png, 1920x1080)One Suzanne, split down the middle: left half is the stock triangulation, right half is the same surface remeshed via
pv.PolyData.mmg.remesh. Per-triangle colouring with MMG's in-radius-ratio quality on a RdYlBu colormap (red = thin triangle, blue = equilateral), windowed to[0.5, 1.0]so the warm tones stay visible on the original side. Each half has a quality-distribution histogram (bars sharing the same colormap as the surface) with a mean marker.Rendered with Cycles at 256 samples, denoised. Three-point area lighting (key + fill + rim) with matte PBR Principled BSDF on a low-ambient backdrop.
Scripts
scripts/generate_logo.pyPure-Python icosahedron-subdivider + 2D-projection SVG writer; no Blender dependency. Density gradient is implemented as selective per-face subdivision based on Y. Run with
uv run --no-project python scripts/generate_logo.py. Edit colour constants at the top to retheme.scripts/render_featured_image.pyEnd-to-end Suzanne render using
bpy+mmgpy==0.14.0+pyvista:Run with the command in the script's module docstring. Cycles render takes ~30 seconds; bpy is a ~370 MB one-time download.
Notes
pyproject.toml: extended thescripts/**/*.pyruff ignore set so render scripts can use whatever idioms make sense locally (longer lines, kwargs bags, render-time import ordering).