---
name: "s3d_import_model_file"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3d_import_model_file"
---

# s3d\_import\_model\_file(3)

read model from file

## NAME

s3d\_import\_model\_file - read model from file

## SYNOPSIS

```
#include <s3d.h>
```

**int s3d\_import\_model\_file(const char \****fname***);**

## DESCRIPTION

Imports an 3d object file and returns the object number. Quite a number of formats are supported, like 3D Studio (.3ds, .prj), Lightwave (.lw, .lwb, .lwo), Quake Models (.md3), or simply everything libg3d supports. :)

**Warning**\

Of course, you won't forget to toggle it visible, won't you?

## AUTHOR

**Simon Wunderlich**

Author of s3d
