CPC G06T 17/20 (2013.01) [G06T 3/20 (2013.01); G06T 3/40 (2013.01); G06T 7/20 (2013.01); G06T 7/251 (2017.01); G06T 11/60 (2013.01); G06T 13/20 (2013.01); G06T 15/00 (2013.01); G06T 15/04 (2013.01); G06T 19/006 (2013.01); G06T 19/20 (2013.01); G06F 2218/00 (2023.01); G06T 2219/2004 (2013.01); G06T 2219/2012 (2013.01); G06T 2219/2016 (2013.01)] | 19 Claims |
1. A method comprising:
receiving a two-dimensional (2D) image comprising one or more 2D objects;
generating a three-dimensional (3D) mesh based on the one or more 2D objects;
generating a material map that maps a 2D texture of the one or more 2D objects to positions of the 3D mesh, wherein the material map includes a plurality of regions each associated with a different portion of the 3D mesh;
selecting a first texture for a first region of the plurality of regions based on determining that a first portion of the one or more 2D objects comprises an image, the first texture comprising a first geometric shape;
selecting a second texture for a second region of the plurality of regions based on determining that a second portion of the one or more 2D objects comprises text, the second texture comprising a second geometric shape; and
applying the material map to the 3D mesh to output a 3D object representing the 2D object; and
wherein the first geometric shape comprises a first set of lines in a first diagonal direction or a first set of hashmarks with a first density, and
wherein the second geometric shape comprises a second set of lines in a second diagonal direction opposite to the first diagonal direction or a second set of hashmarks with a second density different form the first density.
|