minemap-camera-constraints-and-screenshot

Control MineMap camera limits and export pixel-range screenshots via engine APIs.

3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-camera-constraints-and-screenshot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: minemap-camera-constraints-and-screenshot
Source: https://github.com/ming1zhou88/minemap-skills/tree/main/skills/minemap-camera-constraints-and-screenshot
Command: npx skills add https://github.com/ming1zhou88/minemap-skills --skill minemap-camera-constraints-and-screenshot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Clarifies how to manage MineMap camera constraints and screenshot workflows, including near clipping thresholds, region-based camera limits, and the distinction between engine APIs and demo utilities.

Core Features & Use Cases

  • Public engine APIs such as map.setNearClippingPlaneMinThreshold(num) and map.printScreen(range, download?)
  • Demo-oriented tools like CameraRegionLimiter used for region-based camera control, not core API
  • Guidance on correct usage and common pitfalls, balancing depth precision and viewport constraints in demos

Quick Start

Call map.printScreen with a defined pixel range to export a targeted screenshot.

Frequently Asked Questions about minemap-camera-constraints-and-screenshot

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export a MineMap screenshot using a specific pixel range?

To export a MineMap screenshot, call the map.printScreen API with a defined pixel range. You can pass a download flag to control whether the screenshot exports directly, streamlining your viewport capture workflow.

How does the near clipping plane threshold affect MineMap camera constraints?

The near clipping plane threshold enforces positive depth precision limits on the MineMap camera. Setting it via map.setNearClippingPlaneMinThreshold ensures objects rendering too close to the viewport are properly constrained without clipping errors.

What is the difference between core MineMap camera APIs and demo utilities?

Core MineMap camera APIs include map.setNearClippingPlaneMinThreshold and map.printScreen, while demo utilities like CameraRegionLimiter handle region-based camera control. Separating them prevents incorrectly applying demo constraints to production engine logic.

Can I use CameraRegionLimiter to enforce camera limits in my MineMap application?

CameraRegionLimiter is a demo-oriented tool for region-based camera control, not a core MineMap engine API. Use it to balance depth precision and viewport constraints in demos, but rely on core APIs for production applications.

Why does my MineMap camera depth precision fail when zooming close to objects?

MineMap camera depth precision fails near objects without a positive threshold constraint. Enforce a minimum near clipping plane value using map.setNearClippingPlaneMinThreshold to balance viewport depth and prevent rendering errors.

Does the MineMap screenshot API support automatic downloads?

Yes, the MineMap screenshot API supports automatic downloads. When calling map.printScreen with a pixel range, you can pass a download parameter to directly export the targeted viewport capture to your system.