hi,
i am trying to map an object that is already parsed as obj with a texture without using the mtl file.
i am using the url loader to load the image but i am unsuccessfull at mapping it to the object.
could someone suggest a way to do it…
dynamic texture mappingSoftware: Away3D 3.x |
||
Zcgiworks, Newbie
Posted: 28 January 2012 11:54 AM Total Posts: 9 |
||
Alex Bogartz, Sr. Member
Posted: 28 January 2012 08:11 PM Total Posts: 216 [ # 1 ] mesh.material = new BitmapMaterial(myBitmapData); |
||
theMightyAtom, Sr. Member
Posted: 29 January 2012 06:39 AM Total Posts: 669 [ # 2 ] or even myMesh.material = new BitmapFileMaterial(“myImage.jpg”); BitmapFileMaterial loads and assigns. |
||
Zcgiworks, Newbie
Posted: 31 January 2012 12:31 PM Total Posts: 9 [ # 3 ] textureUr : string = “http://localhost/tetst.png”; i dont have clue as to how the data can be retireved from the loader in tas bitmap data. and also since the model was parsed it is available only as object3d so i cant access the mesh data to assign the material to the object. cubeMesh2 = Obj.parse((urlLoader.data), {useMtl:false} ); |