Since we are going to calculate the gradients only wrt to light we have it as an argument to the function. We should define a few convenience functions. Origin, direction = get_primary_rays(cam) For a more detailed understanding of the rendering process look into Introduction to rendering using RayTracer.jl. They can be downloaded using the following commands: wget Now we shall load the scene using load_obj function. Reduce the screen_size if the optimization is taking a bit long screen_size = (w = 300, h = 300) using RayTracer, Images, Zygote, Flux, Statistics Configuring the Scene Here, we shall try to reconstruct a target image by optimizing the parameters of the light source (using gradients). In this tutorial we shall explore the inverse lighting problem. Edit on GitHub Inverse Lighting Tutorial
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |