algorithm - Java 2D Shading / Filling -


i have created "blob" bezier curves (screenshot below) , shade in such way appears pseudo-3d, darker shading on "left" edges , lighter on "right" edges, , perhaps pure white "light spots" on surface itself. example: i'd interested in how achieve shading used in this video.

  • can recommend way achieve this? guessing standard graphics2d.fill , setpaint methods may not sophisticated enough.
  • also, can recommend resources (preferrably free / online) learning more on this?

edit

some additional information: achieve flat fill effect below i'm creating area object , adding individual ellipse2d shapes using add(new area(ellipse)) , adding central polygon area avoid leaving white space in middle.

alt text http://www.freeimagehosting.net/uploads/bc8081cbf2.png

the iphone apps have access opengl-es allows significant latitude in shading , rendering coloured iso-surface emissive lighting. java2d not sophisticated enough unless willing write whole software 3d library it.

mixing 2d , 3d possible.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -