Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Asset Forge

Create your own 3D models and 2D sprites! · By Kenney

OBJ file vertex colors

A topic by hrstrand created Jan 04, 2022 Views: 203 Replies: 2
Viewing posts 1 to 3

Would it possible to export vertex colors when exporting an OBJ file ? 

Threejs supports this format - where each vertex has a color value attached. It would enable users of threejs to efficiently  mesh-merge many objects without having to deal with textures. 

The format is described in https://github.com/mrdoob/three.js/issues/11422

( I am a dev - I can help out if needed ) 

(1 edit)

wrote a small typescript method that will do this - It will take an asset forge generated obj and mtl file, and generate a single obj file with vertex colors. 
Obj file will potentially grow, as vertexes that are shared between different coloured faces will need to be duplicated.

I will publish the script if there is a request for it

Yes, please that would be amazing!