Only search projects.blender.org
Log In
New Account
Home
My Page
Projects
Blender 2.x BF release
Summary
Activity
Tracker
SCM
Files
Blender 2.6 Bug Tracker: Browse
[#25903] Export to X3D should provide relative path with forward slash for subdirectories in url of ImageTexture
Date:
2011-02-02 00:00
Priority:
3
State:
Closed
Submitted by:
John Coady (
jdc
)
Assigned to:
Campbell Barton (campbellbarton)
Category:
Import/Export
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
Summary:
Export to X3D should provide relative path with forward slash for subdirectories in url of ImageTexture
Detailed description
I performed an Export to X3D on the attached blend file consisting of a plane with a packed image texture from the textures subdirectory. The Export to X3D produced the following result for the ImageTexture url field.
<ImageTexture DEF="vts_jpg" url='"C:\temp\textures/vts.jpg" "vts.jpg"' />
The url contained both forward and back slashes '\' and '/' in the directory. The url field should only contain the relative path of the texture so that when the Exported X3D file is placed on a server or on a disk, the X3D player will be able to find the file in the relative directory. In this case the blend file was placed in the C:\temp directory. The Exported X3D file was placed in the same directory by blender. I would expect the ImageTexture to contain only the relative path from the X3D file, with a forward slash.
<ImageTexture DEF="vts_jpg" url='"textures/vts.jpg" "vts.jpg"' />
Then when I copy the X3D and texture files onto a server or some other media, the X3D player will be able to find the texture files using the relative path.
I am using Blender 2.56.0 r34356 on a windows XP machine. Attached is the blend file to reproduce the problem and the expected X3D file.
Followup
Message
Date
: 2011-02-04 06:23
Sender
:
Campbell Barton
fixed r1537.
Attached Files:
Name
Date
Download
planetex.blend
2011-02-02 00:00
Download
planetex.x3d
2011-02-02 00:00
Download
Changes:
Field
Old Value
Date
By
status_id
Open
2011-02-04 06:23
campbellbarton
close_date
None
2011-02-04 06:23
campbellbarton
details
I performed an Export to X3D on the attached blend file consisting of a plane with a packed image texture from the textures subdirectory. The Export to X3D produced the following result for the ImageTexture url field. <ImageTexture DEF="vts_jpg" url=\'"C:\\temp\\textures/vts.jpg" "vts.jpg"\' /> The url contained both forward and back slashes \'\\\' and \'/\' in the directory. The url field should only contain the relative path of the texture so that when the Exported X3D file is placed on a server or on a disk, the X3D player will be able to find the file in the relative directory. In this case the blend file was placed in the C:\\temp directory. The Exported X3D file was placed in the same directory by blender. I would expect the ImageTexture to contain only the relative path from the X3D file, with a forward slash. <ImageTexture DEF="vts_jpg" url=\'"textures/vts.jpg" "vts.jpg"\' /> Then when I copy the X3D and texture files onto a server or some other media, the X3D player will be able to find the texture files using the relative path. I am using Blender 2.56.0 r34356 on a windows XP machine. Attached is the blend file to reproduce the problem and the expected X3D file.
2011-02-04 06:23
campbellbarton
Status
New
2011-02-04 06:23
campbellbarton
assigned_to
none
2011-02-02 00:56
campbellbarton
details
I performed an Export to X3D on the attached blend file consisting of a plane with a packed image texture from the textures subdirectory. The Export to X3D produced the following result for the ImageTexture url field. <ImageTexture DEF="vts_jpg" url=\'"C:\\temp\\textures/vts.jpg" "vts.jpg"\' /> The url contained both forward and back slashes \'\\\' and \'/\' in the directory. The url field should only contain the relative path of the texture so that when the Exported X3D file is placed on a server or on a disk, the X3D player will be able to find the file in the relative directory. In this case the blend file was placed in the C:\\temp directory. The Exported X3D file was placed in the same directory by blender. I would expect the ImageTexture to contain only the relative path from the X3D file, with a forward slash. <ImageTexture DEF="vts_jpg" url=\'"textures/vts.jpg" "vts.jpg"\' /> Then when I copy the X3D and texture files onto a server or some other media, the X3D player will be able to find the texture files using the relative path. I am using Blender 2.56.0 r34356 on a windows XP machine. Attached is the blend file to reproduce the problem and the expected X3D file.
2011-02-02 00:56
campbellbarton
File Added
14839: planetex.x3d
2011-02-02 00:00
jdc
File Added
14838: planetex.blend
2011-02-02 00:00
jdc