Ok, after many hours of detective work - it turns out THIS WAS a
FOOLISH Newbie mistake...
I needed to use the specialised renderer that does Z-ordering right
rather than the default one thus:
view_3d=new View3D({camera: camera,
renderer:
Renderer.CORRECT_Z_ORDER});
I'm trying to think of a constructive suggestion help other people in
the future to avoid such a time consuming learning process.
I can see that you made a simpler renderer the default for performance
reasons, but the trouble is, newcomers to Away3D - even those with
considerable experience of graphics programming like me will never
guess that the default is to not render in correct Z order. The point
being there is no easy, conspicuous or quick route to discovering this
fact.
I discovered it when I went back to see if I could modify one of your
published tutorials to exhibit the problem I was having. I noticed
this renderer being used in the ExCubeMusic example. I see however
that it is not used in the ExCamera3d example. Why is this ok?
On May 29, 10:47 pm, "Pete Howard (home account)"
<[email protected]> wrote:
> I also just tried compiling and running it in flash player instead
> with Air - but with same rendering problem.
> Pete
>
> On May 29, 9:00 pm, "Pete Howard (home account)"
>
>
>
>
>
>
>
> <[email protected]> wrote:
> > I just tried upgrading tohttp://away3d.googlecode.com/svn/trunk/fp10/Away3D,
> > but this version exhibited the same rendering problem.
> > Ps. Out of the box this trunk version threw a runtime exception from
> > core/utils/Init.as > "Error #1065: Variable _init is not defined." -
> > in each of the get*() methods.
> > It was happy if I removed the arcane namespace qualifier from the
> > variable.
>
> > Pete
>
> > On May 28, 11:30 pm, "Pete Howard (home account)"
>
> > <[email protected]> wrote:
> > > Hi,
> > > First - thanks for a fantastic library.
>
> > > I have a rendering problem with a scene containly only <Plane>
> > > primitives. The z-depth sequencing seems to go wrong arbitrarily
> > > sometimes. I have make three images to show the problem - that you can
> > > look at via the URL below.
>
> > > The scene comprises a set of <Plane>s all with a common parent, and
> > > which are all orthogonal to the x,y,z axes. Each image shows a
> > > different set of axis rotations applied to the parent object's axes -
> > > and as you can see, the rendering seems broken, somewhat randomly.
>
> > > Away3d 3.6 (SVN tag checkout)
> > > Flex 4.5
> > > Air 2.6
>
> > > I've put the images at:
>
> > >https://picasaweb.google.com/lh/sredir?uname=104622320515171321512&ta...
>
> > > I do hope I'm not wasting your time, with a foolish Newbie mistake. I
> > > am a professional developer, and have looked long and hard for dumb
> > > errors on my own part.
>
> > > If this isn't an obvious known problem - I'd be glad to try any
> > > experiments that would help to diagnose it.
>
> > > Pete H