render method
Contents
[
Hide
]render
Render the scene into external file from given camera’s perspective. The default output size is 1024x768 and output format is png
def render(self, camera, file_name):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | From which camera’s perspective to render the scene |
file_name | str | The file name of output file |
render
Render the scene into bitmap from given camera’s perspective.
def render(self, camera, bitmap):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | From which camera’s perspective to render the scene |
bitmap | aspose.threed.render.TextureData | Target of the rendered result |
render
Render the scene into bitmap from given camera’s perspective.
def render(self, camera, bitmap, options):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | From which camera’s perspective to render the scene |
bitmap | aspose.threed.render.TextureData | Target of the rendered result |
options | ImageRenderOptions | The option to customize some internal settings. |
render
Render the scene into external file from given camera’s perspective.
def render(self, camera, file_name, size, format):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | From which camera’s perspective to render the scene |
file_name | str | The file name of output file |
size | aspose.threed.utilities.Vector2 | The size of final rendered image |
format | str | The image format of the output file |
render
Render the scene into external file from given camera’s perspective.
def render(self, camera, file_name, size, format, options):
...
Parameter | Type | Description |
---|---|---|
camera | aspose.threed.entities.Camera | From which camera’s perspective to render the scene |
file_name | str | The file name of output file |
size | aspose.threed.utilities.Vector2 | The size of final rendered image |
format | str | The image format of the output file |
options | ImageRenderOptions | The option to customize some internal settings. |
See Also
- module
aspose.threed
- class
Scene