Home › Forums › General Questions › Render multiple views in one container?
- This topic has 6 replies, 3 voices, and was last updated 4 years, 7 months ago by Yuri Kovelenov.
-
AuthorPosts
-
2020-04-30 at 9:08 am #26998sirhcCustomer
Hi everybody ,
I have a question:
Is it possible to render two cams/views in one container(div)?
So I can have a 3D cam (orbit) and a static 2D one rendering the same scene?
Something like render to texture in unity?? (https://www.youtube.com/watch?v=Goqe5IorfN0)
Just wonderingEDIT:
I found this in the example files online:
https://cdn.soft8soft.com/demo/examples/index.html#webgl_cameraI’ve no Idea how to set sometime like that up,….
Can It be done with puzzles or only custom code.
Can I use my 3ds-max workflow?Greetz
ChrisTechnical Artwork Specialist@TBL.nl
2020-05-01 at 2:11 am #27027GLiFTeKCustomerThis had been talked about before, and this is what was brought up as a solution…
https://github.com/Soft8Soft/verge3d-code-examples/blob/master/webgl_multiple_canvases_grid.htmlId also like to get this working.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-05-01 at 6:16 am #27048Yuri KovelenovStaffI guess you need something like this
https://cdn.soft8soft.com/demo/examples/index.html?q=texture#webgl_framebuffer_textureUnfortunately there is no easy way to set this up now. We’ll try to create a puzzle for that.
2020-05-01 at 10:52 am #27056sirhcCustomerTnx Yuri,
Looks good!
I’am gonna look into that!Already one question:
How can I change this peace off code:
………………………………………………………………………..
scene = new v3d.Scene();
scene.background = new v3d.Color(0x20252f);
sceneOrtho = new v3d.Scene();//
var geometry = new v3d.TorusKnotBufferGeometry(3, 1, 256, 32);
var material = new v3d.MeshStandardMaterial({ color: 0x6083c2 });mesh = new v3d.Mesh(geometry, material);
scene.add(mesh);
………………………………………………………………………..
Into something that loads my gltf-file instead of spawning object’s/materials by code?Technical Artwork Specialist@TBL.nl
2020-05-02 at 8:35 am #27086Yuri KovelenovStaffHi,
you access objects/materials loaded from glTF via app.scene namespace. See more details here:
https://www.soft8soft.com/docs/manual/en/introduction/Using-JavaScript.html
2020-05-03 at 6:42 am #27112sirhcCustomerHi Yuri,
downloaded the examples file and put them in the ‘\verge3d\applications\’ folder to run them trough the localhost. Doesn’t work…..
Is there a way to run these file offline so I can work on them and check them offline?
Tnx 4 all Ur answers so farChris
Technical Artwork Specialist@TBL.nl
2020-05-04 at 7:51 am #27144Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.