I was trying to get the particle filling to work and couldn’t achieve any results.
Maybe using a prt from realflow is the problem ? Yet the prt itself rendered nicely.
ri.AttributeBegin()
ri.Option( "pointsvolume", "ParticleRadius", 1.0 )
ri.Option( "pointsvolume", "VoxelSpacing", 1.0 )
ri.Option( "pointsvolume", "VoxelSubdivisions", 0 )
ri.Option( "pointsvolume", "Jitter", True )
#the following are used when "Jitter" is 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", 1.0 )
ri.PointsVolume( "particles.prt" )
ri.AttributeEnd()
My sample scene py:
[code]import KrakatoaSR
import random
ri = KrakatoaSR.Ri()
ri.Option( “render”, “DensityPerParticle”, 0.25 )
ri.Option( “render”, “DensityExponent”, -6 )
ri.Option( “render”, “UseEmissionColor”, True )
ri.Option( “render”, “RenderingMethod”, “voxel” )
ri.Option( “render”, “VoxelSize”, 0.05 )
ri.Option( “render”, “VoxelFilterRadius”, 1 )
ri.FrameBegin( 0 )
ri.Format( 1920, 1080, 1.0 )
ri.Display( “render_output2.jpg”, “file”, “rgba” )
ri.Display( “+normal_pass.exr”, “file”, “N” )
ri.Projection( “perspective”, “fov”, 40 )
ri.AttributeBegin()
ri.Transform( 0,0,-1,0, 0,1,0,0, 1,0,0,0, 50,0,0,1 )
ri.LightSource( “directlight”, “mylight”,
“Flux”, (12.5,12.5,12.5),
“DecayExponent”, 0,
“ShadowsEnabled”, True,
“ShadowDensity”, 1.0,
“ShadowMapWidth”, 512,
“UseNearAttenuation”, False,
“UseFarAttenuation”, False,
“NearAttenuationStart”, 0.0,
“NearAttenuationEnd”, 40.0,
“FarAttenuationStart”, 80.0,
“FarAttenuationEnd”, 200.0,
“LightShape”, “round”, ##can also be “square”
“LightAspect”, 1.0,
“InnerRadius”, 43.0,
“OuterRadius”, 80.0
)
ri.AttributeEnd()
ri.Illuminate( “mylight”, True )
move the camera 10 units from the world origin
ri.Transform(
150,0,0,0,
0,100,0,0,
0,0,1,0,
0,0,175,1 )
ri.WorldBegin()
ri.AttributeBegin()
ri.Transform( 1,0,0,0, 0,1,0,0, 0,0,1,0, 0,0,0,1 )
ri.Transform( 1,0,0,0, 0,1,0,0, 0,0,1,0, 1,0,0,1.5 )
ri.Option( “pointsvolume”, “ParticleRadius”, 10.0 )
ri.Option( “pointsvolume”, “VoxelSpacing”, 5.0 )
ri.Option( “pointsvolume”, “VoxelSubdivisions”, 1 )
ri.Option( “pointsvolume”, “Jitter”, True )
#the following are used when “Jitter” is True
ri.Option( “pointsvolume”, “JitteredParticlesPerVoxel”, 50 )
ri.Option( “pointsvolume”, “RandomSeed”, 42 )
ri.Option( “pointsvolume”, “NumDistinctRandomValues”, 1024 )
ri.Option( “pointsvolume”, “WellDistributedJittering”, False )
ri.Option( “pointsvolume”, “ParticleRadius”, 10.0 )
ri.PointsVolume( “circle05.prt” )
ri.AttributeEnd()
ri.WorldEnd()
ri.FrameEnd()
[/code]
This is the part I wanted to use, is there a simple scene .py where I can just insert my own prt file and check it ?
cheers and thanks for the effort !
Tyler