creating 3d Icons from 2d Icons, from PNG to OBJ

okay...I've always wanted to understand this...So how do I regenerate a single obj file after changing the mtl file to point to this new image on my drive? Or do they go together into the Models folder? For e.g. I was able to get this to work in the past: https://sketchfab.com/3d-models/animated-flag-ee4ef66dbeb54b379dca355a20073ea0
Space Explorers Academy
Sketchfab
Animated Flag - Download Free 3D model by Space Explorers Academy (...
Create your own animated flag with this blank template! How to 1. Download 3D Model “Autoconverted format (glTF)” 2. Unzip “blank_animated_flag.zip” folder 3. Open “Flag_baseColor.png” 4. Replace/add image on the 2048 x 1390 px portion (Flipped & rotated 180º) 5. Drag and drop .bin, .gltf & texture f...
5 Replies
dwillington
dwillingtonOP2w ago
Okay, I finally ended up solving my issue after reusing a technique from link above. I will outline it below... I did a search for card on sketchfab. I downloaded the gltf zip and looked at the textures/Default_baseColor.png. If I could overlay my icon png onto this file, I would run with it. I decided to modify the following: https://sketchfab.com/3d-models/hwatu-card-sakura-402e35aa2908480596a374586c551145 I then cursored my way through code which would use this unzipped folder as a template. For each icon, it would duplicate the folder, overlay an icon into textures/Default_baseColor.png, horizontal flip and 180, and then combine into a glb. Now I could go from this icon:
dwillington
dwillingtonOP2w ago
No description
dwillington
dwillingtonOP2w ago
To this type of 3d "card" which is a glb file:
dwillington
dwillingtonOP2w ago
dwillington
dwillingtonOP2w ago
I also added text for each icon, hence the header. But...for my purposes all this was especially important b/c I needed to scale images with the API in OB. And it doesn't work yet, so this was a quick workaround. Will post a final video of what I was trying to acheive for map data visualization purposes.

Did you find this page helpful?