Open arunavsikdershuvo opened 3 years ago
Hi! Have you got any progress on your issue? I might faced the same problem.
Hi! Have you got any progress on your issue? I might faced the same problem.
@parilyak Hi, unfortunately not. I searched for solution but not found any. I solved it another way according to my requirements. Anyways I googled it more and found that viroviewscene actually uses surfaceview for 3D rendering.
You can go through this for better understanding.
You cannot place 2 SurfaceViews(SV) into one Activity. For understand why you should know how SVs works.
Hi! Thanks a lot! :)
Environment
Description
I am using this library to show some animated models using vrx data without AR/VR. For requirement I need to have multiple ViroViewScene instance in a single xml layout. But when two or more ViroViewScene are loaded only the last ViroViewScene in the hierarchy shows the models, others remain blank. I'm sharing code snippet to what I'm doing `<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" >
`
This is the java file in where I'm trying to load models
create3DSceneRight(); create3DSceneLeft();
` private void create3DSceneRight() { Scene scene = new Scene(); Node rootNode = scene.getRootNode(); rootNode.setPosition(new Vector(0, 0, 0));
`
Reproducible Demo
Just run this code snippet simply creating a project in android studio, you can see that only
viro_scene_right
is loading butviro_scene_left
is not loading at all.Can anyone give or suggest me any solution or a path to solution how can I achieve this? Thanks in advance.