knightcrawler25 / Optix-PathTracer

Simple physically based path tracer based on Nvidia's Optix Ray Tracing Engine
317 stars 36 forks source link

About scene Dinning-room #2

Closed xin-xinhanggao closed 5 years ago

xin-xinhanggao commented 6 years ago

Hi!
Thanks for your amazing job! Could you please tell me how you convert the dining-room.blend file to many separate obj files? I use blender to read dining-room.blend and then export to obj, but I could only get one big obj file. Thanks for your help!

knightcrawler25 commented 6 years ago

Hi, You can use the split mesh by material feature in Blender. Select an object -> Edit Mode -> Press P -> By Material. Then select the mesh and export only the selected object as an obj file. It takes a while to do it for big scenes since its a manual process. The dining scene took me about an hour or so to specify all the materials (Since I'm using only the Disney BRDF) and export the meshes.

Woking-34 commented 6 years ago

Hi! Thanks for sharing your work, really nice!

Unfortunately I"m not professional with Blender, would you be so kind to upload the obj files for the DiningRoom/Bedroom scene?

Thanks for your time.

knightcrawler25 commented 6 years ago

Sure :) I'll upload the files for both the scenes when I get back from work. The bedroom scene is from https://benedikt-bitterli.me/resources/ You'll find lots of interesting scenes on that site as well

knightcrawler25 commented 5 years ago

I've added all the .obj files with the latest commit into the src/data/data.rar file. Unzip the file in the same folder and you'll be able to run all the scene files :)

qzzone commented 5 years ago

Amazing work! I have a question about the way to generate scene files. How did you get scene files as such a format? If I want to render other scenes, how can I generate such a x.scene file? Thank you!

knightcrawler25 commented 5 years ago

@qzzone It's mostly manual generation. copy + paste and modify as required. I didn't focus much on scene file generation/loading as I wanted the code to work first before improving anything else.