D
D
dimkatrofimka2018-03-02 14:49:29
three.js
dimkatrofimka, 2018-03-02 14:49:29

Three.js multiple Renderer. Maybe?

Colleagues, good afternoon.
There is a scene with THREE.WebGLRenderer rendering. There is an object on the stage (for example, a cube).
You need to click on the cube to throw out the menu to select an action.
I tried to use THREE.CSS3DRenderer(), but I didn't understand how to use it on the same scene at the same time...
Please tell me. Maybe you can implement the menu in a different way...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Chuprik, 2018-03-23
@choupa

1. Two renders on one canvas will not work, obviously.
2. I do not understand how the fact that it is necessary to process a click on a cube and a CSS render is connected. Mouse processing (over, click, etc.) on scene objects is done using Raycast. Read here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question