Skip to content

Per-vertex attributes for a BSDF #1552

Answered by njroussel
tangjm24 asked this question in Q&A
Discussion options

You must be logged in to vote

You'll want to combine the following BSDFs:

i.e something like:

mi.load_dict({
    'type': 'ply',
    'filename': 'path/to/ply/with/attributes.ply',
    'bsdf': {
        'type': 'normalmap',
        'normalmap': {
            'type': 'mesh_attribute',
            'name': 'vertex_normalmap'
        }
        'inner_bsdf': {
            'type': 'principled',
            'base_color': {
                'type': 'mesh_attribute',
                'name': 'vertex_albedo'
            },
            'metallic': {
                'type': 'mesh_attribute',
                'name': 'v…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@tangjm24
Comment options

@njroussel
Comment options

Answer selected by tangjm24
@tangjm24
Comment options

@njroussel
Comment options

@tangjm24
Comment options

@njroussel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1551 on April 03, 2025 12:32.