I tried a simple scene, exported with Krakatoa Python build, and i’m trying to use the multiply particles feature (i can’t use nParticles because what i’ve said in the other post)
I get the scene correctly rendered, but i don’t get the particles multiplied.
here is the code, it’ differs from the exported one because i modified it with some of the code that is post in the first page of this thread:
#==============================================================
# Krakatoa SR Scene File
# Exported from Autodesk Maya 2012
# Exported on 2012/08/07
#==============================================================
# Source Scene Path :
#==============================================================
from datetime import datetime
import KrakatoaSR
KrakatoaSR.SetLoggingLevel( "stats" )
KrakatoaSR.SetDtexLibraryPath( "libprman.dll" )
ri = KrakatoaSR.Ri()
ri.Option( "render", "UseEmissionColor", True )
ri.Option( "render", "UseAbsorptionColor", True )
ri.Option( "render", "AttenuationLookupFilter", "Bicubic" )
ri.Option( "render", "DrawPointFilter", "Bilinear" )
ri.Option( "render", "DensityPerParticle", 0.25 )
ri.Option( "render", "DensityExponent", 1 )
ri.Option( "render", "DepthOfFieldSampleRate", 0.1 )
ri.Option( "render", "RenderingMethod", "particle" )
ri.FrameBegin( 36 )
ri.Format( 640,480,1 )
ri.Display( "../OUTPUT/_0036.jpg", "file", "rgba" )
#==============================================================
# CAMERA [|persp]:
#==============================================================
ri.Projection( "perspective", "fov", 42.18460242 )
ri.Transform(
0.1495353434,-0.3694080606,-0.9171569472,-0,
-4.163336342e-017,0.927586375,-0.3736087753,0,
-0.988756381,-0.05586771653,-0.1387069472,-0,
0.9534742717,-8.272698409,27.74175509,1
)
ri.WorldBegin()
#==============================================================
# SCENE LIGHTS:
#==============================================================
ri.AttributeBegin()
ri.Transform(
1,0,0,0,
0,1,0,0,
0,0,1,0,
0,12.07006976,5.25240148,1
)
ri.LightSource( "pointlight", "pointLightShape1",
"Flux", (12.56636,12.56636,12.56636),
"DecayExponent", 0,
"ShadowsEnabled", False )
ri.AttributeEnd()
ri.Illuminate( "pointLightShape1", True )
#==============================================================
# PARTICLE OBJECT [particleShape1] AS PRT:
#==============================================================
ri.AttributeBegin()
ri.ChannelOperation( "Set", "Color", (0.5,0.5,0.5) )
ri.ChannelOperation( "Set", "Emission", (0,0,0) )
ri.Transform(
1,0,0,0,
0,1,0,0,
0,0,1,0,
0,0,0,1
)
ri.Option( "pointsvolume", "VoxelSpacing", 0.05 ) #tweak this
ri.Option( "pointsvolume", "VoxelSubdivisions", 0 )
ri.Option( "pointsvolume", "Jitter", True )
ri.Option( "pointsvolume", "JitteredParticlesPerVoxel", 1 )
ri.Option( "pointsvolume", "RandomSeed", 42 )
ri.Option( "pointsvolume", "NumDistinctRandomValues", 1024 )
ri.Option( "pointsvolume", "WellDistributedJittering", False )
ri.Option( "pointsvolume", "ParticleRadius", 0.5 ) #tweak this
ri.PointsFile ( "../PRT/particleShape1_0036.prt")
ri.AttributeEnd()
#==============================================================
t0 = datetime.now()
ri.WorldEnd()
t1 = datetime.now()
print (t1-t0)
ri.FrameEnd()
And here is the rendered result of this code:

Some ideas?
Cheers.