Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GLB animated 3D model gets clipped in export

A topic by NeZvers created Jan 12, 2023 Views: 125 Replies: 2
Viewing posts 1 to 3
(1 edit)

I’m doing some render testing with 3D and I couldn’t solve the problem that the 3D model gets clipped. Intuitively the checkered background looks like the area that will be rendered. Here’s everything to replicate - LINK

On one occasion it kept going further away from the center as I kept trying to center everything, and in the end, I either could see the character and have a blank render or see the character only when in a sprite sheet. Sadly I dunno how I got that.

Eventually, I redid the project from scratch and could export. It is a bit unclear where the region gets rendered when messing with canvas position and size. Ah, I found that auto resize on canvas was the culprit.

Strange that the canvas doesn't follow the 3D model box, I'll check your project and let you know

Ah yes because of the outline at 1px to the computed size, and the other difference are due to sub pixel size of the box.
But there is certainly something to improve with the canvas, I need to think about it.

There is strange box computation with the character btw, I need to check that too.