跳到正文
Skillpedia
网站与界面(前端)7.2k · #13315

3d-four-seasons

它能做什么

这个技能指导智能体让一个 3D 场景随四季变化。适合构建带有季节控制的漫游或户外场景的开发者。

适用场景

  • ✓3D 漫游需要季节选项的时候。
  • ✓你想要一个能同时改变植被、光线和天空的季节选择器的时候。
  • ✓户外 3D 场景需要展示积雪、秋色或春花的时候。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/3d/3d-four-seasons/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/3d/3d-four-seasons/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的 3D 花园场景添加一个季节滑块,使其能在春、夏、秋、冬之间切换。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会设置一个共享的季节状态,包含四个混合值,然后同时应用每个季节的植被、地面、光线和天气变化。镜头和控制保持不变。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

3D Four Seasons

Keep one recognizable place across all four seasons. Each season should change several mutually consistent visual cues while preserving camera state and interactions.

Author the seasonal identity

Inventory deciduous trees, evergreens, exposed surfaces, sheltered surfaces, lights, sky, and existing weather. Use species and climate appropriate to the project; the table is a temperate-scene starting point.

Season Foliage and ground Light and atmosphere Motion
Spring Fresh foliage; blossom on appropriate species Soft warm daylight; gentle haze Sparse petals or young leaves
Summer Dense deep greens; full ground cover Stronger daylight; readable shaded greens Restrained leaf drift and breeze
Fall Species-specific amber, red, and brown; litter Lower warm sun; golden haze More falling leaves
Winter Bare deciduous branches; retained evergreens; exposed snow Cool sky fill; pale sun; warm interiors Optional sparse snow; little leaf drift

Choose particle effects only when they serve the scene. A seasonal selector does not require a storm or a full weather simulator.

Share one state

Use a four-component blend in the order [spring, summer, fall, winter]. Accept autumn as an alias for fall, then normalize to one internal key. The weights start nonnegative and sum to one.

const presets = {
  spring: [1, 0, 0, 0], summer: [0, 1, 0, 0],
  fall: [0, 0, 1, 0], winter: [0, 0, 0, 1],
};
const weights = [0, 1, 0, 0];
let target = presets.summer;
function setSeason(name) {
  const key = name === 'autumn' ? 'fall' : name;
  if (!Object.hasOwn(presets, key)) return false;
  target = presets[key];
  return true;
}
function stepSeason(dt, reducedMotion = false) {
  const a = reducedMotion ? 1 : 1 - Math.exp(-1.4 * Math.min(Math.max(dt, 0), 0.05));
  for (let i = 0; i < 4; i++) weights[i] += (target[i] - weights[i]) * a;
}

Feed the same state into material uniforms, sky, sun/fill lighting, particle density, and optional ambient audio. A new selection should redirect the current blend, not queue another animation or reset to summer. Resolve each result from authored base values and weights; repeatedly tinting last frame's color causes drift.

Change foliage and snow convincingly

Use species-specific color palettes and stable per-instance IDs. Gradually thin deciduous foliage for winter using a deterministic threshold or dither. Preserve evergreen coverage. Apply matching visibility and wind rules to shadow/depth materials so absent leaves do not cast summer shadows.

For inexpensive settled snow, combine winter weight with upward-facing world-space geometric normals and an exposure mask:

snow = winterWeight * smoothstep(0.3, 0.85, worldNormal.y) * exposure

Blend toward a pale, rough snow material. Upward normal alone also whitens sheltered tables and indoor floors; tag exposed objects or supply shelter masks. A material overlay does not add thickness or change silhouette. Add selective snow-cap geometry only for close-up edges where depth matters. Keep falling snow intensity separate from settled coverage if the scene models accumulation and melt.

Keep the transition responsive

Preallocate particle pools and reuse materials/geometry. Change uniforms rather than recompiling shaders or rebuilding the world. Preserve existing material hooks when extending shaders and use stable program cache keys; match the installed renderer's shader chunks instead of assuming an old injection point exists.

Keep season independent of time of day and weather. Derive a final lighting state from those inputs once, so several controllers do not overwrite the same sun or fog values. Refresh expensive environment maps at controlled state changes, with caching where possible.

Use keyboard-accessible controls with a visible selected state and updated accessible labels. Under reduced motion, apply the chosen seasonal appearance immediately and retain a composed still scene. Pause continuous animation while hidden.

Verify

Capture all four seasons from the same camera. Each should be recognizable without its label. Rapidly switch spring → winter → summer → fall mid-transition and check for color drift, stale shadows, allocation spikes, and lost camera controls. Verify snow exposure indoors/outdoors, evergreen retention, particle count, and desktop/mobile rendering.

Read REFERENCES.md. Seijaku demonstra

常见问题

每个季节都需要重建整个场景吗?

不需要。它混合已有的元素,因此场景仍然可以辨认。

所有季节都需要粒子效果吗?

不需要。技能说明,粒子效果只应在对场景有帮助的地方使用。

可以用 autumn 代替 fall 吗?

可以。技能接受 autumn 作为 fall 的别名。

详情

作者的原始描述

Add coordinated spring, summer, fall, and winter states to a 3D scene, blending foliage, sunlight, sky, ground materials, snow, and particles without rebuilding the world. Use for seasonal controls, architectural walkthroughs, and outdoor scenes with four-season transitions.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13315
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能