Hi!

Peter's solutions did the trick. Thank you!

A have a little problems with:
var loader:Object3DLoader = Obj.load(_resource, {material:
{color:"black", wire:"white|1"}, name:"OBJ", scaling:10, loadersize:
300});
[some code]
private function onLoaderSuccess(event:Event):void {
   var obj:ObjectContainer3D = (event.target.handle as
ObjectContainer3D);
   var mesh:Mesh = obj.children[0] as Mesh;
   Mirror.apply(mesh, "x", true, false);
}

I get this error:
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
        at away3d.core.base::Face/set v2()
        at away3d.extrusions::Mirror$/build()
        at away3d.extrusions::Mirror$/apply()
        at com.pol.vexpo.view::ViewFloor/addToScene()
        at com.pol.vexpo.util::LoaderObjJpg/returning()
        at com.pol.vexpo.util::LoaderObjJpg/loadShadow()
        at com.pol.vexpo.util::LoaderObjJpg/onLoaderSuccess()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at away3d.loaders::Object3DLoader/notifySuccess()
        at away3d.loaders::Object3DLoader/onParserComplete()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at away3d.loaders::AbstractParser/notifySuccess()
        at away3d.loaders::AbstractParser/parseNext()
        at away3d.loaders::Object3DLoader/startParsingGeometry()
        at away3d.loaders::Object3DLoader/onGeometryComplete()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/onComplete()

Think is something with my OBJ files. Also I can't make them bothside
= true.

On 19 Lis, 16:02, "Peter Kapelyan" <[EMAIL PROTECTED]> wrote:
> You can say mesh.invertFaces(); after scaleX to flip that sock back into the
> right place (and mirror on X like you want)! :)
>
> -Pete
>
> 2008/11/19 Paweł Stanisławczuk (taurus76) <[EMAIL PROTECTED]>
>
>
>
>
>
> > Hi,
>
> > When I load my OBJ exported from LightWave into Away3D i get my models
> > flipped (mirrored) in X axis. I know that this problem was found
> > earlier and away3d team works on solution. Before that I would like to
> > know how can I flip (mirror) models in Away3d, so when the solution
> > will come I don't have to correct my obj files. Tried with mesh.scaleX
> > = -1 but this flips my model inside out (like a sock).
>
> > I'm using the latest svn away3d ver.
>
> > Regards
> > Paweł Stanisławczuk
>
> --
> ___________________
>
> Actionscript 3.0 Flash 3D Graphics Engine
>
> HTTP://AWAY3D.COM

Reply via email to