3d-retina-resolution
Skill by MengTo
Renders a 3D canvas sharply on Retina and HiDPI displays. It covers explicit 200% rendering, synchronized renderer and post-processing sizes, correct pointer coordinates, and measured quality fallbacks.
Install 3d-retina-resolution
Built from the published package, never by AI.
git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Skills/agent-skills/3d/3d-retina-resolution ~/.claude/skills/3d-retina-resolutionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/MengTo/Skills /tmp/Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Skills/agent-skills/3d/3d-retina-resolution ~/.gemini/antigravity-cli/skills/3d-retina-resolutionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install 3d-retina-resolution in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill guides an assistant to render a 3D canvas sharply on Retina and HiDPI displays. It covers explicit 200 percent rendering, where a 1200 × 800 CSS canvas uses a 2400 × 1600 drawing buffer, and an Auto mode capped at 2×. It describes how to keep renderer and post-processing sizes in sync.
The skill also covers correct pointer normalization with getBoundingClientRect, resize handling with ResizeObserver, GPU limit checks, and fallbacks that report the actual effective scale. Verification steps compare canvas size with drawing buffer size. It is aimed at developers working on blurry WebGL output, high-resolution previews, or display-density changes, and it is written around Three.js.
Written from the project's SKILL.md and checked against it.
What it can do
- Fixed 200% renderingUses two drawing-buffer pixels per CSS pixel in each dimension while keeping layout and camera framing unchanged.
- Synchronized sizingResizes the renderer, composer, and app-owned render targets with consistent pixel ratios.
- Pointer normalizationNormalizes pointer coordinates from CSS space using getBoundingClientRect for raycasting.
- Display change handlingUses ResizeObserver with coalesced resizes and re-evaluates device pixel ratio in Auto mode.
- Budget and fallbackMeasures 1x and 2x frame time, checks GPU limits, and reduces optional post-effect resolution first.
- Verification checklistCompares canvas CSS size with canvas width, height, and drawing buffer size across test displays.
What you need
- A Three.js WebGL project with an existing renderer and camera
- A DPR 1 display and a Retina display for testing
Try asking
- Render my Three.js canvas at fixed 200% so it looks sharp on Retina.
- My WebGL output looks blurry on Retina. Check my resize logic for renderer and composer sizes.
- Check my pointer raycasting after switching to a higher pixel ratio.
Good to know
- Retina output does not fix blurry textures, coarse models, shadow maps, or low-resolution reflections.
- Auto mode may render at 1x on an ordinary display.
- A fixed 200% selection should stay fixed unless a hardware or allocation failure requires a visible fallback.
- CSS scaling or image-rendering: pixelated is not a substitute for the correct drawing buffer.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: agent-skills/3d/3d-retina-resolution/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
REFERENCES.md429 B -
SKILL.md6 KB -
agents/openai.yaml241 B
Alternatives to 3d-retina-resolution
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
3d-retina-resolution: common questions
Does 200% rendering make a 1200 × 800 canvas use 2400 × 1600 pixels?
Yes. The source says 200% uses two drawing-buffer pixels per CSS pixel in each dimension, which is four times the pixels of 100%, with layout and framing unchanged.
What is the difference between Fixed 200% and Auto?
Fixed 200% uses a pixel ratio of 2 regardless of device. Auto uses the device pixel ratio capped at 2, so it can render at 1x on an ordinary display.
Will higher resolution fix blurry textures?
No. The source says Retina output does not automatically improve blurry textures, coarse models, shadow maps, or low-resolution reflections, so those sources need separate checks.
How do I install 3d-retina-resolution?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is 3d-retina-resolution free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is 3d-retina-resolution safe to use?
It scores 93 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to 3d-retina-resolution?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
