<jupyter_start><jupyter_text>Combined CameraA combined camera allows you to easily switch between a perspective camera and an orthographic camera.<jupyter_code>from pythreejs import *
from IPython.display import display
mesh1 = Mesh(SphereBufferGeometry(20, 16, 16), MeshPhysicalMaterial(color='red'), position=[-20, 0, 0])
mesh2 = Mesh(SphereBufferGeometry(20, 16, 16), MeshPhysicalMaterial(color='green'), position=[20, 0, 0])
view_width = 600
view_height = 400
camera = CombinedCamera(position=[0, 0, 60], width=view_width, height=view_height)
key_light = PointLight(position=[-100, 100, 100])
ambient_light = AmbientLight(intensity=0.4)
scene = Scene(children=[mesh1, mesh2, key_light, ambient_light, camera])
renderer = Renderer(scene=scene, camera=camera, controls=[OrbitControls(controlling=camera)],
                    width=view_width, height=view_height)
display(renderer)
camera.mode = 'orthographic'
camera.mode = 'perspective'<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12061855670103093, 'fraction_numerical': 0.04639175257731959, 'mean_word_length': 7.747747747747748, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '316896', 'license': 'BSD-3-Clause', 'n_tokens_mistral': 339, 'n_tokens_neox': 299, 'n_words': 72, 'path': 'examples/Combined Camera.ipynb', 'repo_name': 'mariobuikhuizen/pythreejs', 'size': '970'}