redpawfx
Anybody know more than me using open GL and specifically drawing glPoints ?
 I have  a particle system  I'm trying to draw glPoints  using  transparency from opacity on a particle system,  and  there's a slight difference in the brightness of the  points  and their transparency   where my version ends up being  dimmer than the maya  particles in smooth shaded mode..

Also, with GLdepth test on,  I end up with  fully "transparent" points with the background viewport color  covering up things they're in front of instead of blending with the thing they're in front of properly.

right now I'm using
glEnable(GL_BLEND)
glDisable(GL_DEPTH_TEST)  // enabling this seems to blend the point with the bg color and not  whatever its overlapping with.. so I get 
glDisable(GL_POINT_SMOOTH)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

could I be missing a gl setting or two  somewhere..?

thanks in advance
-john

Reply 0 0
pshipkov
What happens if you disable blending ?
What happens if you stick there glHint(GL_POINT_SMOOTH_HINT, GL_NICEST) ?

Can you post an image ?

Reply 0 0
redpawfx
Ok this is the simplest example image of whats happening.
the highly transparent points in the front are  not blending correctly to reveal the points behind them. its  just like its mixing  to the background instead of whats already in the scene.

disabling blending  turns off any  transparency at all
and the  glHint  did not seem to make any differnce in the look either.

thanks
-johnc



openGL_transparencyIssue.png
Reply 0 0
pshipkov
There is a flag in the MPxLocatorNode class that tells the system to draw it last. This should make the transparent dots to account for other objects behind them. Try that and let me know if still no go.
Reply 0 0
Reply