> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/godotengine/godot/llms.txt
> Use this file to discover all available pages before exploring further.

# RenderingServer

# RenderingServer

**Inherits:** Object

## Description

Server for anything visible. The rendering server is the API backend for everything visible. The whole scene system mounts on it to display.

## Methods

### camera\_create

```gdscript theme={null}
RID camera_create()
```

Creates a 3D camera and adds it to the RenderingServer. Returns the RID.

### viewport\_create

```gdscript theme={null}
RID viewport_create()
```

Creates a viewport and returns the assigned RID.

### canvas\_create

```gdscript theme={null}
RID canvas_create()
```

Creates a canvas and returns the assigned RID.

### mesh\_create

```gdscript theme={null}
RID mesh_create()
```

Creates a mesh and returns its RID.

## Example Usage

<Tabs>
  <Tab title="GDScript">
    ```gdscript theme={null}
    # Create a camera
    var camera_rid = RenderingServer.camera_create()

    # Create a viewport
    var viewport_rid = RenderingServer.viewport_create()
    ```
  </Tab>

  <Tab title="C#">
    ```csharp theme={null}
    // Create a camera
    var cameraRid = RenderingServer.CameraCreate();
    ```
  </Tab>
</Tabs>
