GL City: 3D Cityscape Theme with Three.js

AjaxCMS features an impressive 3D cityscape theme powered by Three.js, bringing WebGL-rendered graphics to the platform. The gl_city theme showcases procedurally generated skyscrapers with realistic lighting, shadows, and a dynamic starfield.

{{i | gl-city-theme => style="width: 50%; float: right; margin-left: 20px; margin-bottom: 10px;"}}

View Live Demo →

Visual Features

3D Cityscape:

Camera System:

Technical Implementation

WebGL Acceleration:

Building Generation:

Performance Optimizations

Efficient Rendering:

Adaptive Quality:

User Interactions

View Modes:

Camera Movement:

Browser Compatibility

The gl_city theme requires:

Browsers without WebGL fall back gracefully with a static gradient background.

Comparison to Other Themes

Unlike canvas-based themes, gl_city uses 3D graphics hardware acceleration:

Feature Canvas Themes GL City Theme
Rendering 2D Canvas API WebGL (Three.js)
Performance CPU-based GPU-accelerated
Depth Simulated True 3D space
Shadows Not supported Real-time shadows
Lighting Static Dynamic moon light

Use Cases

Perfect for:

Future Enhancements

Potential improvements for the gl_city theme:


The gl_city theme demonstrates AjaxCMS's flexibility in supporting both traditional 2D canvas animations and cutting-edge WebGL 3D graphics. It's perfect for portfolios, tech demos, or any site wanting a futuristic, dynamic background.

Try it yourself by setting default_background = "gl_city" in your index.html configuration!