I have tried your approach, but have problem because when try to parse the child into Mesh. Later, I realize that I haven't put ObjectContainer3D hierarchy in mind when parse it. After I create a recursion function to parse all the possible ObjectContainer3D child, I can get every mesh in the object and assign material to it with no problem. Anyway, thanks for the response Jensa :)
On Fri, Apr 17, 2009 at 2:27 AM, Jensa <[email protected]> wrote: > > Hi Alif, > This is fully possible, but I don't have a tutorial for you on this. > The approach is to load the object and then inspect what sub-objects > it's consisting of. You can then set the .material property on any of > these meshes. > > J > > On Apr 16, 1:19 pm, Alif Harsan Pradipto <[email protected]> > wrote: > > Hi all, I've done some research in this matter, but can't seem to find > any > > solution. > > Is it possible to load OBJ model, and then later add material on it's > > Object3D result (+ its children) by using texture that loaded runtime. > This > > is because we load separate texture data according to user choice. > Embedded > > asset is not an option because we have a lot of texture to customize the > > model appearance. > > A step-by-step approach/example code will be appreaciated. > > > > Thanks for your help. >
