xgen3DelightProcedural – How to Use XGen with 3Delight

################ Xgen now works out of the box #######################

#################################################

Posted over from the 3delight Forum – Some nice work done by JediMaster
The following is a copy and paste from JediMasters post
##################################################################

Spent 1 day to figure out and ported the official usable xgenRenderManProcedural to xgen3DelightProcedural.

First of all, please take a look at the RIB fragment, everything is inside.

Code:

AttributeBegin
Attribute "user" "string irCurrentCam" ["false, 0, 0, 0"]
Attribute "user" "string irCurrentCamFOV" ["54.4321, 54.4321"]
Attribute "user" "string irCurrentCamXform" ["1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1"]
Attribute "user" "string irCurrentCamRatio" ["1"]
Attribute "user" "string irRenderCam" ["false, 0, 0, 0"]
Attribute "user" "string irRenderCamFOV" ["54.4321, 54.4321"]
Attribute "user" "string irRenderCamXform" ["1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1"]
Attribute "user" "string irRenderCamRatio" ["1"]
ProcDynamicLoad [ "xgen3DelightProcedural.dll" "-file H:/zhou/xgen/collection8.xgen -geom H:/zhou/xgen/MB.abc -palette collection8 -description description8 -patch pPlane1 -frame 23 -motionSamplesLookup -0.4 0 0.4 -motionSamplesPlacement -0.4 0 0.4 -fps 24"] 1
AttributeEnd

What you need is

DSO Procedural
Special Alembic Cache File
.xgen File

“.xgen File” is easy to be understood, that’s the description file used by XGen to generate primitives.

Why we need dozens of “Attributes “user” ? That’s used for camera culling by procedural, but actually it’s a little difficult because we must access the render camera to get the FOV and inverted transformation, so if you don’t want to this I could modify the code and remove the code about this. Ideally you could fill the default parameters as me.

But how about the “Special Alembic Cache File” ? Actually that’s about the motion blur. If you export the patches from the menu “Export Patches for Batch Render”, Maya calls AbcExport to generate a special Alembic file but without motion samples, so for the accuracy motion blur e.g. generate the primitives on different geometry motion samples, you should generate your Alembic file.

Let’s look at the RIB, you have to fill “-frame 23 -motionSamplesLookup -0.2 0 0.2 -motionSamplesPlacement -0.2 0 0.2 -fps 24” for the frame 23 with 3 motions samples, and the time samples are (-0.2 0 0.2). Don’t forget the “-fps” parameter, you must supply this to the procedural, or else it generates wrong result, and this is not written in stupid Autodesk document.

DSO Procedural for Windows (compiled with MSVC11 for Maya 2015 x64)
Download Here
If you’re successful or any question please feel free to post reply, thanks !
###############################################################

1 comment for “xgen3DelightProcedural – How to Use XGen with 3Delight

  1. Michaelangelo Bautista
    June 3, 2015 at 8:38 am

    I still can;t get it to work T_T

Leave a Reply

Your email address will not be published. Required fields are marked *