Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

JardaB

Problem with CD3DMesh colors

This topic is 5467 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

Hi, probably Direct3D beginner problem, but I need help ;-) Starting with Direct3D sample StencilMirror I tried to display mesh from a ''.x'' file. The mesh colors are converted just to 16 colors while the fog shade of colour can be changed. The util MVIEW displays the ''.x'' file properly in all shades. What do I need to set/call? Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Solved!

The ''.x'' file was converted from a ''.3ds'' file created by ???. There were quite big values of vertices parameters, so I''d to call
D3DXMatrixScaling( &matScale, 0.003f, 0.003f, 0.003f );
to view the mesh. I don''t know why, but the call changes mesh colors just to 16 colors.

Solved by the ''.x'' file modification - I recalculated all values there and I''m happy now ;-)

JB

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!