#Got a real object renderer to work for
1 messages · Page 1 of 1 (latest)
Looks very interesting! Always asked my self how to do it, you are rendering the object with one camera, and per object ?
Yes, i have a snapshot manager set up, the items prefab is teleported there and an image is taken by a camera that can only see a certain layer
The complicated part wasnt taking the image tho 
was taking it with the good aspect ratio of the item haha ?
Yes, because items can be multiple grids large
Math
💔
And the bounding box bs
And some items can be smaller (like a bundle of money) so the cameras size had to be decreased too
Like for specific items
Not manually tho, script does it itself
noice you managed to make it no more headache
I remember I tried to do it but at the end I was like « I will do that later ||never|| »
Its defo worth it
Beats making icons manually for the rest of time
yea that’s true
Make unlit material and your have canvas icon style
Good idea but for my particular use case, i think using a lit material is optimal
But unlit don't have shadows,it's not more optimal?
I would have to change the material for inventory items through code which is extra work, plus some shading adds detail
if I remember well you can also disable cast shadows on the objects