GPUOpen-LibrariesAndSDKs / RadeonProRenderSDK

AMD Radeon™ ProRender is a powerful physically-based path traced rendering engine that enables creative professionals to produce stunningly photorealistic images.
https://gpuopen.com/radeon-prorender-suite/
Other
223 stars 47 forks source link

API transition guide not accessible #4

Closed BearishSun closed 4 years ago

BearishSun commented 4 years ago

Release notes reference the following link: https://github.com/Radeon-Pro/RadeonProRenderSDK/wiki/1.34.9-1.35.0-transition-for-RPR-developers

But it cannot be accessed (Nor can the Wiki page be opened at all).

RichardGe commented 4 years ago

This link is an old repo that we have closed now.

The main change was about env light override.

remove of : rprSceneSetEnvironmentOverride rprSceneGetEnvironmentOverride rprEnvironmentLightSetEnvironmentOverride rprEnvironmentLightGetEnvironmentOverride

replaced by :
rprEnvironmentLightSetEnvironmentLightOverride rprEnvironmentLightGetEnvironmentLightOverride

You can override different types of lights :
RPR_ENVIRONMENT_LIGHT_OVERRIDE_REFLECTION RPR_ENVIRONMENT_LIGHT_OVERRIDE_REFRACTION RPR_ENVIRONMENT_LIGHT_OVERRIDE_TRANSPARENCY RPR_ENVIRONMENT_LIGHT_OVERRIDE_BACKGROUND

Example:

rprSceneAttachLight(scene, envLightA);
rprEnvironmentLightSetEnvironmentLightOverride(envLightA, RPR_ENVIRONMENT_LIGHT_OVERRIDE_REFLECTION, envLightB);

Means the scene is going to use envLightA for the lighting. Except for the "reflection" lighting : envLightB will be used.

I think that was the only difference between 34.9 and 35.0. But if you have other questions about this transition, feel free to ask.