10/06/2026
เทคนิคการเจนภาพแปลน 2D ให้เป็น 3D Floor Plan โดยที่ยังคงรักษาวัสดุให้แม่นยำ
เนื่องจากโมเดลที่ใช้ในการเจนภาพเพื่อเปลี่ยนภาพแปลน 2D ให้เป็น 3D คือ Nano Banana (gemini-3-pro-image) เป็นโมเดลประเภท Text-to-Image ซึ่งทุกภาพเกิดจากพรอมท์เพียงเท่านั้น โมเดลจะทำการ "ตีความและทำความเข้าใจ" ความหมายของ Prompt อย่างลึกซึ้งก่อนจะเริ่มเจนภาพ
ต่างจากโมเดลที่ใช้ใน Stable Diffusion หรือ ComfyUI (เช่น SD 1.5, SDXL, Flux) ที่จะสามารถใช้ ControlNet เป็นตัวช่วยควบคุมโครงสร้างและองค์ประกอบของภาพได้แม่นยำกว่า
เพราะฉะนั้น ในเมื่อเราไม่มีระบบตรวจจับเส้นของ ControlNet มาคอยล็อคตำแหน่ง สิ่งสำคัญที่สุดที่จะช่วยให้โมเดลประมวลผลได้ถูกต้องคือ "การระบุพิกัดและตำแหน่งของวัสดุในแต่ละห้องลงไปในพรอมท์โดยตรง" เพื่อทำหน้าที่เป็นเครื่องนำทางให้กับ AI โดยเราจำเป็นต้องอธิบายความสัมพันธ์เชิงพื้นที่ให้ชัดเจน ว่าห้องไหนอยู่ตำแหน่งใดของแปลน (เช่น ด้านบน ด้านล่าง หรือตรงกลาง) ควบคู่ไปกับการระบุคุณสมบัติเฉพาะของวัสดุอย่างละเอียด ทั้งชนิด สี และขนาด (เช่น แกรนิตโต้ สีครีม/เบจ ขนาด 60x60 ซม.) เพื่อให้โมเดลตรรกะสูงอย่าง Nano Banana สามารถนำชุดข้อมูลตัวอักษรเหล่านี้ ไปจับคู่และวาดลงบนพื้นที่ในภาพได้อย่างถูกต้องแม่นยำ ไม่เกิดการสุ่มวัสดุมั่วสลับห้อง
ด้วยหลักการทั้งหมดนี้ Dreambox จึงได้พัฒนาฟีเจอร์ "ROOM MATERIAL SPEC" (กำหนดวัสดุพื้นแต่ละห้อง) ขึ้นมา เพื่อเปลี่ยนขั้นตอนการเขียนพรอมท์บอกพิกัดที่ยุ่งยาก ให้กลายเป็นการทำงานที่ง่ายและเป็นระบบ ผ่าน Interface ที่ออกแบบมาเพื่อสถาปนิกโดยเฉพาะ:
การปักหมุดพื้นที่ห้อง : ผู้ใช้สามารถคลิกปักหมุดลงบนพื้นที่ห้องต่างๆ ในแปลน 2D ได้โดยตรง เพื่อกำหนดตำแหน่งอ้างอิงให้กับระบบ
การกำหนดวัสดุ: สามารถเลือกชนิดวัสดุ โทนสี และระบุขนาดที่ต้องการแยกเป็นรายห้องได้อย่างอิสระ ผ่านเมนูตัวเลือกที่จัดเตรียมไว้ให้หรือ Custom ระบุเอง
การแปลงข้อมูลเป็นพรอมท์: ระบบของ Dreambox จะนำข้อมูลการปักหมุดและสเปกวัสดุทั้งหมด มาเรียบเรียงและแปลความหมายให้กลายเป็นชุดคำสั่งภาษาอังกฤษตรงตามที่กำหนด (สามารถตรวจสอบเป็นภาษาไทยได้) แยกแยะข้อกำหนดวัสดุ (PBR texture specifications) เป็นรายห้องควบคู่ไปกับการควบคุมมุมกล้องที่เลือก (Top-down 1-point perspective หรือ Isometric view) และส่งต่อพรอมท์ให้โมเดล Nano Banana เจนภาพผลลัพธ์ออกมาได้ 3D Floor Plan ที่สวยงาม สมจริง แสงเงาเป็นธรรมชาติ และคงความถูกต้องของวัสดุตามดีไซน์ต้นฉบับได้อย่างแม่นยำครับ
และนี่คือตัวอย่างพรอมท์ที่ Dreambox สร้างให้จากงานนี้ (ซึ่งผมไม่ได้พิมพ์พรอมท์เองเลยสักตัวอักษรเดียว)...
"An ultra-realistic architectural photograph of a physical 3D floor plan model, preserving the exact layout, walls, and proportions of the original design, viewed from a straight top-down 1-point perspective view pointing directly at the center of the layout, looking straight down into the cut-away rooms from a high central overhead point. The vertical walls are extruded and recede slightly toward the floor in a 1-point perspective, showing the clean interior wall faces. This physical diorama represents a pristine Modern Luxury-inspired 3D floor plan. The walls are raised to a realistic height of 1.5 meters with no roof, revealing a highly detailed interior. The top horizontal cut surface of every wall is a solid flat Dark Gray, while the vertical interior and exterior wall faces are finished in a smooth, clean Matte White. The entire model sits on a minimalist solid Beige background. The scene is illuminated by soft, diffused studio gallery softbox lighting and realistic Global Illumination, creating subtle ambient occlusion shadows in corners and under furniture without any harsh direct sunlight or hot spots. All artificial interior lights and lamps are turned OFF. The furniture follows a Modern Luxury style featuring marble surfaces, polished metal, and premium leather. In the bedroom at the top, the bed features realistic rumpled fabric sheets and a wrinkled duvet. The trees located at the entrance (bottom) and the central courtyard are rendered as realistic 3D foliage with soft subsurface scattering on the leaves, casting blurry, soft ambient shadows on the ground. The render is completely free of any text, dimensions, or drawing artifacts.
PBR texture specifications for each room:
* Parking (Bottom): Floors are finished with Stamped Concrete (color: Dark Gray, tile/plank size: Custom).
* Living Room (Center): Floors are finished with Granito (color: Cream/Beige, tile/plank size: 60x60 cm).
* Dining Room (Top): Floors are finished with Granito (color: Cream/Beige, tile/plank size: 60x60 cm).
* Stairs (Center): Floors are finished with Oak Wood (color: Light Wood, tile/plank size: 15x90 cm).
* Terrace (Center): Floors are finished with Granito (color: Light Gray, tile/plank size: 60x60 cm).
* Toilet (Top): Floors are finished with Ceramic Tiles (color: Light Wood, tile/plank size: 30x30 cm).
* Kitchen (Top): Floors are finished with Granito (color: Light Gray, tile/plank size: 60x60 cm).
* Bedroom (Top): Floors are finished with Granito (color: Cream/Beige, tile/plank size: 60x60 cm).
* Terrace (Top): Floors are finished with Granito (color: Light Gray, tile/plank size: 60x60 cm)."
Dreambox Prompt GEN เราพัฒนาสู่ Architect AI Workflow เพื่อช่วยให้สถาปนิกเปลี่ยนไอเดียให้เป็นงานนำเสนอได้รวดเร็วที่สุด และเอาเวลาไปโฟกัสกับงานดีไซน์แทน
ทดลองใช้งานฟรี 3 วัน คลิกที่คอมเมนต์ได้ครับ
Floor plan credit: Pinterest