Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25522] Export to X3D is missing ImageTexture and TextureTransform for plane with image texture

Date:
2011-01-06 22:12
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 is missing ImageTexture and TextureTransform for plane with image texture
Detailed description
I performed an Export to X3D on the attached blend file which contains two plane objects which have an image texture. The first plane object has an ImageTexture with a type of "Image or Movie" and a Mapping coordinates = Generated and projection = Flat. The corresponding plane shape in the exported X3D file does not have the ImageTexture assigned to it. For the second plane object I have the same configuration for the Image Texture as the first plane but for the Image Mapping configuration I set Repeat X=2 Y=2. The Exported X3D file did not have a TextureTransform with the scale="2.0 2.0" to repeat the Texture pattern. This is what I expected the Exported X3D file to contain but the ImageTexture and TextureTransform nodes were missing from the Appearance node.


<Collision enabled="false">
<Transform DEF="Plane_001" translation="0.913632 0.468164 -2.645584" scale="1.000000 1.000000 1.000000" rotation="-1.000000 0.000000 0.000000 1.570796" >
<Group DEF="G_Plane_001">
<Shape>
<Appearance>
<Material DEF="MA_Material_002" diffuseColor="0.8 0.8 0.8" specularColor="0.401 0.401 0.401" emissiveColor="0.0 0.0 0.0"
ambientIntensity="0.333" shininess="0.098" transparency="0.0" />
<ImageTexture DEF="VTS" url="vts.jpg" />
<TextureTransform center="0.0 0.0" rotation="0.0" scale="2.0 2.0" translation="0.0 0.0" />
</Appearance>
<IndexedFaceSet solid="true" coordIndex="0 3 2 1 -1, " >
<Coordinate DEF="coord_Plane_001"
point="1.000000 1.000000 0.000000, 1.000000 -1.000000 0.000000, -1.000000 -1.000000 0.000000, -1.000000 1.000000 0.000000, " />
</IndexedFaceSet>
</Shape>
</Group>
</Transform>
</Collision>

<Collision enabled="false">
<Transform DEF="Plane" translation="0.000000 0.000000 0.000000" scale="1.000000 1.000000 1.000000" rotation="-1.000000 0.000000 0.000000 1.570796" >
<Group DEF="G_Plane">
<Shape>
<Appearance>
<Material DEF="MA_Material_001" diffuseColor="0.8 0.8 0.8" specularColor="0.401 0.401 0.401" emissiveColor="0.0 0.0 0.0"
ambientIntensity="0.333" shininess="0.098" transparency="0.0" />
<ImageTexture USE="VTS" />
</Appearance>
<IndexedFaceSet solid="true" coordIndex="0 3 2 1 -1, " >
<Coordinate DEF="coord_Plane"
point="1.000000 1.000000 0.000000, 1.000000 -1.000000 0.000000, -1.000000 -1.000000 0.000000, -1.000000 1.000000 0.000000, " />
</IndexedFaceSet>
</Shape>
</Group>
</Transform>
</Collision>


I am using the blender version 2.56 r34103 on a windows XP machine. Attached are my blend file and imageTexture I used for this example and the Expected X3D output file.

I am trying to reproduce the ImageTexture functionality found in this video tutorial.

http://asitssfl01.ase.tufts.edu/blackboard/DR21/ImageTextures.html





Followup

Message
  • Date: 2011-01-07 03:47
  • Sender: Campbell Barton
  • fixed r34136.
    - tile option was broken.
    - added basic export of texture/mtex transformation. (offset, scale, repeat, flip-x/y)
    - recent mesh update broke material/image export with no UVs
 

Attached Files:

Name Date Download
planeImg.x3d 2011-01-06 22:12 Download
vts.jpg 2011-01-06 22:12 Download
planeImg.blend 2011-01-06 22:12 Download

Changes:

Field Old Value Date By
status_idOpen2011-01-07 03:47campbellbarton
close_dateNone2011-01-07 03:47campbellbarton
assigned_tonone2011-01-07 03:47campbellbarton
StatusNew2011-01-07 03:47campbellbarton
File Added14413: planeImg.blend2011-01-06 22:12jdc
File Added14414: vts.jpg2011-01-06 22:12jdc
File Added14415: planeImg.x3d2011-01-06 22:12jdc