Skip to content

Commit

Permalink
Ensure interval bounds are samples for skinning Autodesk#1331
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienblor committed Oct 25, 2022
1 parent 00dbb30 commit 1a4a4b2
Show file tree
Hide file tree
Showing 7 changed files with 465 additions and 54 deletions.
7 changes: 7 additions & 0 deletions testsuite/test_1331/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Motion blur with skinned instances

Fixes #1331

author: sebastien ortega

PARAMS: {'scene':'test.usda'}
Binary file added testsuite/test_1331/data/skin.usd
Binary file not shown.
132 changes: 132 additions & 0 deletions testsuite/test_1331/data/test.usda
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
#usda 1.0
(
customLayerData = {
timecode[] timeCodeArray = [18]
}
defaultPrim = "persp"
endFrame = 28
startFrame = 18
)

def ArnoldOptions "options"
{
int arnold:AA_samples = 3
int arnold:AA_seed = 18
string arnold:camera = "/persp/perspShape"
float arnold:frame = 18
int arnold:GI_diffuse_depth = 1
int arnold:GI_specular_depth = 1
int arnold:GI_transmission_depth = 8
float arnold:meters_per_unit = 0.01
string arnold:name = "options"
string[] arnold:outputs = ["RGBA RGBA defaultArnoldFilter/gaussian_filter defaultArnoldDriver/driver_exr.RGBA"]
bool arnold:texture_automip = 0
bool arnold:texture_per_file_stats = 1
int arnold:threads = 64
int arnold:xres = 960
int arnold:yres = 540
string primvars:render_layer = "defaultRenderLayer" (
elementSize = 1
interpolation = "constant"
)
}

def "defaultArnoldFilter"
{
def ArnoldGaussianFilter "gaussian_filter"
{
string arnold:name = "defaultArnoldFilter/gaussian_filter"
}
}

def "defaultArnoldDriver"
{
def ArnoldDriverTiff "driver_exr_RGBA"
{
string arnold:color_space = ""
string arnold:filename = "testrender.tif"
string arnold:name = "defaultArnoldDriver/driver_exr.RGBA"
}
}

def Xform "persp"
{
def Camera "perspShape"
{
float2 clippingRange = (0.1, 10000)
float focusDistance = 1
float horizontalAperture = 51.428566
float[] primvars:arnold:aperture_size = [0]
float[] primvars:arnold:fov.timeSamples = {
17.5: [54.432224],
18.5: [54.432224],
}
float2[] primvars:arnold:lens_shift.timeSamples = {
17.5: [(0, 0)],
18.5: [(0, 0)],
}
float2[] primvars:arnold:lens_tilt_angle.timeSamples = {
17.5: [(0, 0)],
18.5: [(0, 0)],
}
vector3f[] primvars:arnold:look_at = [(0, 0, -1)]
float primvars:arnold:motion_end = 0.5
float primvars:arnold:motion_start = -0.5
vector3f[] primvars:arnold:position = [(0, 0, 0)]
float2[] primvars:arnold:screen_window_max = [(1, 1)]
float2[] primvars:arnold:screen_window_min = [(-1, -1)]
vector3f[] primvars:arnold:up = [(0, 1, 0)]
color4f primvars:arnold:uv_remap = (0, 0, 0, 1)
string primvars:dcc_name = "perspShape" (
elementSize = 1
interpolation = "constant"
)
token projection = "perspective"
double shutter:close = 0.95
double shutter:open = -0.95
float verticalAperture = 28.928568
matrix4d xformOp:transform.timeSamples = {
17.5: ( (0.9876883625984192, 0, 0.15643446147441864, 0), (-0.012169312685728073, 0.9969696402549744, 0.07683401554822922, 0), (-0.15596041083335876, -0.07779175788164139, 0.9846952557563782, 0), (-116.20807647705078, 5.309322834014893, 66.05921936035156, 1) ),
18.5: ( (0.9876883625984192, 0, 0.15643446147441864, 0), (-0.012169312685728073, 0.9969696402549744, 0.07683401554822922, 0), (-0.15596041083335876, -0.07779175788164139, 0.9846952557563782, 0), (-116.20807647705078, 5.309322834014893, 66.05921936035156, 1) ),
}
uniform token[] xformOpOrder = ["xformOp:transform"]
}
}

def Xform "directionalLight1"
{
def DistantLight "directionalLightShape1"
{
float inputs:angle = 0
color3f inputs:color = (1, 1, 1)
float inputs:diffuse = 1
float inputs:exposure = 0
float inputs:intensity = 1
float inputs:specular = 1
vector3f[] primvars:arnold:direction = [(0, 0, -1)]
float primvars:arnold:motion_end = 0.5
float primvars:arnold:motion_start = -0.5
bool primvars:arnold:normalize = 1
string primvars:dcc_name = "directionalLightShape1" (
elementSize = 1
interpolation = "constant"
)
}
}

def Xform "debug_mb_v3"
{
def ArnoldUsd "debug_mb_v3Shape"
{
string arnold:filename = "skin.usd"
float arnold:frame = 18
float arnold:motion_end = 1
float arnold:motion_start = -1
float3[] extent = [(-0.02561806, -0.0003810035, -0.0042395806), (0.025619365, 0.061435837, 0.00855701)]
string primvars:dcc_name = "debug_mb_v3Shape" (
elementSize = 1
interpolation = "constant"
)
}
}

Loading

0 comments on commit 1a4a4b2

Please sign in to comment.