Difference between revisions of "BakeryAPI"

From Bakery GPU Lightmapper: Wiki
Jump to navigation Jump to search
(Created page with "= Running the demo = API source, lightmapper binaries and the demo content are in separate repositories, so they can be updated separately. * Download API headers and the de...")
 
Line 5: Line 5:
 
* Download API headers and the demo source from [https://github.com/guycalledfrank/bakery-api github].
 
* Download API headers and the demo source from [https://github.com/guycalledfrank/bakery-api github].
 
* Build the solution. Original files are created for Visual Studio 2015, but newer versions should work as well. Alternatively, create your own solution in any IDE on Windows. It does not require any dependencies or static libraries, so it should be as simple as adding all .h/.cpp files into the project.
 
* Build the solution. Original files are created for Visual Studio 2015, but newer versions should work as well. Alternatively, create your own solution in any IDE on Windows. It does not require any dependencies or static libraries, so it should be as simple as adding all .h/.cpp files into the project.
* Download Bakery compiled binaries from [https://github.com/guycalledfrank/bakery-compiled github].
+
* Copy all files from Assets/Editor/x64/Bakery to a "bin" folder placed next to BakeryAPI.exe.
* Extract the binaries into the "bin" folder that should be placed next to BakeryAPI.exe.
+
* If you didn't previously the Unity version, also download latest binaries from [https://github.com/guycalledfrank/bakery-compiled github] and overwrite old files in the bin folder.
 
* Download demo models/textures from [https://github.com/guycalledfrank/bakery-api-demo-media github].
 
* Download demo models/textures from [https://github.com/guycalledfrank/bakery-api-demo-media github].
 
* Extract the "model" folder next to BakeryAPI.exe.
 
* Extract the "model" folder next to BakeryAPI.exe.

Revision as of 20:07, 22 February 2022

Running the demo

API source, lightmapper binaries and the demo content are in separate repositories, so they can be updated separately.

  • Download API headers and the demo source from github.
  • Build the solution. Original files are created for Visual Studio 2015, but newer versions should work as well. Alternatively, create your own solution in any IDE on Windows. It does not require any dependencies or static libraries, so it should be as simple as adding all .h/.cpp files into the project.
  • Copy all files from Assets/Editor/x64/Bakery to a "bin" folder placed next to BakeryAPI.exe.
  • If you didn't previously the Unity version, also download latest binaries from github and overwrite old files in the bin folder.
  • Download demo models/textures from github.
  • Extract the "model" folder next to BakeryAPI.exe.
  • Create the "scene" folder next to BakeryAPI.exe.
  • Run BakeryAPI.exe. You should see baking progress printed to the console. Scene folder will be populated with temporary files.
  • In the end you should end up with sponzaLM_final.hdr file created in the scene folder, which is the final lightmap. Demo source also demonstrates other ways to export final data.
Bulbgraph.pngAs OBJ format only supports one UV channel, the demo OBJ is unwrapped for lightmaps, therefore material textures are mapped incorrectly, but as Sponza uses simple tiles, it's enough for demo purposes. In a real project different UVs should be supplied to SetVertexTextureUVs and SetVertexLightmapUVs functions