> Date: Mon, 22 Jul 2002 20:11:02 +0200 > From: Andrey Zinovyev <[EMAIL PROTECTED]> > > When ANTIALIASING is false (points are like squares) all looks ok, > but when ANTIALIASING is true (points are like circles) I have next > problems: > 1) The size of points is limited (I couldnt make them, say, 50f size)
This is a hardware or native layer API (OpenGL/D3D) limitation for antialiased points. > 2) Z-order of points is uncorrect, it means that if I rotate the scene I > always have last (in the massif) points > hidden by the first ones. > Is it a bug? No. Antialiased points and lines are rendered through blending operations, like transparency, unless your hardware supports and you enable full-scene antialiasing. Blended objects are rendered in a second pass after all opaque, non-blended objects. By default, the second blending pass has updates to the hardware Z-buffer disabled so that graphics fragments are blended in the order in which they are rendered. This is done because most blending ops are rendering order dependent in their effects, and because you want to still be able to see objects that would normally be obscured by objects in front of them. Try View.setDepthBufferFreezeTransparent(false). This will probably work if the only blended objects you have are points and lines. Another alternative is to call View.setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY), although this has the overhead of sorting all transparent and blended objects from front to back for each frame. Also, the sorting is only performed at the Geometry level, so this won't work if all your points are in a single PointArray. > BTW, is it possible to change a way of how the points in PointArray look > like? Say, is it possible to make points look like triangles, rhombs or > something? No, Java 3D doesn't have explicit support for markers. You can implement them with rasters or geometry. -- Mark Hood =========================================================================== 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".
