Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

StockShader k3dCPVFatPointShader size per point?

3 REPLIES 3
Reply
Message 1 of 4
haggi_master
507 Views, 3 Replies

StockShader k3dCPVFatPointShader size per point?

haggi_master
Advocate
Advocate

Hi,

I have an Override which uses a k3dCPVFatPointShader created with shaderManager->getStockShader(MHWRender::MShaderManager::k3dCPVFatPointShader);

 

Here I can can set the color per point. Is there any way to set the point size per point? As much as I can see, the stock shader only uses one size for all points.

0 Likes

StockShader k3dCPVFatPointShader size per point?

Hi,

I have an Override which uses a k3dCPVFatPointShader created with shaderManager->getStockShader(MHWRender::MShaderManager::k3dCPVFatPointShader);

 

Here I can can set the color per point. Is there any way to set the point size per point? As much as I can see, the stock shader only uses one size for all points.

3 REPLIES 3
Message 2 of 4
olarn
in reply to: haggi_master

olarn
Advocate
Advocate

Looks like the shader instance has "pointSize" parameter.

Check out .parameterList()

 

This information seems to be forwarded to "mayaPoint2Quad" fragment which appears to handle actual point render btw.

0 Likes

Looks like the shader instance has "pointSize" parameter.

Check out .parameterList()

 

This information seems to be forwarded to "mayaPoint2Quad" fragment which appears to handle actual point render btw.

Message 3 of 4
haggi_master
in reply to: olarn

haggi_master
Advocate
Advocate

The point size ist set as a uniform parameter what means all points get the same size, not as a value per point. I'd like to use a different size per point if possible.

0 Likes

The point size ist set as a uniform parameter what means all points get the same size, not as a value per point. I'd like to use a different size per point if possible.

Message 4 of 4
olarn
in reply to: haggi_master

olarn
Advocate
Advocate

Oops I misunderstood your question.

 

I looked at the stock fat point shader source and like you said it doesn't seems to support per point size.

However there is one promising fragment called "mayaFatPointVaryingSizeShader" that get its per point size data from "getPointSize" fragment, mapped to TEXCOORD

 

I didn't investigate how to compose this to working shader yet.

Oops I misunderstood your question.

 

I looked at the stock fat point shader source and like you said it doesn't seems to support per point size.

However there is one promising fragment called "mayaFatPointVaryingSizeShader" that get its per point size data from "getPointSize" fragment, mapped to TEXCOORD

 

I didn't investigate how to compose this to working shader yet.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report