About Store Forum Documentation Contact



Post Reply 
Materials - File Location
Author Message
Brainache Offline
Member

Post: #1
Materials - File Location
Hey there,

I am trying to find a good solution to this problem:

I have .x files of buildings, each with many different textures used.
When I import these .x files into mesh editor - it creates materials and works perfectly... with one problem:
The texture file locations seem to be hardcoded to the where the texture file was stored...

If I attempt to run the engine on a machine other than the dev machine, it will not find those materials ( even if they are moved into the material folder of the data folder...)

Ideally, the engine would search the material folder for the material name ( minus the directory)...

How do you suggest I handle this?

Thanks!
04-08-2009 04:33 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
Re: Materials - File Location
Hi,

You need to store all the files in your game data path (the path you select at Mesh Editor start)

you can first move the files before importing to the "Game Data/custom folder"
then do the import, which will make the files to be generated inside "Game Data/custom folder"
and the paths will already be stored correctly.
04-08-2009 04:56 PM
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #3
Re: Materials - File Location
Will this store them as relative paths instead of full paths?
04-08-2009 05:02 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
Re: Materials - File Location
Yes, once a file is saved into the "Game Data" path, it is stored in relative path
04-08-2009 05:06 PM
Find all posts by this user Quote this message in a reply
Brainache Offline
Member

Post: #5
Re: Materials - File Location
Great! Thanks.
04-08-2009 08:51 PM
Find all posts by this user Quote this message in a reply
Post Reply