Sign in to follow this  

why some edge of the rotating cube has color deviation

This topic is 1734 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

for example, the edge between face (0, 255, 0) and face (255, 0, 255) has clear color deviation

there is no color deviation if the cube is static

how can i do to remove the color deviation if the cube is rotating Edited by tcige

Share this post


Link to post
Share on other sites

Can you post a screen shot to show what you are talking about?  It is hard to suggest anything, since we can't really see what the issue is!

Share this post


Link to post
Share on other sites

Can you post a screen shot to show what you are talking about?  It is hard to suggest anything, since we can't really see what the issue is!

 

i do not know how to get the screen shot because the cube is rotating, the color is correct when static

 

the code is simple, the rotating cube, one color on face, using fvf

Share this post


Link to post
Share on other sites

i do not know how to get the screen shot because the cube is rotating, the color is correct when static

 

Use PntScn, or the Snipping Tool.

 

If it looks fine in the screenshot, then there is nothing wrong and the "color deviation" is just some motion artifact with your monitor.

Share this post


Link to post
Share on other sites

Are you rotating the vertices using rotation matrix and the API (e.g. HW transformation) or are you doing it through CPU (SW transformation) ?

 

If it is the latter, you might want to double check if you are really duplicating all the colors/vertices in VB correctly.

Share this post


Link to post
Share on other sites

Can you post a screen shot to show what you are talking about?  It is hard to suggest anything, since we can't really see what the issue is!

 

i do not know how to get the screen shot because the cube is rotating, the color is correct when static

 

the code is simple, the rotating cube, one color on face, using fvf

You're going to have to show us some code or be more specific for us to help you.

Share this post


Link to post
Share on other sites
Sign in to follow this