<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237301</link>
    <title>MATLAB Central Newsreader - Texture mapping matlab</title>
    <description>Feed for thread: Texture mapping matlab</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 10 Oct 2008 03:13:02 -0400</pubDate>
      <title>Texture mapping matlab</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237301#604573</link>
      <author>somesh kashyap</author>
      <description>Greetings,&lt;br&gt;
I have 2 queries, first related to texture mapping and the second related to interpolation. Any help is appreciated :).&lt;br&gt;
Thanks in advance&lt;br&gt;
&lt;br&gt;
1. I am trying to display a VRML file in matlab.&lt;br&gt;
I read the Vertices=V, Faces=F, &lt;br&gt;
Texture co-ordinates RGB values=K&lt;br&gt;
and use the following command to display :&lt;br&gt;
X=V(:,1);Y=V(:,2);Z=V(:,3);&lt;br&gt;
trisurf(F,X,Y,Z,'FaceVertexCData',K,'EdgeColor','interp','facecolor','interp');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
However in a new VRML file along with vertex,faces,texture co-ordinates , TEXTURE CO-ORDINATE INDEX is also given.&lt;br&gt;
I need help in mapping texture co-ordinate index to geometry co-ordinate...i.e. what is the texture at a particular vertex (or face)...and I am totally clueless :)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
2. I have a surface whose vertices are irregularly sampled. I sample it on a regular grid using griddata.&lt;br&gt;
However my surface spans more than 180 degrees so I have 2 different values of Z for a X,Y. griddata however takes the mean of they two Z values. Is there any way to interpolate Z values of my surface in matlab ? should I convert to cylindrical co-ordinates ?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for you time, any help is appreciated.&lt;br&gt;
Regards,&lt;br&gt;
Somi </description>
    </item>
  </channel>
</rss>

