bazuka
i dont know did any1 asked this before, but here goes, :)

can u add support so i can render particles with 3delight???

i tried to attach outputPP on particle PP, and when i try to render 3dl maya crashes!

can u check this out?

cheers
pshipkov
Yes, it have been asked numerous times already.
Thing is i have no control over that. It depends on the 3delight translator for Maya.
If you can talk to the 3delight guys and see if they can fix it.

Reply 0 0
eddgarpv
hey b, can you upload or send me a scene?
Reply 0 0
bazuka
sure mate, let me upload it and ill send u

cheers

check PM
Reply 0 0
bazuka
pshipkov my friend,

is there a way to "register" ur particles as maya particles? so when u hit render 3dl translator could detect particles as maya native particles?

dont know how stupid this sounds but thats only what i could came up with atm

cheers
Reply 0 0
pshipkov
i will show  you a scene how to do that easily.

Reply 0 0
bazuka
i made maya particles and attach the position of soup particles to maya particles but like i said, when i hit render from 3dl maya crashes....

ill try ur scene when u send me ;)

cheers
Reply 0 0
pshipkov
Check the attached scene.
Notice how the max number of particles is dynamically limited to the number of scattered points.
Check the particle expressions to see how to read the SOuP data and apply it to the particles.

Play the animation.

EDIT, well right now for some reason i cannot attach the file.
Dump the code below into some_name.ma file and load it in Maya.

//Maya ASCII 2012 scene
//Name: soup_to_particles.ma
//Last modified: Mon, Oct 24, 2011 10:30:58 AM
//Codeset: UTF-8
requires maya "2012";
requires "SOuP" "1.28 (Nov 7 2011)";
requires "stereoCamera" "10.0";
currentUnit -l centimeter -a degree -t film;
fileInfo "application" "maya";
fileInfo "product" "Maya 2012";
fileInfo "version" "2012 x64";
fileInfo "cutIdentifier" "201103110020-796618";
fileInfo "osv" "Linux 2.6.18-238.el5 #1 SMP Thu Jan 13 15:51:15 EST 2011 x86_64";
createNode transform -s -n "persp";
setAttr ".v" no;
setAttr ".t" -type "double3" 3.2032197146032457 1.2048127388020102 2.7454913446134808 ;
setAttr ".r" -type "double3" -15.938352729533705 49.400000000002642 0 ;
createNode camera -s -n "perspShape" -p "persp";
setAttr -k off ".v" no;
setAttr ".fl" 34.999999999999993;
setAttr ".ncp" 0.025;
setAttr ".fcp" 100000;
setAttr ".coi" 4.3874722789946485;
setAttr ".imn" -type "string" "persp";
setAttr ".den" -type "string" "persp_depth";
setAttr ".man" -type "string" "persp_mask";
setAttr ".hc" -type "string" "viewSet -p %camera";
createNode transform -s -n "top";
setAttr ".v" no;
setAttr ".t" -type "double3" 0 100.1 0 ;
setAttr ".r" -type "double3" -89.999999999999986 0 0 ;
createNode camera -s -n "topShape" -p "top";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".ncp" 0.025;
setAttr ".fcp" 100000;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "top";
setAttr ".den" -type "string" "top_depth";
setAttr ".man" -type "string" "top_mask";
setAttr ".hc" -type "string" "viewSet -t %camera";
setAttr ".o" yes;
createNode transform -s -n "front";
setAttr ".v" no;
setAttr ".t" -type "double3" 0 0 100.1 ;
createNode camera -s -n "frontShape" -p "front";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".ncp" 0.025;
setAttr ".fcp" 100000;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "front";
setAttr ".den" -type "string" "front_depth";
setAttr ".man" -type "string" "front_mask";
setAttr ".hc" -type "string" "viewSet -f %camera";
setAttr ".o" yes;
createNode transform -s -n "side";
setAttr ".v" no;
setAttr ".t" -type "double3" 100.1 0 0 ;
setAttr ".r" -type "double3" 0 89.999999999999986 0 ;
createNode camera -s -n "sideShape" -p "side";
setAttr -k off ".v" no;
setAttr ".rnd" no;
setAttr ".ncp" 0.025;
setAttr ".fcp" 100000;
setAttr ".coi" 100.1;
setAttr ".ow" 30;
setAttr ".imn" -type "string" "side";
setAttr ".den" -type "string" "side_depth";
setAttr ".man" -type "string" "side_mask";
setAttr ".hc" -type "string" "viewSet -s %camera";
setAttr ".o" yes;
createNode transform -n "pSphere1";
createNode mesh -n "pSphereShape1" -p "pSphere1";
setAttr -k off ".v";
setAttr ".vir" yes;
setAttr ".vif" yes;
setAttr ".uvst[0].uvsn" -type "string" "map1";
setAttr ".cuvs" -type "string" "map1";
setAttr ".dcc" -type "string" "Ambient+Diffuse";
setAttr ".covm[0]" 0 1 1;
setAttr ".cdvm[0]" 0 1 1;
createNode transform -n "transform1";
createNode scatter -n "scatter1" -p "transform1";
setAttr -k off ".v";
createNode transform -n "boundingObject1";
createNode boundingObject -n "boundingObjectShape1" -p "boundingObject1";
setAttr -k off ".v";
setAttr ".tp" 3;
setAttr ".dpcbv" no;
setAttr -s 2 ".pgtf[0:1]" 0 1 1 1 0 1;
setAttr -s 2 ".wgtf[0:1]" 0 1 1 1 0 1;
setAttr ".clrf[0].clrfcv" -type "float3" 1 1 1 ;
setAttr ".af[0]" 0 1 1;
setAttr -s 2 ".rf[0:1]" 0 1 1 1 0 1;
setAttr -s 2 ".nf[0:1]" 0 1 1 1 0 1;
createNode transform -n "displayComponents1";
createNode displayComponents -n "displayComponentsShape1" -p "displayComponents1";
setAttr ".ihi" 0;
setAttr -k off ".v";
setAttr ".cmps" no;
setAttr ".nmls" yes;
createNode pointEmitter -n "emitter1";
setAttr ".rat" 999;
setAttr ".sro" no;
setAttr -l on ".urpp";
createNode transform -n "nParticle1";
createNode nParticle -n "nParticleShape1" -p "nParticle1";
addAttr -ci true -sn "lifespanPP" -ln "lifespanPP" -dt "doubleArray";
addAttr -ci true -h true -sn "lifespanPP0" -ln "lifespanPP0" -dt "doubleArray";
addAttr -ci true -sn "lifespan" -ln "lifespan" -at "double";
addAttr -ci true -sn "rgbPP" -ln "rgbPP" -dt "vectorArray";
addAttr -ci true -h true -sn "rgbPP0" -ln "rgbPP0" -dt "vectorArray";
addAttr -ci true -sn "opacityPP" -ln "opacityPP" -dt "doubleArray";
addAttr -ci true -h true -sn "opacityPP0" -ln "opacityPP0" -dt "doubleArray";
addAttr -is true -ci true -sn "colorAccum" -ln "colorAccum" -min 0 -max 1 -at "bool";
addAttr -is true -ci true -sn "useLighting" -ln "useLighting" -min 0 -max 1 -at "bool";
addAttr -is true -ci true -sn "lineWidth" -ln "lineWidth" -dv 1 -min 1 -max 20 -at "long";
addAttr -is true -ci true -sn "tailFade" -ln "tailFade" -min -1 -max 1 -at "float";
addAttr -is true -ci true -sn "tailSize" -ln "tailSize" -dv 1 -min -100 -max 100
-at "float";
addAttr -is true -ci true -sn "normalDir" -ln "normalDir" -dv 2 -min 1 -max 3 -at "long";
setAttr -k off ".v";
setAttr ".gf" -type "Int32Array" 0 ;
setAttr ".pos0" -type "vectorArray" 0 ;
setAttr ".vel0" -type "vectorArray" 0 ;
setAttr ".acc0" -type "vectorArray" 0 ;
setAttr ".mas0" -type "doubleArray" 0 ;
setAttr ".id0" -type "doubleArray" 0 ;
setAttr ".bt0" -type "doubleArray" 0 ;
setAttr ".ag0" -type "doubleArray" 0 ;
setAttr -s 2 ".xo";
setAttr ".irbx" -type "string" "";
setAttr ".irax" -type "string" "float $p[], $v[];\nint $id = (int).I[0];\nif($id == 0)\n{\n\t$p = `getAttr scatter1.outPositionPP`;\n\t$v = `getAttr attributeTransfer1.outNormalPP`;\n}\n.O[0] = <<$p[$id*3], $p[$id*3+1], $p[$id*3+2]>>;\n.O[1] = <<$v[$id*3], $v[$id*3+1], $v[$id*3+2]>>;";
setAttr ".icx" -type "string" "float $p[], $v[];\nint $id = (int).I[0];\nif($id == 0)\n{\n\t$p = `getAttr scatter1.outPositionPP`;\n\t$v = `getAttr attributeTransfer1.outNormalPP`;\n}\n.O[0] = <<$p[$id*3], $p[$id*3+1], $p[$id*3+2]>>;\n.O[1] = <<$v[$id*3], $v[$id*3+1], $v[$id*3+2]>>;";
setAttr ".dw" 0;
setAttr ".con" 0;
setAttr ".cts" 1;
setAttr ".prt" 7;
setAttr ".fron" 0;
setAttr ".cofl" 1;
setAttr ".scld" no;
setAttr -s 2 ".fsc[0:1]" 0 1 1 1 0 1;
setAttr -s 2 ".pfdo[0:1]" 0 1 1 1 0 1;
setAttr ".drg" 0;
setAttr ".esph" yes;
setAttr ".vssc[0]" 0 1 1;
setAttr ".stns[0]" 0 1 1;
setAttr ".thr" 0.6;
setAttr ".ra" 0.05000000074505806;
setAttr ".rdc[0]" 0 1 1;
setAttr ".mssc[0]" 0 1 1;
setAttr ".pfsc[0]" 0 1 1;
setAttr ".frsc[0]" 0 1 1;
setAttr ".stsc[0]" 0 1 1;
setAttr ".clsc[0]" 0 1 1;
setAttr ".bosc[0]" 0 1 1;
setAttr ".op" 0.3;
setAttr ".opc[0]" 0 1 1;
setAttr ".oci" 1;
setAttr ".cl[0].clp" 0;
setAttr ".cl[0].clc" -type "float3" 0.5 0.69999999 1 ;
setAttr ".cl[0].cli" 1;
setAttr ".coi" 1;
setAttr ".inca[0].incap" 0;
setAttr ".inca[0].incac" -type "float3" 0 0 0 ;
setAttr ".inca[0].incai" 1;
setAttr ".lifespanPP0" -type "doubleArray" 0 ;
setAttr -k on ".lifespan" 1;
setAttr ".rgbPP0" -type "vectorArray" 0 ;
setAttr ".opacityPP0" -type "doubleArray" 0 ;
createNode nucleus -n "nucleus1";
createNode lightLinker -s -n "lightLinker1";
setAttr -s 3 ".lnk";
setAttr -s 3 ".slnk";
createNode displayLayerManager -n "layerManager";
createNode displayLayer -n "defaultLayer";
createNode renderLayerManager -n "renderLayerManager";
createNode renderLayer -n "defaultRenderLayer";
setAttr ".g" yes;
createNode polySphere -n "polySphere1";
createNode attributeTransfer -n "attributeTransfer1";
setAttr ".mi" 1;
setAttr ".nml" yes;
setAttr ".b" no;
setAttr -s 2 ".k[0:1]" 0 1 2 1 0 1;
createNode point -n "point1";
setAttr ".en" yes;
setAttr ".sn" -type "string" "// POINT NORMAL (PARTICLE VELOCITY)\n$X=1;\n$Y=0;\n$Z=0;";
createNode pointCloudToCurve -n "pointCloudToCurve1";
createNode script -n "sceneConfigurationScriptNode";
setAttr ".b" -type "string" "playbackOptions -min 1 -max 24 -ast 1 -aet 48 ";
setAttr ".st" 6;
createNode shadingEngine -n "nParticleWaterSE";
setAttr ".ihi" 0;
setAttr ".ro" yes;
createNode materialInfo -n "materialInfo1";
createNode particleSamplerInfo -n "particleSamplerInfo1";
createNode blinn -n "npWaterBlinn";
setAttr ".rfi" 1.2999999523162842;
setAttr ".rfc" yes;
setAttr ".dc" 0.5;
setAttr ".sc" -type "float3" 1 1 1 ;
setAttr ".rfl" 1;
setAttr ".sro" 0.20000000298023224;
createNode particleCloud -n "npWaterVolume";
createNode expression -n "expression1";
setAttr -k on ".nds";
setAttr ".ixp" -type "string" ".O[0]=size(`getAttr scatter1.outPositionPP`)/3;";
select -ne :time1;
setAttr ".o" 1;
setAttr ".unw" 1;
select -ne :renderPartition;
setAttr -s 3 ".st";
select -ne :initialShadingGroup;
setAttr ".ro" yes;
select -ne :initialParticleSE;
setAttr ".ro" yes;
select -ne :defaultShaderList1;
setAttr -s 4 ".s";
select -ne :postProcessList1;
setAttr -s 2 ".p";
select -ne :defaultRenderingList1;
select -ne :renderGlobalsList1;
select -ne :hardwareRenderGlobals;
setAttr ".ctrs" 256;
setAttr ".btrs" 512;
select -ne :defaultHardwareRenderGlobals;
setAttr ".fn" -type "string" "im";
setAttr ".res" -type "string" "ntsc_4d 646 485 1.333";
connectAttr "polySphere1.out" "pSphereShape1.i";
connectAttr "pSphereShape1.w" "scatter1.ig";
connectAttr "boundingObject1.m" "boundingObjectShape1.ipm";
connectAttr "pSphereShape1.w" "boundingObjectShape1.inm";
connectAttr "attributeTransfer1.og" "displayComponentsShape1.ig";
connectAttr "attributeTransfer1.onpp" "displayComponentsShape1.indpp";
connectAttr ":time1.o" "emitter1.ct";
connectAttr "nParticleShape1.ifl" "emitter1.full[0]";
connectAttr "nParticleShape1.tss" "emitter1.dt[0]";
connectAttr "nParticleShape1.inh" "emitter1.inh[0]";
connectAttr "nParticleShape1.stt" "emitter1.stt[0]";
connectAttr "nParticleShape1.sd[0]" "emitter1.sd[0]";
connectAttr ":time1.o" "nParticleShape1.cti";
connectAttr "nucleus1.noao[0]" "nParticleShape1.nxst";
connectAttr "nucleus1.stf" "nParticleShape1.stf";
connectAttr "emitter1.ot[0]" "nParticleShape1.npt[0]";
connectAttr "nParticleShape1.incr" "nParticleShape1.rgbPP";
connectAttr "nParticleShape1.inor" "nParticleShape1.opacityPP";
connectAttr "expression1.out[0]" "nParticleShape1.mxc";
connectAttr "nParticleShape1.xo[0]" "nParticleShape1.pos";
connectAttr "nParticleShape1.id" "nParticleShape1.xi[0]";
connectAttr "nParticleShape1.xo[1]" "nParticleShape1.vel";
connectAttr ":time1.o" "nucleus1.cti";
connectAttr "nParticleShape1.cust" "nucleus1.niao[0]";
connectAttr "nParticleShape1.stst" "nucleus1.nias[0]";
relationship "link" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
relationship "link" ":lightLinker1" "nParticleWaterSE.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialShadingGroup.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" ":initialParticleSE.message" ":defaultLightSet.message";
relationship "shadowLink" ":lightLinker1" "nParticleWaterSE.message" ":defaultLightSet.message";
connectAttr "layerManager.dli[0]" "defaultLayer.id";
connectAttr "renderLayerManager.rlmi[0]" "defaultRenderLayer.rlid";
connectAttr "scatter1.oppp" "attributeTransfer1.ig";
connectAttr "boundingObjectShape1.od" "attributeTransfer1.bos[1]";
connectAttr "boundingObjectShape1.opm" "attributeTransfer1.bos[1].bpm";
connectAttr "point1.onpp" "attributeTransfer1.inpp";
connectAttr "pointCloudToCurve1.oc" "point1.ig";
connectAttr "scatter1.oppp" "pointCloudToCurve1.ia";
connectAttr "npWaterBlinn.oc" "nParticleWaterSE.ss";
connectAttr "npWaterVolume.oi" "nParticleWaterSE.vs";
connectAttr "nParticleShape1.iog" "nParticleWaterSE.dsm" -na;
connectAttr "nParticleWaterSE.msg" "materialInfo1.sg";
connectAttr "npWaterBlinn.msg" "materialInfo1.m";
connectAttr "particleSamplerInfo1.msg" "materialInfo1.t" -na;
connectAttr "particleSamplerInfo1.oc" "npWaterBlinn.c";
connectAttr "particleSamplerInfo1.ot" "npWaterBlinn.it";
connectAttr "particleSamplerInfo1.oi" "npWaterBlinn.ic";
connectAttr "particleSamplerInfo1.ot" "npWaterVolume.t";
connectAttr "particleSamplerInfo1.oc" "npWaterVolume.c";
connectAttr "particleSamplerInfo1.oi" "npWaterVolume.i";
connectAttr ":time1.o" "expression1.tim";
connectAttr "nParticleWaterSE.pa" ":renderPartition.st" -na;
connectAttr "pSphereShape1.iog" ":initialShadingGroup.dsm" -na;
connectAttr "npWaterBlinn.msg" ":defaultShaderList1.s" -na;
connectAttr "npWaterVolume.msg" ":defaultShaderList1.s" -na;
connectAttr "defaultRenderLayer.msg" ":defaultRenderingList1.r" -na;
// End of soup_to_particles.ma


Reply 0 0
eddgarpv
This one renders fine.

edit: from here http://www.multiupload.com/PGFB1JWORB
Reply 0 0
Reply