qq

CIVILIU | TAPE MEASURE — COMPLETE ONE-PASS PRODUCTION BRIEF
For Claude Code on Windows / PowerShell

MISSION
Act as a senior 3D technical animator, motion designer, audio designer and Remotion/Three.js developer. Build and render the COMPLETE finished Persian engineering reel in the current project directory, CIVILIU-TapeMeasure. This is an execution task, not a request for a plan, tutorial, code snippets or a demo. Work from the files already present, create the editable project, validate it locally and render the final MP4 in this same run. Do not stop for a preview approval or produce a separate preview video. Make reasonable creative decisions yourself. Ask only if a genuine blocker makes progress impossible. Minimize model calls, repeated analysis, tool output and dependency changes; the user has limited Claude usage credits. Do not sacrifice engineering accuracy or final visual quality to save credits.

1. EXISTING ENVIRONMENT AND ASSETS
- Windows PowerShell, Node.js, npm, Three.js, Vite, Remotion, @remotion/cli, @remotion/three, React, React DOM, @react-three/fiber and FFmpeg are already installed or were installed in this project. Remotion packages were reported compatible at 4.0.548. Inspect local package.json and installed versions; use them rather than reinstalling everything. No Blender, paid API, cloud rendering, paid stock, AI voice service or unnecessary new package. Use npm.cmd / npx.cmd on Windows where necessary. Keep existing files intact.
- Look in the current directory and its asset folders for reference.mp4 (or another reference video), voice.mp3 / voice.m4a / voice.wav (or the user's recording), and logo.png (or supplied logo). Detect real filenames, including spaces, and use safe quoted paths. Do not rename or overwrite originals. Copy needed assets into public/ as appropriate for Remotion.
- If the reference video is present, use FFprobe and a small set of FFmpeg-extracted frames/contact sheets to actually examine it. Do not pretend to have watched it if inaccessible. The reference supplied earlier is vertical, 512x910, 30 fps, about 46.855 seconds; it shows a yellow tape blade, close-ups of a metal L-hook, rivets, timber, a workshop, pull/push demonstrations, thickness annotations and a comparison. Use this visual language and cinematic pacing as inspiration; create original geometry, text, staging and audio. No reference footage, watermark, subtitles, music or audio in the finished reel.
- If the user's narration exists, measure its duration with FFprobe and use its actual phrase timing as far as practically possible; it is a PRIVATE TIMING GUIDE ONLY. Use local audio analysis/silence detection and the script below; if local transcription is already available, use it only if helpful. Do not upload audio or use paid transcription. If exact phrase boundaries cannot be determined, estimate from duration and pauses and report that limitation. Do not embed the voice in the final video. If no voice exists, continue using the default 40-second timeline. If no logo exists, use a small clean CIVILIU wordmark without inventing a graphic logo, and report it. If no reference exists, follow this complete brief.
- Previous npm output mentioned six high-severity dependency advisories and an esbuild postinstall warning. Inspect if relevant; do not run npm audit fix --force, globally weaken PowerShell security, blindly approve all install scripts, or change global settings. If a necessary local dependency actually fails, diagnose and use a targeted safe fix or request the minimum permission needed. Report unresolved warnings honestly.

2. NON-NEGOTIABLE OUTPUT RULES
- Final: 1080 x 1920 pixels, vertical 9:16, 30 fps, MP4, H.264, AAC audio, yuv420p where applicable, good quality suitable for Instagram Reels. Target about 35–45 seconds according to the actual voice recording; use 40 seconds if none is present. If the recording is outside that range, prioritize usable timing over forcing the range.
- NO narration audio, NO AI speech, NO narration subtitles, NO closed captions or word-by-word karaoke text, and NO transcription displayed. The user will add their edited narration and subtitles later.
- YES to original Persian animated headline(s), technical labels, short engineering annotations, arrows, dimension lines, numbers, comparison indicators, and CIVILIU branding. These are not narration subtitles. Keep the text minimal and meaningful; no long sentences on screen.
- YES to realistic synchronized mechanical sound effects, short transition whooshes, subtle impact/click sounds and optional very quiet instrumental background music if appropriate. Effects must be embedded in the final MP4, not merely supplied separately. Leave plenty of room in the mix for later voice-over; no speech, vocals or loud music. A separate effects WAV is a useful extra only if it can be produced cheaply from the same timeline; do not delay the final video for it.
- Save the finished file as out/CIVILIU-TapeMeasure-FINAL.mp4 and keep the full editable project. Scene durations and audio cue times must be adjustable in one clearly named timeline/config file so a later voice edit is easy. No separate preview MP4, no approval checkpoint, no alternate versions unless needed to recover from a failed render.

3. VISUAL DIRECTION — PREMIUM REALISTIC ENGINEERING CGI
Aim for the reference's tactile 3D detail, macro photography, mechanical storytelling and smooth cuts, NOT a flat infographic, cartoon, toy, LEGO or low-poly look. Make a fresh CIVILIU version. The background must remain LIGHT in every scene (warm off-white / pale gray workshop or bright studio, never black/navy). Brand accent palette: navy #10243A, electric blue #1677FF, cyan #00C9E8 and white; use red sparingly for an incorrect example, green for correct measurement. The yellow tape blade remains naturally yellow, steel remains steel and timber remains natural.
- Realistic PBR-like materials: brushed satin steel, small realistic bevels, rivet heads, slight surface wear, yellow flexible measuring blade with accurate dark markings, molded rubber/plastic housing, timber with visible lengthwise grain and end grain. Use local assets, procedural textures or seeded canvas textures. Do not use flat solid colors for all surfaces. Avoid cartoon edge outlines, excessive gloss, plastic-looking wood and fake metallic mirror surfaces.
- Build dimensional geometry, not flat planes masquerading as objects. Model a credible tape housing with exit slot, blade with subtle transverse curvature, L-shaped end hook with thickness, rounded corners, two or three plausible rivets and visible elongated slots, plus wooden blocks and wall. The close-up hook and blade are the hero; prioritize their quality over unnecessary background props. Keep proportions consistent across shots.
- Bright soft studio lighting with a directional key, fill, rim, realistic contact shadows and environment reflections generated locally (e.g. RoomEnvironment/PMREM if compatible). Use restrained depth of field only if supported and stable; never blur the actual engineering detail. Use perspective cameras, deliberate macro framings, gentle orbit/dolly/zoom and clean cuts. No chaotic camera movement, flicker, random particles, huge decorative graphics, excessive transitions or spinning objects without purpose.
- Render camera compositions specifically for portrait video, not a cropped landscape scene. Put key mechanical details in the center. Maintain practical UI safe zones: roughly 100 px left, 170 px right, 220 px top and 350 px bottom for important text or logo; allow the objects/background to fill the whole frame. Keep graphics legible at phone size and use contrasting but unobtrusive dimension labels.
- Use a Persian-capable installed or local font such as Vazirmatn if available, otherwise Tahoma or another verified Persian font. Ensure joined Persian letters, correct RTL, readable Persian digits and no broken glyphs. Text via HTML/CSS overlays in Remotion is preferable to baked WebGL text. Keep numeric dimensions readable with appropriate direction isolation. Do not invent a new brand logo.

4. ENGINEERING MODEL — ABSOLUTE ACCURACY
The end hook intentionally has longitudinal travel approximately equal to its own thickness, compensating for whether the inner or outer face is the reference surface. For THIS illustrative model choose t = 1.5 mm; it is not a universal specification for all tapes. The full end-to-end travel is 1.5 mm, NOT plus/minus 1.5 mm. Never claim this eliminates every possible source of measurement error; it compensates for hook thickness.
- Keep one physically consistent unit scale. Let +X run along the tape from hook toward housing; let the calibrated blade zero datum be X=0 in blade-local coordinates. In the fully PULLED (external measurement) state the vertical hook flange occupies X=-t to X=0, so its inner face (toward the blade/housing) is at zero. In the fully PUSHED (internal/butting measurement) state the flange occupies X=0 to X=+t, so its outer face (away from housing) is at zero. Thus total longitudinal translation is t. Model the hook assembly accordingly, allowing for bends/fillets without shifting the effective flat contact planes.
- The blade and rivet shanks/heads remain fixed relative to each other; the L-hook slides relative to them through elongated slots in its upper mounting plate. Slots must visibly allow travel without rivets passing through solid metal. If cylindrical shanks have diameter d, the nominal slot length is d+t along the slide axis (plus only tiny visual clearance if needed). The upper plate and vertical flange move together as one rigid component. No detached rivets, no stretching steel, no bending the hook to achieve travel, no lateral movement masquerading as longitudinal play, no collisions or clipping. Make the motion easy to see using macro zoom, a fixed datum line, or a labeled magnified diagram, not by falsifying real scale.
- Pull demonstration: seat the INNER face of the hook against the outside edge of a timber piece; tension in the blade shifts hook outward relative to blade. Show the blade extending over the timber toward the housing, with realistic contact. Push demonstration: butt the OUTER face against an inner wall; compression shifts hook inward relative to blade. Both effective zero reference faces coincide with the relevant contact surface in their own state. If demonstrating an inside distance between two walls, do not imply that a raw blade reading at the housing gives the entire gap without accounting for housing length. Prefer a local zero/contact demonstration or use a clearly defined reading plane at the second surface. Do not show false numeric readings.
- Blade markings must have consistent intervals. If using a metric example, use 1 mm graduations with longer 5 mm and 10 mm marks and centimeter numbers at proper distances. Avoid random numerals, mirrored digits or a mixture of imperial and metric markings. The label '۱٫۵ میلی‌متر' is the example hook thickness/travel, not a universal claim. Show thickness and travel with separate correctly oriented dimension lines parallel to the slide axis, then an equality graphic. Keep both surfaces distinct.

5. STORYBOARD / TIMING
Default timeline is 40 s / 1200 frames at 30 fps. Retiming to the provided voice is preferred. Use the actual recording for pacing, not necessarily every word of the following planning script. Keep the same explanatory order and adjust transitions/cues together. No subtitles from this script.

A | 0–4 s | HOOK / CURIOSITY
Open immediately with striking extreme macro of the metal hook on yellow blade at a timber edge. Show a short two-stop rattle of the hook in its slots, with sharp but natural metallic clicks. Slow push-in; no intro logo animation. Short headline: «چرا سر متر لق می‌زنه؟» Make the problem visually obvious even muted.

B | 4–8 s | INTENTIONAL DESIGN
Angle change to close-up of the rivets and slots. A brief red question mark or «خرابی؟» can transition into blue «طراحی عمدی». Reveal the slots via a clean cutaway or a short controlled exploded view, then reassemble with realistic metal contact. Keep hook, blade and rivets clearly identifiable. Do not make rivets look broken or loose. Use a short mechanical click and restrained whoosh.

C | 8–15 s | EXTERNAL / PULL
Show an attractive timber block in the bright workshop. Hook its outside edge; blade is pulled toward housing, relative hook travel outward. Cut from 3/4 establishing shot to tight side view with fixed zero datum. Highlight moving hook subtly, add an accurate blue direction arrow and short label «اندازه‌گیری خارجی» / «کشیدن». The hook inner face remains seated against the wood during tension; blade and rivets shift relative to that face. Include tape extension, slide and stop sounds timed to visible movement.

D | 15–22 s | INTERNAL / PUSH
Use a new light workshop angle or two upright surfaces. Push the hook against the inside wall. Show the outer contact face, relative hook motion inward, and clear zero datum at the wall. Blue/cyan arrow in the correct direction, label «اندازه‌گیری داخلی» / «فشار دادن». Do not claim a full wall-to-wall reading without a valid reading method. Play realistic slide and soft wall-contact click. Camera follows the mechanism.

E | 22–30 s | WHY IT WORKS / DIMENSION REVEAL
Stable macro side profile with both stop states (overlay ghost or split-screen, with explicit distinction). Add precise extension lines, arrowheads and two dimensional indicators: «ضخامت زبانه ≈ ۱٫۵ میلی‌متر» and «میزان جابه‌جایی ≈ ۱٫۵ میلی‌متر». A compact note «در این نمونه» must make the chosen value non-universal. Show the equality visually: «جابه‌جایی = ضخامت زبانه». Keep the true geometry; use camera magnification to make tiny distances visible. Use small UI tick/dimension reveal sound, not noisy effects.

F | 30–36 s | COMPENSATION / COMPARISON
Show both configurations side by side or in stacked portrait panels: «کشیدن» and «فشار دادن». Align the effective zero plane with the correct contact face in each. Optionally flash a ghosted locked-hook counterexample only if the geometry and error sign are correct; otherwise omit it. Use a small green confirmation mark and label «جبران ضخامت زبانه». Do not depict perfect general accuracy or invented measurements. Make this the satisfying visual explanation, not a wall of text.

G | 36–40 s | PAYOFF / BRAND
Return to a polished hero shot of tape on wood, with a final clean hook movement and subtle camera drift. Small text «طراحی هوشمندانه» and supplied CIVILIU logo, legible inside safe area. No long outro or call-to-action unless it fits naturally; do not add a spoken tagline. End smoothly with audio tail, no abrupt cutoff.

Persian narration reference (not output audio or captions):
«تا حالا دقت کردی چرا سر متر فلزی همیشه یه مقدار لق می‌زنه؟
فکر می‌کنی خراب شده یا پرچ‌هاش شل شده؟
جالبه بدونی این لقی کاملاً عمدی طراحی شده!
وقتی طول خارجی یه قطعه رو اندازه می‌گیری، زبانه متر به سمت بیرون کشیده می‌شه.
اما وقتی فاصله داخلی دو سطح رو اندازه می‌گیری، زبانه به سمت داخل حرکت می‌کنه.
این جابه‌جایی، که توی بعضی مترها حدود یک‌ونیم میلی‌متره، دقیقاً برابر ضخامت خود زبانه‌ست.
اینجوری ضخامت زبانه باعث خطا توی اندازه‌گیری نمی‌شه.
پس چیزی که فکر می‌کردی ایراد متره، در واقع یه جزئیات هوشمندانه مهندسیه!»

6. SOUND DESIGN — INCLUDED IN FINAL MP4
Build a coherent local sound track: small metallic hook rattle (two distinct clicks), tiny steel slide, tape blade extension/retraction texture if visibly moving, rivet/assembly click, soft wood/wall contact, subtle transition whooshes and graphical reveal ticks. Use existing locally supplied licensed effects if any; otherwise create original procedural WAVs using Node.js or FFmpeg (short filtered noise, damped resonances, transients, envelopes, etc.). No external services needed. Avoid toy-like beeps, exaggerated explosions, harsh peaks or constant whooshes. If adding background music, use supplied licensed or original quiet instrumental only; omit rather than take an unlicensed track or create a distracting one. Embed effects and optional music in the final video; do NOT embed the user's voice. Keep sound levels moderate, with headroom (e.g. peaks around -6 dBFS or lower for this effects-only mix) and no clipping. Use exact frame-based audio cue positions and fade tails. Ensure no silent placeholders if effects were promised.

7. IMPLEMENTATION AND RENDERING
- Use Remotion with @remotion/three ThreeCanvas / React Three Fiber and Three.js. Reuse shared model components, lighting and material textures. Build one full composition (e.g. CiviliuTapeMeasure) at 1080x1920, 30 fps with a duration determined from the central timeline. Use frame-driven deterministic transforms, interpolate/spring with bounded mechanical travel, and seeded textures; no wall-clock motion, Math.random per frame, or uncontrolled requestAnimationFrame loops. Use useCurrentFrame for motion and actual sequence-local timing consistently. Avoid incompatible postprocessing. Keep the final render deterministic and performant on a Windows laptop.
- Suggested files: src/index.tsx, src/Root.tsx, src/timeline.ts, src/components/TapeMeasure.tsx, src/components/Workshop.tsx, src/scenes/, src/components/EngineeringOverlay.tsx, public/assets/, public/sfx/, out/ and README.md. Adapt if existing structure differs. Add minimal npm scripts for studio/render. No unrelated refactor. Use local assets and ensure all textures and audio are loaded before rendering. If additional compatible dependencies truly are required, install only those needed, preserving existing Remotion version compatibility.
- Optimize sensible mesh complexity, texture resolution and shadow maps; reuse geometry/materials and avoid regenerating textures each frame. Prefer stable standard materials and affordable lighting over heavy real-time effects. Start with conservative render concurrency (e.g. 2) and adapt to RAM/GPU errors, not a large unsafe fixed number. Choose supported Chromium WebGL/GL settings based on the actual local environment. Do not insist on hardware acceleration if it fails; use a compatible fallback or lower expensive effects while keeping final resolution.
- Perform a small INTERNAL smoke check automatically: inspect composition metadata and render a few representative still frames from A, C, D and E (low scale is fine for checks), not a 5-second preview video. Verify visually where tools allow: steel, slots/rivets, wood contact, lighting, text, no cropping and correct direction/datum. Verify start/stop transforms mathematically. Fix blocking issues yourself. Delete or keep internal QA stills in a clearly separate temp/qa folder; do not present them as the final result. Do not wait for user approval. Avoid repeated costly iterations; render the full final once after these checks unless a failure requires a retry.
- Render full MP4, e.g. using the installed CLI command (adapt to actual entry point/options): npx.cmd remotion render src/index.tsx CiviliuTapeMeasure out/CIVILIU-TapeMeasure-FINAL.mp4 --codec=h264 --concurrency=2. Check local CLI help for any extra flags only if needed. If encoding requires FFmpeg postprocessing, preserve image resolution and sound sync; avoid unnecessary lossy re-encoding. Target high visual quality and reasonable file size (roughly 12–20 Mbps if controlling bitrate, or a suitable H.264 quality setting; do not use conflicting encoder settings).
- After render, use FFprobe to verify output exists, is nonempty, 1080x1920, 30 fps, expected duration, H.264 and an AAC audio stream with synchronized effects. Check audio is not silent and the narration input is not part of the output. Verify the scene timeline spans the complete duration and no missing assets or black frames remain at transitions. Keep output only if genuinely generated and valid. If rendering fails, report exact error and last completed step; never falsely claim success or deliver only a plan.

8. HANDOFF
Deliver the final MP4 in the specified location and the editable project. Add a short README with the actual preview/render commands, where to change individual scene durations and audio cues, and the final file path. In the final Claude response, be very concise and reply in Persian: absolute final MP4 path, duration/resolution, confirmation that mechanical sound and engineering text are included but narration and its subtitles are absent, and any material limitations (e.g. missing voice/logo/reference, approximate timing, rendering fallback or unresolved dependency warnings). Do not dump source code into chat. Do not request approval between stages. Start now, complete the project and render the final video.
 

نوشته های اخیر

دسته بندی ها

سبد خرید