In my program here I have a LineArray displaying a simulation of a nice little Lorenz attractor. Also near the bottom is a blue box built by a QuadArray.
If I create the box with:
qa = new QuadArray(data.length * data[0].length * data[1].length,
QuadArray.COORDINATES | QuadArray.NORMALS | Primitive.ENABLE_GEOMETRY_PICKING);
and don’t give it any normals, I get the problem shown in the not-so-pretty image. If I create it with:
qa = new QuadArray(data.length * data[0].length * data[1].length,
QuadArray.COORDINATES | Primitive.ENABLE_GEOMETRY_PICKING);
then the problem is solved. However then I don’t get normals on my box.
Not so pretty image when using normals on the box:
http://www.gamelizard.com/images/temp/with_normals.png
Pretty image when NOT using normals on the box:
http://www.gamelizard.com/images/temp/without_normals.png
I’ve tried mucking with every number I can find to see if I could shorten or lengthen the breaks between vertices in my LineArray, but had no luck. It seems none of the inputs I’m giving to the constructors or methods have anything to do with it. I’ve tried messing with Appearance settings to see if there’s some default value causing problems that I don’t know about but I haven’t had any luck.
Does anyone recognize what’s going on? I’m hoping someone will see this and understand what this is. I’ve read all the documentation for QuadArray, LineArray and Appearance that I could find. I may have missed something due to lack of understanding but I’m posting here because I don’t know where to look or what else to try.
Thank you! Let me know if there’s any relevant code I need to share