- 2020-09-15 at 4:48 pm #32902
Is it possible to set a fixed aspect in order to match a rendered image 100% for webgl?
I’m trying to overlay webgl with some rendered image and would need to get exactly the same camera/aspect as for the rendering.2020-09-15 at 8:52 pm #32904GlifTekLicensee
You can get the image dimensions then update the dimensions of your v3d-container to it with the get/set attribute html puzzles2020-09-16 at 7:05 am #32911
I’ve already placed the v3d-container inside of a div with the correct aspect.
But the camera itself isnt placed as it should be2020-09-16 at 7:48 am #329132020-09-16 at 8:11 am #32916
What exactly do you mean with render with verge3d?
I’m trying a hybrid version of pre-rendered images and overlaying webgl content. Because a pure webgl version is to overkill. We got threes, humans, cars, grass, approx. 30-40mio polys so no way to show that in webgl.2020-09-16 at 12:25 pm #329352020-09-17 at 10:45 am #32970GlifTekLicensee
You could make a camera animation frame in your 3d package of the proper camera dimensions, then go to that frame when the dimensions of the image match it..
Just trying ideas
2020-10-05 at 10:06 am #33817
- This reply was modified 4 months, 1 week ago by GlifTek.
Could get it working. You just have to make sure that the render aspect in 3dsMax equals the rendered image aspect. Because verge takes the set aspect into account for webGL.2020-10-05 at 11:38 am #33821
- You must be logged in to reply to this topic.