Window Element
Architectural window components
Overview
The window element creates complete window components including frame, glass panes, and optional divisions. Windows feature realistic transparent glass and can automatically cut openings in walls when attached.
Key Features
- Multiple window types: fixed, casement, sliding, tilt
- Configurable frame and glass panes
- Adjustable number of divisions
- Automatic wall cutting when attached
- Sill height control for positioning
- Transparent glass with realistic appearance
Parameters
Configure your window with these parameters.
width
Window width in cm (default 120)
120
height
Window height in cm (default 120)
120
sillHeight
Height from floor to window bottom in cm (default 90)
90
windowType
Type: fixed, casement, sliding, tilt
casement
divisions
Number of window panes (default 2)
2
hasFrame
Include window frame (default true)
true
frameThickness
Frame thickness in cm (default 5)
5
material
Frame material/color
#FFFFFF
autocut
Auto-cut wall openings (default true)
true
refpos
Wall attachment reference
wall1.5
x, y, z
Position in 3D space
0, 0, 0
rx, ry, rz
Rotation angles in degrees
0, 0, 0
Window Types
Available window configurations.
Fixed Window
Non-opening window, typically used for views or light.
- Cannot be opened
- Maximum glass area
- Common for large picture windows
Casement Window
Side-hinged window that swings open. Most common type.
- Opens outward or inward
- Good ventilation
- Easy to clean from inside
Sliding Window
Window with panels that slide horizontally.
- Space-efficient operation
- No swing clearance needed
- Popular for modern designs
Tilt Window
Window that tilts inward from the top for ventilation.
- Secure ventilation option
- Common in Europe (tilt-and-turn)
- Weather-resistant when open
Usage Examples
Learn how to create windows with these examples.
Standard Casement Window
Creating a typical two-pane casement window:
window
120
120
90
casement
2
This creates a 120x120cm casement window with 2 panes, positioned 90cm from the floor.
Large Picture Window
Creating a fixed picture window:
window
200
150
60
fixed
1
This creates a 200x150cm fixed window with a single pane, positioned 60cm from the floor.
Wall-Attached Window
Attaching a window to a wall with automatic cutting:
window
120
120
true
wall1.8
This window attaches to face center 8 of wall1 and automatically creates an opening.
Multi-Pane Window
Creating a window with multiple divisions:
window
180
120
3
#FFFFFF
This creates a 180x120cm window with 3 panes and white frame.
Standard Dimensions
Common window sizes for reference.
120
120
90
150-200
120-150
60-90
100-120
100
90-100
60-80
60-80
150
100-200
220-280
0
Glass Properties
Understanding window glass rendering.
Transparent Glass
Windows are rendered with semi-transparent glass that:
- Shows light blue tint (#87CEEB)
- 30% opacity for realistic transparency
- Double-sided rendering for visibility from both directions
- Interacts naturally with scene lighting
Frame Materials
The material parameter controls the frame color:
#FFFFFF- White (most common)#333333- Dark gray/anthracite#8B4513- Wood brown#CD853F- Light wood
Wall Integration
How windows work with walls.
Automatic Wall Cutting
When autocut is enabled and refpos references a wall, the window automatically cuts an appropriately sized opening.
- Opening matches window dimensions
- Cutting volume extends through typical wall thickness
- Resizing the window updates the wall opening
Sill Height vs. Attachment
The sillHeight parameter behaves differently based on attachment:
- Standalone windows: sillHeight positions the window bottom from z=0
- Attached windows (with refpos): Window bottom aligns with the attachment point; use face centers at appropriate heights
Reference Position Format
The refpos parameter uses the format wallname.faceindex:
wall1.5- Face center 5 of wall1wall1.8- Face center 8 of wall1
Wall face centers are automatically generated along the wall surface.
Best Practices
Tips for working with windows effectively.
Recommendations
- Standard sill height is 90cm (comfortable for viewing while standing)
- Bathroom windows should be higher (150cm+) for privacy
- Use 2 divisions for most windows, 1 for small or picture windows
- White frames work with most designs; use anthracite for modern styles
- Consider sun position when placing large windows
Common Applications
- Residential architecture visualization
- Interior design presentations
- Building configurators
- Daylighting studies
- Facade design
Common Issues and Solutions
Solutions to frequently encountered problems.
Window not cutting wall
Verify that autocut is set to true and refpos correctly references the wall. The refpos format should be "wallname.faceindex" (e.g., "wall1.5").
Window at wrong height
For attached windows (with refpos), the window bottom aligns with the attachment point. Choose a face center at the appropriate height, or adjust z position. For standalone windows, use the sillHeight parameter.
Glass not visible
Glass is semi-transparent and may be hard to see against light backgrounds. View from different angles or ensure there's contrast behind the window.
Divisions look wrong
The divisions parameter creates equal-width panes. For unequal divisions, consider using multiple windows side by side or custom modeling.
Frame too thick/thin
Adjust the frameThickness parameter. Default is 5cm which works for most cases. Use smaller values for slim modern frames.