Jump to content
  • Advertisement
Sign in to follow this  
SHanghaiARTs

Gfx dont render when run outside IDE, but does when run inside.

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

Ok, I've been trying to figure this out for a long time. I'm using MSVC++2005 and my Dx9 app renders all my objects just fine in debug and release... but only when I press F5 to run it inside the IDE. The debug build renders just fine inside and out, but the release build renders only when I run with F5, otherwise all I get is the clear color. I haven't detected any failures, errors, or warnings with the DX debug runtimes either. I'm really stumped. What could be happening (or not happening) when I run it outside the IDE? Please help!!

Share this post


Link to post
Share on other sites
Advertisement
Hi,

What exactly are you drawing? Can you provide more information.

One example I can think of is if you are trying to access images files etc. from the current working directory it can be different when run in the IDE than from Windows Explorer or the command prompt.

And if you attempt to load assets like this but do not generate errors when files are not found you may not notice anything.

Cheers,
dhm

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Yeah, make sure you use complete filenames, ie c:\blah\blah\file.abc
And/or programically get the current working directory (from an .ini, or api call)

The IDE automatically does this for you, so when running from the actual directory, it doesn't always give you the right file path.

That's the main problem, just make sure your assets are infact getting loaded.

Share this post


Link to post
Share on other sites
I'm pretty certain I've got the right directory. If it was wrong, all my files would have failed to load, and I am checking the return values on all my load calls. If any of them returned with anything other than success, the app should terminate. Another strike against that is the fact that the debug build works fine outside the IDE, it's only the release build that doesn't render. Thanks for your input anyway, though.

As for what I'm drawing: at this point, just some textured quads.

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!