create_viewport method
create_viewport
Create a viewport in specified camera perspective.
Returns
def create_viewport(self, camera):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | The camera |
create_viewport
Create a viewport with position/size in specified camera perspective.
Returns
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
Create a viewport with specified background color and position/size in specified camera perspective.
Returns
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
IRenderTarget