That still isnt working for me. Ive been going round and round in
circles for weeks on this and im sure its a simple solution but its
fundamental to my progression that I solve this issue so i really
appreciate your help.
In case this helps in any way, my main Document Class for the FLA is
as follows:
view = new View3D({x:150, y:150});
addChild(view);
var mat : IMaterial = new BitmapMaterial(Cast.bitmap(test));
cb = new theCube({material:mat});
cb.scale(25);
cb.z = 200;
view.scene.addChild(cb);
view.camera.position = new Number3D(10, 10, 10);
view.camera.lookAt(cb.position);
view.render();
And within my Cube Class I have made the change you said:
var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve
[vertexIndex3], null, new UV(1-uv00, uv01), new UV(1-uv10, uv11), new
UV(1-uv20, uv21) );
Back to the document class, I have tried doing cb.scaleX = -1 as you
suggested but that did not work.
What am I doing wrong? Is there something else ive missed?
On Feb 1, 12:51 pm, Fabrice3D <[email protected]> wrote:
> m.scaleX = -1 should do the trick
>
> Fabrice
> On Feb 1, 2010, at 1:35 PM, jonny wrote:
>
>
>
> > excuse my ignorance, but how do you flip the geometry in away3d?
>
> > On Feb 1, 11:42 am, Fabrice3D <[email protected]> wrote:
> >> this was to flip the texture only, not the geometry...
>
> >> Fabrice
> >> On Feb 1, 2010, at 12:13 PM, jonny wrote:
>
> >>> Im afraid it did not work Fabrice.
>
> >>> I am using Dennis exporter. When I made that change, the texture was
> >>> still being applied to the inside faces of the cube and also this time
> >>> it wasnt even the correct part of the texture image being mapped to
> >>> each face.
>
> >>> Also, do I need to set "bothsides = true" to the mesh in away3d? I
> >>> tried that, and at least the outside faces now have a texture although
> >>> it is still the wrong uv mapping. Ive read that you should not use
> >>> bothsides as it reduces performance but not sure if I need it to
> >>> overcome this problem.
>
> >>> Any thoughts?
>
> >>> On Feb 1, 8:50 am, Fabrice3D <[email protected]> wrote:
> >>>> if you use Dennis exporter,
> >>>> just modify this
>
> >>>> var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve
> >>>> [vertexIndex3], null, new UV(uv00, uv01), new UV(uv10, uv11), new UV
> >>>> (uv20, uv21) );
>
> >>>> by
>
> >>>> var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve
> >>>> [vertexIndex3], null, new UV(1-uv00, uv01), new UV(1-uv10, uv11), new UV
> >>>> (1-uv20, uv21) );
>
> >>>> and it should work.
>
> >>>> Fabrice
>
> >>>> On Feb 1, 2010, at 12:58 AM, jonny wrote:
>
> >>>>> var face:Face = new Face( ve[vertexIndex1], ve[vertexIndex2], ve
> >>>>> [vertexIndex3], null, new UV(uv00, uv01), new UV(uv10, uv11), new UV
> >>>>> (uv20, uv21) );- Hide quoted text -
>
> >>>> - Show quoted text -- Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -