# Wardrobe (Pixel Modern Apartments)

Double wardrobe in pixel art with two hinged doors on named nodes, a hanging rail and a top shelf inside.

- **URL:** https://3dassets.dev/assets/pixel-modern-apartments-wardrobe-d8c4cd8b
- **GLB (direct, CORS *, immutable):** https://cdn.3dassets.dev/assets/29840/v1/model.glb
- **Download (counted):** https://3dassets.dev/download/pixel-modern-apartments-wardrobe-d8c4cd8b
- **Licence:** CC0 1.0 Universal: https://creativecommons.org/publicdomain/zero/1.0/ (no attribution required)
- **Contributor:** 3D Assets (@3dassets): https://3dassets.dev/u/3dassets
- **Category:** Props & Furniture
- **Tags:** Modern, Pixel / Retro, Interior, Animated
- **Geometry:** 152 triangles, 456 vertices, 6 meshes, 3 materials, 1 textures
- **Size (m):** 1.2 × 2 × 0.667
- **Animations:** open, close
- **File size:** 0.01 MB
- **Downloads:** 0
- **AI used (contributor-reported):** yes; model: Claude Fable 5.1

## About

Double wardrobe in pixel art with two hinged doors on named nodes, a hanging rail and a top shelf inside. Carcass 1.2 by 0.6 m and 2 m high. Both doors are hung on their outer stiles and swing toward +Z. Dimensions 1.20 x 2.00 x 0.67 m (X x Y x Z). Origin at the footprint centre, resting on y = 0. Metres, +Y up, +Z front. Named pivot nodes: door-left at [-0.590, 0.030, 0.315]; door-right at [0.590, 0.030, 0.315]. Rigid node-transform clips: open and close. No skinning. The carcass, rail and shelf are static; only the two doors move. Pixel Modern palette of eight flat colours with 32 px nearest filtered maps on every material. Original design, no brands or reproduced artwork. No collision or navigation data.

## Use with three.js

```js
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js'
import { AnimationMixer } from 'three'

let mixer

const loader = new GLTFLoader()
loader.load('https://cdn.3dassets.dev/assets/29840/v1/model.glb', (gltf) => {
  scene.add(gltf.scene)
  mixer = new AnimationMixer(gltf.scene)
  mixer.clipAction(gltf.animations[0]).play()
})

// Call from your render loop; deltaSeconds is time since the previous frame.
function updateAssetAnimation(deltaSeconds) {
  mixer?.update(deltaSeconds)
}
```

## React Three Fiber

```jsx
import { useGLTF, useAnimations } from '@react-three/drei'
import { useEffect } from 'react'

export function WardrobePixelModernApartments(props) {
  const { scene, animations } = useGLTF('https://cdn.3dassets.dev/assets/29840/v1/model.glb')
  const { actions, names } = useAnimations(animations, scene)
  useEffect(() => {
    const action = actions[names[0]]
    action?.reset().play()
    return () => { action?.stop() }
  }, [actions, names])
  return <primitive object={scene} {...props} />
}
useGLTF.preload('https://cdn.3dassets.dev/assets/29840/v1/model.glb')
```

## <model-viewer>

```html
<model-viewer src="https://cdn.3dassets.dev/assets/29840/v1/model.glb" alt="Wardrobe (Pixel Modern Apartments)" camera-controls auto-rotate autoplay></model-viewer>
```

## Blender

```python
# Blender 4.x: File > Import > glTF 2.0, or from the Python console after downloading the file.
import bpy
bpy.ops.import_scene.gltf(filepath='model.glb')  # from https://cdn.3dassets.dev/assets/29840/v1/model.glb
# Metres and +Y up are converted to Blender's Z-up scene automatically.
# Clips arrive as actions; play them from the Dope Sheet > Action Editor.
```

## Godot

```gdscript
# Godot 4: copy model.glb into res://models/ and the editor imports it as a scene.
var packed := load("res://models/model.glb") as PackedScene
var model := packed.instantiate()
add_child(model)
var player := model.find_child("AnimationPlayer", true, false) as AnimationPlayer
player.play(player.get_animation_list()[0])
```

## Unity

```csharp
// Unity: import model.glb with glTFast (Package Manager: com.unity.cloud.gltfast) and drag the prefab in,
// or load it at runtime straight from the CDN:
using GLTFast;
var gltf = new GltfImport();
if (await gltf.Load("https://cdn.3dassets.dev/assets/29840/v1/model.glb")) await gltf.InstantiateMainSceneAsync(transform);
// Clips import as legacy AnimationClips on the root; GetComponent<Animation>().Play() starts the first.
```

---
JSON: https://3dassets.dev/api/v1/assets/pixel-modern-apartments-wardrobe-d8c4cd8b · Loads with a plain GLTFLoader: no Draco/KTX2 loaders needed.