Jump to content
  • Advertisement
Sign in to follow this  
kreuzritter

DirectX Windows Mobile

This topic is 4525 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 ! Task: textured height map surface with lighting and material Environment: VS 2005 + Windows Mobile 5.0 Pocket PC SDK Problem: under win32 all work correctly, under WinMobile the same code paints surface in black Assumption: may be some flags are incorrect ? _pd3dmDevice->SetMaterial(&_matMaterial, D3DMFMT_D3DMVALUE_FLOAT ); _pd3dmDevice->SetLight(0, &d3dLight, D3DMFMT_D3DMVALUE_FLOAT ); _pd3dmDevice->LightEnable(0, TRUE); _pd3dmDevice->SetRenderState(D3DMRS_CULLMODE, D3DMCULL_NONE ); _pd3dmDevice->SetRenderState(D3DMRS_ZENABLE, TRUE ); _pd3dmDevice->SetRenderState(D3DMRS_LIGHTING, TRUE); _pd3dmDevice->SetRenderState(D3DMRS_SPECULARENABLE, TRUE); _pd3dmDevice->SetRenderState(D3DMRS_FILLMODE, D3DMFILL_SOLID); _pd3dmDevice->SetRenderState(D3DMRS_AMBIENT, 0x00202020 ); Thank you ! With best Regards, Roman

Share this post


Link to post
Share on other sites
Advertisement
Complete guess because I've never used Windows Mobile, but the PocketPC probably doesn't support the same features as the Win32 machine. Check out the device caps. The most likely one to cause a problem that I can see is the specular highlights.

Share this post


Link to post
Share on other sites
Have you checked the caps of your Windows Mobile device? Maybe some of the features you are trying to use are not supported.

Share this post


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

  • 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!