Game Development Community

Adding textures

by Eric S Jordan · in Torque 3D Beginner · 01/28/2014 (9:32 am) · 8 replies

In the FPS tutorial when you add the trashcan to the map it enters the play area as a textured item. I purchased the sci-fi pack to practice with the engine. When I add them to a test map they have no textures on them. i must be missing something, what do I do to add them with the textures already on the models?

Thank you.

#1
01/28/2014 (4:01 pm)
Double check the file's material.cs you are using to ensure there are not hard coded path entities. Basically if you see something that looks like this.... game/art/yourfolder/yourTexture.jpg or whatever. Then your file is going to be broken. Change your art's material.cs to state simply... yourTexture

SO.... game/art/subFolder/whatever.jpg would be textureName.jpg

This is an ANNOYING thing that has been around since T3D started. I really should FIX it.

Hope that makes sense, Additionally, if you have further issues, run Delete DSOs. It sometimes helps.

Ron
#2
01/28/2014 (4:54 pm)
Also I note that sometimes you just have to go to the object editor and select the materials on the object and then click on the edit button and it auto loads up the texture straight away as well.
#3
02/02/2014 (11:35 am)
so, I was able to open them up in the object editor and add some of the textures. How do I get some of the textures for the objects that do not have textures? Has anybody had issues with the sci-fi pack other than me?
#4
02/02/2014 (5:20 pm)
@Ron,

the only difference I can see in your example is cap letter 'F' in subFolder that dosn't exist in yourfolder.

But what mistake are you getting at or was that it?
#5
02/02/2014 (5:28 pm)
What he's getting at is that you have to ensure you have correct paths to your textures in each model's material.cs file. Frequently exporters or converters use the paths from the original art locations and not the exported-to-engine correct paths - it's a fairly common thing to see.
#6
02/02/2014 (7:34 pm)
but, some of them are working already. So, I don't think it is a path issue.
#7
02/02/2014 (7:55 pm)
<shrug> Then I guess you've got it handled.
#8
02/03/2014 (6:24 am)
I do not, some of them still wont display. Is there a way to correlate each piece to its proper texture? I tried to read the list of them but it does not seem to list a 1 to 1.