  | | | Reference object for 3D texture | Reference object for 3D texture 2004-02-18 - By Jim Rothrock
Back I want to put a 3D procedural texture on a deforming object. The texture needs to remain locked to the object as the object deforms. I have mental ray shaders for doing the rendering, but I need to know how to lock the object -space vertex coordinates of the original "reference" object into the texture coordinates associated with each vertex of the deforming object. In Maya, I would simply select the object, then click on the "create reference object" menu entry. The vertex coordinates of the reference object would then be stored in one of the deforming object's texture spaces. In RenderMan, this technique is sometimes referred to as "PRef," because it can be implemented by providing a PRef (P Reference) varying parameter that is interpolated along with the P parameter. How can I accomplish a similar effect in XSI? -- Jim Rothrock | jimr@(protected) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1276" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>I want to put a 3D procedural texture on a deforming object. The texture needs to remain locked to the object as the object deforms. I have mental ray shaders for doing the rendering, but I need to know how to lock the object-space vertex coordinates of the original "reference" object into the texture coordinates associated with each vertex of the deforming object. In Maya, I would simply select the object, then click on the "create reference object" menu entry. The vertex coordinates of the reference object would then be stored in one of the deforming object's texture spaces. In RenderMan, this technique is sometimes referred to as "PRef," because it can be implemented by providing a PRef (P Reference) varying parameter that is interpolated along with the P parameter. How can I accomplish a similar effect in XSI?</FONT></DIV> <DIV><FONT face=Arial size=2>--<BR>Jim Rothrock | <A href="mailto:jimr@(protected)">jimr@(protected)</A></FONT></DIV></BODY> </HTML>
|
|
 |