helix 3d toolkit - Read .obj File with Texture in WPF -
i trying load .obj
file using helix tool kit code. didn't texture included .obj
file.
objreader studioreader = new objreader(); model3d m3d = studioreader.read("model/2 seat sofa .obj"); transform3dgroup transform = new transform3dgroup(); rotatetransform3d rotatetrans = new rotatetransform3d(); rotatetrans.rotation = new axisanglerotation3d(new vector3d(1, 0, 0), 0); transform.children.add(rotatetrans); rotatetrans.rotation = new axisanglerotation3d(new vector3d(0, 0, 1), 0); transform.children.add(rotatetrans); translatetransform3d translatetrans = new translatetransform3d(0, 20, 0); transform.children.add(rotatetrans); transform.children.add(translatetrans); m3d.transform = transform; group.children.add(m3d);
i using code load .obj
file. mold of object should load texture
Comments
Post a Comment