Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Real-time Rendering Using A Sparse Non-parametric BRDF Model
Linköping University, Department of Science and Technology.
2024 (English)Independent thesis Advanced level (degree of Master (One Year)), 20 credits / 30 HE creditsStudent thesisAlternative title
Realtidsrendering med icke-parametrisk datadriven BRDF-modell (Swedish)
Abstract [en]

This thesis explores and implements a real time rendering application of real sparsely represented non-parametric Bidirectional Reflectance Distribution Functions (BRDFs). The concept of data driven BRDFs has been present since the early 2000s, and while their use yields realistic results, large amounts of data is required for describing and using such BRDFs. This makes it impossible to load multiple BRDFs in a scene, as the GPU memory for such large data sets can quickly become insufficient. The sparse representation of BRDFs introduces a solution to the storage problem, but has yet not been implemented in a GPU context, let alone in real time. Thus, a real time renderer running on the GPU, using path tracing is set up in NVIDIA OptiX, and support for sparsely represented data driven BRDFs is the main focus of the program. For this purpose, the system makes use of both sparse and dense representations of data driven BRDFs from the MERL, RGL-EPFL and DTU BRDF data bases. The thesis applies the reconstruction of sparse BRDFs in NVIDIA OptiX by storing sparse coefficients and dictionaries used in ensamble learning for BRDFs in textures to make them readily available on the GPU. The reconstruction of the sparse BRDFs is performed on the GPU, as part of solving the rendering equation in the real time path tracer. The implementation is usable in real time, however the results may vary depending on which BRDF the user wishes to reproduce. Other things can also impact the image quality and performance of the renderer, such as the selection of compression method for HDR data in the sparse BRDFs, as well as the number of samples used with the Monte Carlo estimator. The SNR-values range from just above 20 dB to 39 dB for all tested BRDFs, with a frame rate of around 4-6% of the equivalent rendering of a densely represented BRDF. This compression is satisfactory, but the frame rate might not be suitable for all applications such as video games where the need for high frame rate is large, but for other implementations like 3D modeling or product design the implementation could potentially be viable. However, the memory footprint of the sparse representation is very impressive, theoretically allowing for a total of 1017674 BRDFs to be loaded in to a scene at once (provided that they all use the same dictionaries for reconstruction). For comparison, only 768 dense BRDFs could be loaded at once when faced with the same hardware limitations as in this thesis. This makes the sparse representation a viable choice for users requiring multitudes of BRDFs in a scene, especially if weaker hardware is used. Future research directions include the implementation of different HDR transforms, importance sampling and environment maps, as well as support for multiple BRDFs being rendered at the same time and support for anisotropic BRDFs. The framework utilized for the project is only usable on machines with NVIDIA hardware, as such another direction for future work would be to implement the system in a framework which is usable by other GPUs.

Abstract [sv]

Denna uppsats har som syfte att utforska och implementera en applikation för realtidsrendering av glest beskrivna icke-parametriska Bidirectional Reflectance Distribution Functions (BRDF:er). Uppmätta datadrivna BRDF:er har funnits sedan det tidiga 00-talet och ger upphov till mycket realistiska resultat vid återgivning. Dock kräver dessa datadrivna BRDF:er en stor mängd data, för att kunna återges på korrekt vis. Detta gör det omöjligt att använda grafikkort för att rendera flera BRDF:er samtidigt, eftersom minnesbanken grafikkortet utnyttjar snabbt kan bli otillräcklig. Den glesa beskrivningen av BRDF:er ger en lösning på minnesproblemet, men har ännu inte implementerats i en kontext där GPU:n kan användas för rendering, än mindre i en realtidsmiljö. Därför implementeras en realtidsrenderingsapplikation som körs på grafikkortet och använder sig av path tracing i ramverket NVIDIA OptiX. Stöd för rendering av glest beskrivna icke-parametriska BRDF:er är huvudmålet för applikationen. Applikationen har stöd för både tätt beskrivna BRDF:er, samt för glest beksrivna BRDF:er från BRDF-biblioteken från MERL, RGL-EPFL och DTU. Arbetet tillämpar rekonstruktion av glest beskrivna BRDF:er i NVIDIA OptiX genom att spara så kallade glesa koefficienter och dataordlistor (ENG: dictionaries) i texturer för att göra de tillgängliga på grafikkortet. Rekonstruktionen av de glesa BRDF:erna genomförs på grafikkortet, som en del av beräkningen av renderingsekvationen i realtid. Implementationen går att använda i realtid, men resultaten kan variera beroende på vilken BRDF användaren vill rendera. Andra saker kan också påverka bildkvaliteten samt prestandan hos programmet, som vilken kompressionsmetod som används för HDR-data, eller hur många sampels som används vid Monte Carlo-skattningen av renderingsintegralen. SNR-värden för rekonstruerade glest representerade BRDF:er sträcker sig mellan strax över 20 dB till 39 dB för alla testade BRDF:er, med en bildhastighet på 4-6% av motsvarande tätt representerade BRDF. Kompressionen ses därför som tillfredsställande, men bildhastigheten kanske inte är lämplig för alla tillämpningar, till exempel datorspel där en hög bildhastighet är av stor vikt. Men för andra tillämpningar som 3D-modellering eller produktdesign skulle denna implementation kunna vara passande. Minneskravet för att använda glest beskrivna BRDF:er är mycket imponerande, och tillåter teoretiskt sett att 1017674 BRDF:er används samtidigt (baserat på antagandet att de alla använder samma dataordlistor för rekonstruktionen). För jämförelse skulle endast 768 tätt beskrivna BRDF:er kunna användas samtidigt med motsvarande hårdvarubegränsningar som i denna uppsats. Detta gör att den glest beskrivna BRDF-modellen är ett bra val när användare kräver att en stor mängd BRDF:er används samtidigt i en scen, framförallt om svagare hårdvara än den beskriven i uppsatsen används. Framtida utökningar av projektet inkluderar implementeringen av olika HDR-transformer, importance sampling och användandet av environment maps, såväl som att flera BRDF:er kan användas samtidigt i scenen, och stöd för anisotropiska BRDF:er. Ramverket som används i projektet kan endast köras på datorer som tillhandahåller NVIDIA-grafikkort, och därför är en annan lämplig riktning för framtida utveckling av arbetet att implementera systemet i ett annat ramverk som kan användas av fler grafikkort.

Place, publisher, year, edition, pages
2024.
Keywords [en]
BRDF, sparse dictionary learning, bidirectional reflectance distribution function, nvidia optix, computer graphics, realtime rendering
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:liu:diva-206834ISRN: LiU-ITN-TEK-A--24/040--SEOAI: oai:DiVA.org:liu-206834DiVA, id: diva2:1891696
Subject / course
Media Technology
Supervisors
Examiners
Available from: 2024-08-23 Created: 2024-08-23 Last updated: 2025-02-18Bibliographically approved

Open Access in DiVA

fulltext(13095 kB)960 downloads
File information
File name FULLTEXT01.pdfFile size 13095 kBChecksum SHA-512
9154c5204bd0d4e7537491782be7433126a83a736fcca54c6a1ffac22cd932ab8e0efa0295c6e3e1417cc8df1d94ef049ec8ddd9fdc3f7593a6a09e39237e696
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Björnfoot, Johan
By organisation
Department of Science and Technology
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 962 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 666 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf