Skip to content

How to get the device PixelRatio from the renderer? #357

Open
@nvaytet

Description

@nvaytet

I can see in the threejs docs that the renderer has the getPixelRatio() method (https://threejs.org/docs/#api/en/renderers/WebGLRenderer.getPixelRatio)

How can I access this property from the pythreejs renderer? It has no such method, but maybe there is a method that allows getting the properties from the underlying js object? By giving it the property name as a string maybe?
For example renderer.get_property("PixelRatio") or renderer.call("getPixelRatio")?

Many thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions