About Store Forum Documentation Contact



Post Reply 
Material Paths Relative vs Absolute
Author Message
llynx Offline
Member

Post: #1
Material Paths Relative vs Absolute
Say a material has been created and it contains a relative path to an image in the same folder (If you move the folder somewhere else the material remains unaffected. If you change the image to another image is a different folder in a higher directory by dragging the *.gfx into the material editor the material stores an absolute path to the image.

Is there any way so that it would store a relative path e.g. "..\another folder\image.gfx" instead of "C:\Project folder\Data\another folder\image.gfx"?
02-07-2011 11:31 PM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #2
RE: Material Paths Relative vs Absolute
I think it is converted to a relative path automatically when you save and load it again, no?
02-07-2011 11:38 PM
Find all posts by this user Quote this message in a reply
llynx Offline
Member

Post: #3
RE: Material Paths Relative vs Absolute
(02-07-2011 11:38 PM)yvanvds Wrote:  I think it is converted to a relative path automatically when you save and load it again, no?

OH!

I've been overwriting instead of saving. Thank you!
02-08-2011 12:46 AM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #4
RE: Material Paths Relative vs Absolute
What is the difference between overwite and save in the material editor?
02-08-2011 09:03 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #5
RE: Material Paths Relative vs Absolute
Well if you import a model with a texture it saves the entire path to its texture. And if you save it in the material editor then it saves the relative path.

There is always evil somewhere, you just have to look for it properly.
02-08-2011 11:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #6
RE: Material Paths Relative vs Absolute
"Overwrite" is "Save"
and "Save" is "Save As"
02-08-2011 08:34 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #7
RE: Material Paths Relative vs Absolute
That's what I thought, so why would Overwrite and Save store the paths differently? Shouldn't the paths always be stored as relative?

On a side note, perhaps the Overwrite button should be changed to Save and the menu option changed to Save As. I remember this was something that tripped me up when I was first learning EE. I was looking for a Save button.
02-09-2011 01:15 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #8
RE: Material Paths Relative vs Absolute
Quote:That's what I thought, so why would Overwrite and Save store the paths differently?
they use the same path calculations

resource path is stored as relative to parent resource only if it's inside the same folder or some sub-folder, in other case it's stored as relative to DataPath
02-09-2011 02:28 PM
Find all posts by this user Quote this message in a reply
Post Reply