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

Build Instructions #22

Closed
Nolram12345 opened this issue May 3, 2024 · 2 comments
Closed

Build Instructions #22

Nolram12345 opened this issue May 3, 2024 · 2 comments

Comments

@Nolram12345
Copy link

Hi! I wanted to check this implementation of Surfel GI out myself, but I couldn't quite figure out how to build the custom render passes against Falcor. Are there any instructions for this?

@W298
Copy link
Owner

W298 commented May 5, 2024

This repository is currently still in development, so I don't recommend building and testing it right now (because there's code that is hard-coded and scene-specific), but I'll explain you through it briefly.

  1. Put SurfelGI/RenderPasses into SurfelGI/Falcor/Source/RenderPasses
  2. Edit Falcor/Source/RenderPasses/CMakeLists.txt
    add_subdirectory(Surfel)
  3. Follow Falcor's build instrcution (Build Mogwai).
  4. Run Mogwai and use below script.
from pathlib import WindowsPath, PosixPath
from falcor import *

def render_graph_DefaultRenderGraph():
    g = RenderGraph('DefaultRenderGraph')
    g.create_pass('SurfelGI', 'SurfelGI', {})
    g.create_pass('SurfelGBuffer', 'SurfelGBuffer', {})
    g.create_pass('SurfelDirectLightingPass', 'SurfelDirectLightingPass', {})
    g.add_edge('SurfelGBuffer.packedHitInfo', 'SurfelGI.packedHitInfo')
    g.add_edge('SurfelGBuffer.packedHitInfo', 'SurfelDirectLightingPass.packedHitInfo')
    g.add_edge('SurfelGI.output', 'SurfelDirectLightingPass.indirectLighting')
    g.mark_output('SurfelDirectLightingPass.output')
    return g

DefaultRenderGraph = render_graph_DefaultRenderGraph()
try: m.addGraph(DefaultRenderGraph)
except NameError: None
  1. Load scene.

Since the cell (used for searching surfels) sizes are hard-coded, you'll probably need to resize the scene down. I'll fix that later.

@Nolram12345
Copy link
Author

Thanks! I'll be patient for now then and revisit this project once it's perhaps a little further along.

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