Is there any way to change OpenGL properties when rendering a surface?
    7 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi,
Is there any way to change OpenGL properties when rendering a surface in Matlab, especially depth peeling? Here an example on how the surface looks like with alpha = 0.5 in Matlab (left) and depth peeling on a different platform (right).
Thanks,
Cristi

0 Commenti
Risposte (2)
  Sally Al Khamees
    
 il 3 Feb 2017
        If I understand your question correctly, the list of properties returned by opengl are:
 >> opengl('info')
                          Version: 
                           Vendor:
                         Renderer: 
            RendererDriverVersion:
        RendererDriverReleaseDate: 
                   MaxTextureSize: 
                           Visual: 
                         Software: 
             HardwareSupportLevel: 
        SupportsGraphicsSmoothing: 
    *SupportsDepthPeelTransparency*: 
       SupportsAlignVertexCenters: 
                       Extensions: 
               MaxFrameBufferSize:
the SupportsDepthPeelTransparency returns 1 if is supported and 0 otherwise.
You can refer to this document for more information on depth peel support https://www.mathworks.com/help/matlab/ref/opengl.html
And this for specifying rendering techniques: https://www.mathworks.com/help/sl3d/specify-rendering-techniques.html?
I hope that helps
0 Commenti
  Tectract
 il 28 Apr 2022
        I ran into this same problem. DepthPeelTransparency is causing weird issues with surf() function EdgeAlpha displaying incorrectly or diffent, on my new system.
you can use the command:
opengl hardwarebasic
 to revert to the older-style or more basic style rendering that does not use DepthPeelTransparency
use the command:
opengl hardware
 to revert this change in rendering back to using your full GPU capabilities including DepthPeelTranspancy
0 Commenti
Vedere anche
Categorie
				Scopri di più su Graphics Performance in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


