Jump to content
  • Advertisement

Archived

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

ReturnZero

Z Buffering Problems

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

Hello. I am having problems with creating a depth buffer with D3D IM. I have narrowed it down to where the problem is, but the thing is that it quits without an error message. This is the code that is stops at: hret=lpD3D->EnumZBufferFormats( IID_IDirect3DRGBDevice, EnumZBufferFormatsCallback, (VOID*)&zpixelf ); if(FAILED(hret)) { ofile<<"ERROR - Z Buffer Formats Enumeration Error"<

Share this post


Link to post
Share on other sites
Advertisement
If I understand what you''re saying, then it''s because you are not closing the file. I think the call would be ofile.close() since that looks like you are using fstream. If the program is crashing or something, and you''re not closing the file, then it won''t write to it. That''s one flaw in the way windows manages disk files. There might be some function that will let you flush the buffer to disk, though, look in the documentation.

------------------------------
Jonathan Little
invader@hushmail.com
http://www.crosswinds.net/~uselessknowledge

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Umm.. Look at your code, dawg.. =)

the file input says:
{
ofile<<"ERROR - Z Buffer Formats Enumeration Error"< return FALSE;
}

try changing that to:
{
ofile<<"ERROR - Z Buffer Formats Enumeration Error";
return FALSE;
}

--SR

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!