PointArray and antialiasing problems

View: New views
2 Messages — Rating Filter:   Alert me  

PointArray and antialiasing problems

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello! first of all thanks for reading this!.

I'm rendering a surface by using a pointArray.

I would like to set 'true' the antialiasing atributte of "pointattributes", because the shape becomes much smoother, but then the surface is not rendered as espected, showing some problems(some poins became transparent in some conditions).

Example:
http://img258.imageshack.us/img258/9286/java3dproblem.jpg

Whats the cause of this? can be solved?

thank you.
[Message sent by forum member 'orihalcon' (thenextoriginal@...)]

http://forums.java.net/jive/thread.jspa?messageID=370752

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...


Re: PointArray and antialiasing problems

by java3d-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Anti-aliased Lines, and Points,  are a form of transparency, as OpenGL docs define.

So you must deal with this as you deal with transparent objects :
 Drawing it after opaque objects and sorted back to front.

I guess the following may help you :

a) Enable View's TRANSPARENCY_SORT_GEOMETRY at transparency sort policy;
b) Define an Appearance for anti-aliased points with TransparencyAtributtes with blending transparency with BLEND_SRC_ALPHA (source) and BLEND_ONE_MINUS_SRC_ALPHA (destination). Anti-aliased Lines works better with BLEND_SRC_ONE (source) .


Check javadocs at http://download.java.net/media/java3d/javadoc/1.5.0/index.html


Further reading :
OpenGL Line and Point Antialiasing :
http://www.opengl.org/resources/code/samples/sig99/advanced99/notes/node120.html
[Message sent by forum member 'zesharp' (zando.silva@...)]

http://forums.java.net/jive/thread.jspa?messageID=370851

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@...
For additional commands, e-mail: interest-help@...