Greetings to everybody my friends. I hope you all doing well. I would like to ask a question regarding access to submesh.
Lets assume that i have one OBJ file, called Dude. Dude consists of individual parts such as :
Mentioned parts are named same way as its show on list.
Now, lets assume that I have loaded Dude.OBJ as follows:
…i think i deserve massive beating or something…if assetManager.loadModel() is returning Spatial, and it seems to be that way according to documentation, then, im casting spatial to a node as requested, then why that line crashing program?? I have commented everything else, so only this line is left, where program is crashing…
…so i assume that what mr. pspeed posted is correct, then why doesn’t work…im kind a lost now…can anyone post short code where things should be up to specification, because, im truly lost now…I have file dude.obj, inside that file are several individual 3D objects named as i have mentioned in my initial post. So, how to access each of them. I will truly appreciate to see solution, up to specification because, it seems im just plain stupid and cant get this thing up and running…sigh…
I thought you’d loaded it in scene composer and already knew that it was multiple objects or that you’d actually tried the other code that you made. Too many assumptions. I’ll be sure not to make those assumptions when answering your posts in the future and figure you’ve only done the minimum exploration on your end.
So, yeah, as others have said. Your loaded model does not have ‘submeshes’… it’s just one Geometry.
…well…as i said…i deserve some beating…it appears to be, as suggested, actual material issue…basically i just created simple scene in 3dsMax, and exported as .obj, but without any materials/textures on individual objects inside 3d file…problem is solved by proper export…my sincere apology for everybody involved in reply, as i asked question, without been prepared…im going to toilet and be ashamed for next 30 minutes