Jump to content

Failing to Load Textures


Road Kill Kenny
 Share

Recommended Posts

Having a rather odd issue here.

 

Loading textures seems to be failing even though they are located in the correct location.

 

Here is the output of the console for the failed load:

post-3220-0-80918900-1335488664_thumb.jpg

 

Here is the file path being shown below:

C:UsersPublicScarlet Thread Games01 Game ProjectsHome WarsHome WarsAssetsMenuBackgrounds

post-3220-0-02243700-1335488799_thumb.jpg

 

As you can see, it is searching for the files in the correct location and the images are indeed there but they fail to load. I have loaded these before in a different project so I know that the file is fine. Anyone have any idea why? Anyone had a similar issue before?

 

Please don't tell me that I've set my abstract path wrong because I haven't. The output in the console shows that its looking in the correct spot.

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

Ok I fixed it. I think my problem was loading a texture before the graphics window was created or something like that. I'm not really sure but I just reverted to putting all my Initializing code etc. close together again and it worked.

 

Phew...

STS - Scarlet Thread Studios

AKA: Engineer Ken

 

Fact: Game Development is hard... very bloody hard.. If you are not prepared to accept that.. Please give up now!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...