Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curves with emission are rendered in black #60

Open
jkrumbiegel opened this issue Mar 12, 2023 · 3 comments
Open

Curves with emission are rendered in black #60

jkrumbiegel opened this issue Mar 12, 2023 · 3 comments

Comments

@jkrumbiegel
Copy link

jkrumbiegel commented Mar 12, 2023

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)
@ARozghon
Copy link

Thank you for your request, a ticket for devs has already been created
could you share the scene to do the correct issue reproduce?

@jkrumbiegel
Copy link
Author

could you share the scene to do the correct issue reproduce?

Not really, as the Julia code was moving fast and it might not work anymore (plus your devs probably don't want to deal with Julia). But as far as I could see, any curves object with emission didn't work, so one should be able to construct a minimal example using that info :)

@ARozghon
Copy link

thank you, for your response. will check it issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants