Hello,
I am rendering a movie of an cube that gradually changes its height.
Since, as far as I know I can only scale meshes uniformly in Radiance (-s), I am constructing my meshes in matlab, export them as .obj, convert them to .rtm and render each frame with Radiance. This part works fine.
I also want to texture-map my cube, and the texture should scale together with the geometry. I tried this several ways using brightfunc (with a modified version of Mark Stock's checker.cal) and colorpict, however all my animations look similar to this:
http://www.bilkent.edu.tr/~katja/cube.html
Instead of what you see I would like the texture to "squeeze" (i.e. stripes getting thinner in z-direction) as the object shrinks in height.
If any one could point me to information that helps me solving this problem, that would be most appreciated.
Thank you very much.
Kind Regards,
Katja Doerschner
Since you're already using the 'obj' format for the first export I'd add
UV texture coordinates to the 'obj' and convert to mesh with obj2mesh.
If you keep the UV coordinates the same for different sizes of the cube
you will get the same mapping effect.
Using the basic Radiance texture mapping I think you will have to
scale the texture along the z-axis to get the effect you want. That
requires a new material definition for each frame you export.
Regards,
Thomas
···
On 22 Oct 2008, at 16:05, Katja Doerschner wrote:
I also want to texture-map my cube, and the texture should scale
together with the geometry. I tried this several ways using brightfunc
(with a modified version of Mark Stock's checker.cal) and colorpict,
however all my animations look similar to this:
http://www.bilkent.edu.tr/~katja/cube.html
Thank you very much, Thomas! I will try what you suggested.
Best,
Katja
···
On Oct 22, 2008, at 7:22 PM, Thomas Bleicher wrote:
On 22 Oct 2008, at 16:05, Katja Doerschner wrote:
I also want to texture-map my cube, and the texture should scale
together with the geometry. I tried this several ways using brightfunc
(with a modified version of Mark Stock's checker.cal) and colorpict,
however all my animations look similar to this:
http://www.bilkent.edu.tr/~katja/cube.html
Since you're already using the 'obj' format for the first export I'd add
UV texture coordinates to the 'obj' and convert to mesh with obj2mesh.
If you keep the UV coordinates the same for different sizes of the cube
you will get the same mapping effect.
Using the basic Radiance texture mapping I think you will have to
scale the texture along the z-axis to get the effect you want. That
requires a new material definition for each frame you export.
Regards,
Thomas
_______________________________________________
Radiance-general mailing list
[email protected]
http://www.radiance-online.org/mailman/listinfo/radiance-general