- 2019-10-09 at 2:51 pm #20003
Hi Verge3D Team!
Is it possible to have more than one 3D Scene inserted into an HTML page without the use of iframes? If so, how? I’m working on a website where we need to display several 3D objects that will have to rotate slightly based on mouse position on the containing page. Is this something we can do with Verge3D with a separate GLTF file/visual logic file per object, and insert them into different locations on the same page? If so, how?
Thank you!2019-10-10 at 6:27 am #200172019-10-10 at 11:54 am #20036
I’m confused by your answer. Does that mean that we can display different gltf 3d objects on a page, but only one of them will react to the mouse movement, because only one of them can be controlled via puzzles?
The case is that we need about 4 or 5 different objects on the page, that will change their position responsively, something that we cannot do easily by adjusting the objects positions in a single scene, because we need them to match the positions of some HTML background elements (it is much easier to have each object as a separate GLTF and position them absolutely, matching the background automatic resize for the various responsive breakpoints)
Can you please clarify?2019-10-10 at 1:21 pm #20041
will react to the mouse movement, because only one of them can be controlled via puzzles?
if we are talking about default camera controls, then yes, all app instances will react to mouse movement. We didn’t try such a setup with puzzles and I’m not sure how it will behave. May be you could give it a try and see what happens?2019-10-10 at 1:49 pm #20045
Not really. I plan to have several small 3D scenes in the same page, say about 250×250 pixels each. And I want them to react to the mouse movement that won’t necessarily hover over the 3D scenes, so we’re not talking about default camera controls here. I want the objects to rotate SLIGHTLY, following the cursor movement, so I guess I need to create some puzzles that will get the mouse location in every frame, and make the objects rotate in a non-linear calculation. But I guess that is not possible because I cannot have more than one visual logic on the same page, and that is what I would need. Am I right?2019-10-10 at 2:01 pm #200472019-10-11 at 4:10 pm #20089
Thanks, I’ll try and see how that goes.
You must be logged in to reply to this topic.