Steve,
Okay. The code works now. I rebooted (serveral times) and it works. I
agree some garbage must
be introduced somewhere. I just have to find it.
thank you so much.
Steve
At 02:58 PM 11/30/99 -0600, you wrote:
>What platform are you running this on? I ran this on Solaris, and it
>worked.....pretty much. I was getting a very small gap in the green line.
>I did not see any multi-colored lines.
>
>I suspect that what's going on is that garbage is getting introduced
>somewhere, and being acted upon. When I changed the "20" to a "6" in the
>code below, the small gap went away. Try that and see if it works.
>
>Steve
>
>Steve Sampson wrote:
>
>> With the following code, I expect 2 white lines and one green.
>> Instead I get 3 multi-colored lines. I have tried all kinds of parameters.
>>
>> What is wrong?
>>
>> public BranchGroup createSceneGraph()
>> {
>> BranchGroup objRoot = new BranchGroup();
>>
>> LineArray line_view = new LineArray(20, LineArray.COORDINATES |
>> LineArray.COLOR_3);
>>
>> line_view.setCoordinate( 0, new Point3f(-1.0f, 0.5f, -1.0f));
>> line_view.setColor(0,white);
>> line_view.setCoordinate( 1, new Point3f(1.0f, 0.5f, -1.0f));
>> line_view.setColor(1,white);
>>
>> line_view.setCoordinate( 2, new Point3f(-1.0f, 0.0f, -1.0f));
>> line_view.setColor(2,green);
>> line_view.setCoordinate( 3, new Point3f(1.0f, 0.0f, -1.0f));
>> line_view.setColor(3,green);
>>
>> line_view.setCoordinate( 4, new Point3f(-1.0f, -0.5f, -1.0f));
>> line_view.setColor(4,white);
>> line_view.setCoordinate( 5, new Point3f(1.0f, -0.5f, -1.0f));
>> line_view.setColor(5,white);
>>
>> objRoot.addChild(new Shape3D(line_view));
>>
>> objRoot.compile();
>>
>> return objRoot;
>> }
>>
>> ------------------------------------------------------------------------
>>
>> WWrong.javaName: WWrong.java
>> Type: Plain Text (text/plain)
>>
>> ------------------------------------------------------------------------
>
>--
>Steve Pietrowicz - [EMAIL PROTECTED]
>
>J3D.org: http://www.j3d.org
>
>NCSA Portfolio 1.3 beta 3: http://www.ncsa.uiuc.edu/~srp/Java3D/portfolio/
> New Loaders, turn your Canvas3D into a JPEG, new InputDevices and more!
> Freely available for non-commercial use!
>You Build It VR: http://www.ncsa.uiuc.edu/~srp/Java3D/YouBuildItVR/
> Build your own multi-user virtual worlds with no programming experience!
>Astro3D: Java 3D Astronomy - http://www.ncsa.uiuc.edu/~srp/Java3D/Astro3D/
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".