Re: Per primitive data from Softimage to mental ray

2012-08-15 Thread Rémi Arquier
Thank you Daniel I know how to pass UserDataBlob from Softimage to MR but my problem arise when the translator split the objects into several boxes. When a polymesh is to big, the translator split them into several smaler objects for memory purpose (this is influenced by the Mesh Splitting

Re: Per primitive data from Softimage to mental ray

2012-08-14 Thread Rémi ARQUIER
While investigating how to pass per primitive data from Softimage to MR, I found in a simple .mi archive those interesting user data associated to leaf box instances, present only when the object is split into several leaf instance boxes : data sphere/Polygon Mesh_TriLinkUD(0) tag 7482834 1600 [

Re: Per primitive data from Softimage to mental ray

2012-08-14 Thread Daniel Brassard
Hi Rémi, Look here for some details on user data, specifically the literal data types: http://www.lamrug.org/resources/userdatatips.html The two tag numbers are the magic numbers mentioned in the ShowEdges examples, they are unique ID numbers used between SI UserDataBlob and MR User Data to

Per primitive data from Softimage to mental ray

2012-08-13 Thread Rémi ARQUIER
Hi all, I would like to compute some per primitive data in Softimage and get it back in a mental ray custom shader. I successfully tried the per object data using UserDataBlob and a custom Operator + mi_query + miQ_INST_DATA (I used the well documented ShowEdges example of the SDK documentation).