Game Development Community

Texture Loading Problem

by Matthew Harris · in Torque X 3D · 12/15/2006 (10:52 pm) · 3 replies

Everytime I open my .txscene in TGBX and add a material and switch say the startergame image to another image save the .txscene then try to just run the windows version I get an exception on loading the texture in the resourcemanager. Texture tex = CurrentContentManager.Load(loadpath); on my texture. Any ideas what I am doing wrong?

BTW Creators Club Rocks!

#1
12/16/2006 (12:09 am)
I solved the problem and have a suggestion for a future release. The problem was my image file wasn't in my Visual C# Project images folder. So it couldn't recognize it. I think when you add images (materials) to TGB the images should be put into the images folder in your C# project to avoid this problem.
#2
12/18/2006 (9:48 am)
TGBX is supposed to add images to the project when you add them via TGBX. So that might be a bug. Can you reproduce it?
#3
12/19/2006 (9:14 am)
@John - I can verify that when adding materials in TGBX it does NOT add them to the vs.net solution. I ran into this issue a few weeks ago, but forgot to post about it so that people knew.

TGBX DOES however add the level's .txscene to the project when you add/save a new level.