ask for help. float array transfer between maya api and mental ray geo shader

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  08 August 2013
ask for help. float array transfer between maya api and mental ray geo shader

Hi, I am a newbie user of mr and maya. right now, i am writing a custom hair geo shader using lots of instances of placeholder of hair geometry. I wish to get the position, transform matrix and radius and etc from maya node wirten using api. but it seems that array data , no matter whatever methods, such kvectorarray, float with setArray true, the float or matrix array can not be filled in the mr geo shader, although it has declared the responding array float/matrix interfaces in mi file.

Later I found the mentalrayUserdata node in maya 2014. which allow arbitrary data structure to be transfered to mr shader, but it has some limitiations. the data should be encoding in hex ascii code and decoded in mr shader. And the single string cannot be bigger than 1024 byte, which means the max size of data block is 1024byte, same as 256 floats or 128 doubles. I also notice that mr 3.11 has map data shader right now. But i did not found related data node in maya. And I am also confused the use of mib_data_scalar_array and mib_data_vector_array and other shading nodes.

I am wondering how to effeciently transfer heavy data to mr from maya at the same time it can take advantage of the push-pull dirty flag node update mechnism in maya so as to produce different data set per frame. Any help and advices are appreciated. thanks a lot
  08 August 2013
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 11:16 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.