I want to pass a threejs mesh to another frameowork. From that mesh, I want to access the threejs canvas. This is available on the threejs renderer as the domElement property. So my question is - can I get access to the threejs renderer from the mesh? I can get any parents and find out if the parent is the scene. So another way to ask is, is there access from a threejs scene to the renderer? If not... it would nice to have that added. This is to avoid passing two parameters, as ideally, I would like it to be just done with a single property.
In threejs, is there a property on a scene or mesh that refers the renderer?
28 Views Asked by Dan Zen At
1
There are 1 best solutions below
Related Questions in THREE.JS
- Threejs Postprocessing Screen Spaced Reflections with Bloom
- coded one, but renderer renders two 3D models in three.js
- Blender mesh-cleanup reduces number of vertices but in Three.js it doesn't
- Shadows not casted/received with HDR environment texture in Three js
- how to solve CORS problem whith local html three.js?
- Title: Full Stack Web Development Assignment-Shadow and Z-Lock for Cube using React.js and Three.js
- Problem picking up with interactive camera and orbitcontrols after amination camera moves "camera view"
- Three.js how to determine if backfacing in a RawShaderMaterial that's double sided and transparent?
- How to build a codesandbox project to android apk?
- openbim-components with node js
- 3D scene doesn't have shadows even though I enabled castShadow and receiveShadow
- How to implement Vertex Shader in React Three Fiber to transform in XY plane based on Z height coordinates
- Cannon.js Three.js create inverted cylinder barrier
- Using WebGPURenderer in A-Frame
- Three-mesh-bvh stop drag after collision
Related Questions in MESH
- Adhoc / mesh network not working (with and without batman-adv)
- Error: 'Mesh' object has no attribute 'use_auto_smooth' when importing .zmbx (Metabricks) file into Blender
- Grid-like lines in my procedurally generated mesh
- How to save a .msh format to read with Gmsh from vertices, elements (tetra) and type of tissue?
- How to make sure METIS partition surface mesh connected?
- How to calculate the surface area of a 3d mesh
- Distance transform to calculate centerline/skeleton
- The best methods to report object mesh problems?
- How to highlight or draw line on where 2 or more meshes intersect
- Open3d Triangle Mesh fill_holes() method leads to crash
- Hexahedral mesh creation and adjustment for modeling of a 3D printing process
- Godot 4's MultiMesh doesn't display the correct colors
- Creating a density plot out of a large matrix in octave
- How to change mesh element type in Python gmsh?
- Mesh generation using GMSH (Python)
Related Questions in SCENE
- iPad Split View causing crash due to incorrect parent view controller in multitasking mode
- How to retain score when transitioning between Pause Scene to Game Scene?
- 2D Scene is not responsive according to screen sizes
- Swift Prevent Scene point of view reset prior to Camera Action
- Exception in thread "main" java.lang.ExceptionInInitializerError, caused by NullPointerException?
- Unity Scene open on build?
- Different Scene, different framerate in AS3
- Matterport how to add ThreeJs Video Mesh
- How to get nodes of scene (SceneKit) by tap gesture in SwiftUI SceneView?
- How can I change a textView in a layout in a scene before transition?
- Phaser I want to split my scene list into 2 lines
- How to set max time of each scenes when using PysceneDetect
- How can I create SwiftUI scenes dynamically?
- In threejs, is there a property on a scene or mesh that refers the renderer?
- Unity. When installing builded apk on my tablet, game scenes do Not loading, while in the pc unity they are loading
Related Questions in RENDERER
- JavaScript For, functions and mixed return
- the node reducer and edge reducer here are not working for my map
- Why BasicComboBoxRenderer sets the text two times if the text does not exist or is empty with getPreferredSize()?
- How can I fix the skewing thats going in my graphics renderer caused because of my fov?
- Electron renderer not communicating with main process
- How to create a VsCode Notebook Renderer that is part of a VsCode extension?
- Can't use low graphics in SDL
- Error in : VisioForge.Shared.MediaFoundation.EVR.IMFVideoMixerControl2
- How to render one component after deleteHandler on other component
- Unity trail renderer - minimum length
- When I make custom cluster marker on google map via swiftUI, create class CustomClusterRenderer: GMUDefaultClusterRenderer
- Is it possible to implement server side rendering with existing react application
- Is there a way to get big Text in Flutter not blurry on Mobile Web?
- Rasterization using barycentric coordinates doesn't draw to half of the screen
- Select a specific Overload in CheckboxRenderer.DrawCheckBox
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Okay - so the answer is that a scene does not know its renderer. Looking at the threejs code, I see now, that the renderer is not passed in to the scene it just operates on it in the update loop.