Skip to content

Curves with emission are rendered in black #60

@jkrumbiegel

Description

@jkrumbiegel

I'm using RadeonProRender.jl in Julia, and can't get emission working on a curve object. I'm not sure if it's a bug in the Julia implementation, a limitation of the SDK, or something else. I can't post a minimal example because this is all WIP Julia code, but here's an image showing the result:

grafik

This is a line segment primitive which the RPRMakie package transforms into RPR Curves, roughly like this:

curve = RPR.Curve(context, points, indices, radius, Vec2f.(0.0, LinRange(0, 1, nsegments)),
                      fill(1, nsegments))
    material = RPR.UberMaterial(matsys)
material.emission_color = to_color(:red) # should create red light?
material.emission_weight = 1000 # I tried to make it really strong as well, no effect visible
# I tried to set the double-sided mode to true or false in case the curves had inward normals for some reason
# material.emission_mode = false
set!(curve, material.node)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions