Luc,

Are you using the .AS3 exporter for blender? I usually have no problems with it.

Sometimes though, due to AS3 being a little crappy sometimes you might want to make sure that you create your BitmapMaterial before you instantiate your blender Mesh.

So, maybe try something like:

var rockMat:IMaterial = new BitmapMaterial(whateverBitmap , {smooth:true});

randomOne = new RandomOne({material:rockMat});

Good luck,

Sean

On Jan 22, 2009 12:20am, Manic <[email protected]> wrote:


It might be that the object you've made in blender doesn't have any UV

coordinates for the texture to map to. You need to look up a UV

unwrapping tutorial for blender (i'm not familiar with the programme

myself)



On Jan 22, 7:14 am, Luc [email protected]> wrote:

> Hi all, you've already solved my issues with previous questions and

> that is a great group so I hope you can help me with this one.

>

> I have created a world with planets that are textured with bitmap and

> this works fine:

>

> planetOne = new Sphere( { radius:260, x:-0.6, y:-0.3, z:-800,

> segmentsH:20, segmentsW:20 } );

> planetOne.material = new BitmapFileMaterial("texture_one.jpg");

>

> However when I want to apply a texture on a mesh that I generated

> through Blender, this does not work:

>

> // This object extends Mesh

> randomOne = new RandomOne();

> randomOne.material = new BitmapFileMaterial("rock.jpg");

>

> I searched the docs extensively and I cannot seem to find whether

> there are restrictions on what objects you can apply textures to, so

> what I am missing there?

>

> Thanks.

Reply via email to