At 01:40 PM 9/22/00, EEOAM wrote:
>Thanks, but I meant like a 3D sphere using only Java2D.
>
>Eric.
Your question is not very well specified. My guess is that you mean you
are asking about how to do shading.
I don't know of a simple way to shade a circle to appear as a sphere in
Java2D. The built-in fill only has a gradient (java.awt.GradientPaint).
http://java.sun.com/docs/books/tutorial/2d/display/strokeandfill.html
http://www.apl.jhu.edu/~hall/java/Java2D-Tutorial.html
You will probably need to implement the Paint and Transparency interfaces
to get the effect you desire. The GradientPaint source code will
illustrate how to do that.
The VisAD toolkit may be helpful (or not since it probably uses Java3D for
what you want):
http://www.ssec.wisc.edu/~billh/visad.html
jim
>Jim Bucher <[EMAIL PROTECTED]> wrote:
>java.awt.Graphics.fillOval(int x, int y, int width, int height)
>
>
>At 11:24 AM 9/22/00 -0700, EEOAM wrote:
> >Hi,
> >
> >does anyone know how I can draw a sphere with Java2D?
> >
> >Thanks,
> >
> >Eric M.
> >
> >____________________________________________________________________
> >Get your own FREE, personal Netscape WebMail account today at
> >http://home.netscape.com/webmail
> >
> >===========================================================================
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> >of the message "signoff JAVA2D-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 JAVA2D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
>
>
>____________________________________________________________________
>Get your own FREE, personal Netscape WebMail account today at
>http://home.netscape.com/webmail
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA2D-INTEREST". For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".
----------------------------------------------------------------
James P. White Netscape DevEdge Champion for IFC
IFC Exchange * Insanely great Java * http://www.ifcx.org
[EMAIL PROTECTED] Pagesmiths' home is http://www.pagesmiths.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".