
## create_viewport(self, camera) {#aspose.threed.entities.Camera}

Create a viewport in specified camera perspective.


### Returns 





```python

def create_viewport(self, camera):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| camera | aspose.threed.entities.Camera | The camera |


## create_viewport(self, camera, rect) {#aspose.threed.entities.Camera-aspose.threed.utilities.RelativeRectangle}

Create a viewport with position/size in specified camera perspective.


### Returns 





```python

def create_viewport(self, camera, rect):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| camera | aspose.threed.entities.Camera | The camera |
| rect | aspose.threed.utilities.RelativeRectangle | Position and size of the viewport |


## create_viewport(self, camera, background_color, rect) {#aspose.threed.entities.Camera-aspose.threed.utilities.Vector3-aspose.threed.utilities.RelativeRectangle}

Create a viewport with specified background color and position/size in specified camera perspective.


### Returns 





```python

def create_viewport(self, camera, background_color, rect):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| camera | aspose.threed.entities.Camera | The camera |
| background_color | aspose.threed.utilities.Vector3 | The background of the viewport |
| rect | aspose.threed.utilities.RelativeRectangle | Position and size of the viewport |



### See Also
* module [`aspose.threed.render`](../../)
* class [`IRenderTexture`](/3d/python-net/aspose.threed.render/irendertexture)
