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
shape
s 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
Post a Comment