Adding Bitmap to my spaceship

3 views
Skip to first unread message

maltech

unread,
Jul 15, 2009, 1:17:27 PM7/15/09
to away3d.dev
Hello,

Thanks for all the help earlier.

I have a jpg that goes with my spaceship. Everything works fine when I
load it in 3ds max so it should work

when I try to use it as material in the loader, it just turns my ship
white.

Do I need to load the bitmap material first somehow and if so how do I
load it?

desgraci

unread,
Jul 15, 2009, 1:23:05 PM7/15/09
to away3d.dev
try this
[Embed(source="the picture.jpg")]
private var materialClass:Class;

private var materialMaterial:BitmapMaterial;


public function World()
{


scene = new Scene3D();
// create a basic camera
//cam = new Camera3D();
cam = new Camera3D({zoom:5, focus:100,z:300,y:
300});
//view = new View3D({camera:cam,x:250,y:200});
view = new View3D({camera:cam, scene:scene});
view.x = 400;
view.y = 300;
addChild(view);

materialMaterial = new BitmapMaterial(Cast.bitmap
(materialClass),{smooth:true, precision:1});

fighter = new Object3DLoader(Max3DS.load
("f360.3ds",
{ material:materialMaterial, name:"fighter",
scaling:50, y:0, x:0, z:0,
rotationX:-90, loadersize:300}));

maltech

unread,
Jul 15, 2009, 1:32:13 PM7/15/09
to away3d.dev
Thanks for that.

It looks like it would have worked but I got a buncha UV errors. I
think when I export it to 3ds from 3dsmax I lose something. Why can we
not load a .max file?

desgraci

unread,
Jul 15, 2009, 1:39:46 PM7/15/09
to away3d.dev
interesting
could u upload the fiiles to check that problem?

maltech

unread,
Jul 15, 2009, 1:44:06 PM7/15/09
to away3d.dev

desgraci

unread,
Jul 15, 2009, 1:46:01 PM7/15/09
to away3d.dev
only the last file worked

desgraci

unread,
Jul 15, 2009, 1:46:15 PM7/15/09
to away3d.dev
url i mean the others Not Found

On 15 jul, 12:46, desgraci <ierafaelper...@yahoo.com> wrote:
> only the last file worked

Peter Kapelyan

unread,
Jul 15, 2009, 1:46:42 PM7/15/09
to away3...@googlegroups.com
A .max file is a project scene file, and not an object. You should use the .3ds if you can

-Pete
--
___________________

Actionscript 3.0 Flash 3D Graphics Engine

HTTP://AWAY3D.COM

maltech

unread,
Jul 15, 2009, 1:50:02 PM7/15/09
to away3d.dev
case sensitive issues lol, i fixed it try again

On Jul 15, 1:44 pm, maltech <supp...@theuaz.com> wrote:
> http://branchdepartment.net/test/Littlespaceship.jpgis the jpghttp://branchdepartment.net/test/Littlespaceship.maxis the origional
> max filehttp://branchdepartment.net/test/spaceship.3DSis the 3DS i exported

desgraci

unread,
Jul 15, 2009, 1:52:27 PM7/15/09
to away3d.dev
maybe im ignorant, but thats doesnt looks like a skin for a model...,
looks like more the render of the ship finished

desgraci

unread,
Jul 15, 2009, 2:08:00 PM7/15/09
to away3d.dev
but i remembered theres a lot of tutorials on doing this

http://www.youtube.com/watch?v=WOWTaUmvsO4
Reply all
Reply to author
Forward
0 new messages