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

CMake errors #2

Open
oschakravarthi opened this issue Apr 27, 2019 · 3 comments
Open

CMake errors #2

oschakravarthi opened this issue Apr 27, 2019 · 3 comments

Comments

@oschakravarthi
Copy link

Hi,
I have been struggling to build the project

I have downloaded all the folders under https://svn.blender.org/svnroot/bf-blender/trunk/lib/win64_vc14/ and copied to lib folder. It is more than 3.2 GB

Downloaded other software like GLUT, GLEW etc and copied to the lib folder. Still I am getting many build errors.

Cant we make the build process simple? A baking library is depending on external software sized more than 3 GB? Am I doing anything wrong?

-- Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
-- GLUT_FOUND=FALSE
-- Found OpenGL: opengl32
-- Could NOT find Glew (missing: GLEW_LIBRARY GLEW_INCLUDE_DIR)
CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find OpenImageIO (missing: OPENIMAGEIO_INCLUDE_DIR)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.14/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
src/cmake/Modules/FindOpenImageIO.cmake:61 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/cmake/external_libs.cmake:81 (find_package)
src/CMakeLists.txt:18 (include)

@jesterKing
Copy link
Member

We don't use the CMake files, but rather have hand-crafted visual studio project files.

This fork of the Blender Cycles repository is a submodule of https://github.com/mcneel/CCSycles, where also those project files live.

I haven't tested building CCSycles and this Cycles version outside of the Rhino project in a long time, so not sure how well it works out of the box.

@oschakravarthi
Copy link
Author

oschakravarthi commented Apr 27, 2019

Thank you for your reply.
My requirement is:

My C# web application allows users to design 3D apartments. After they are done with building their apartment and submit, this application is supposed to bake light maps for each mesh in the scene programmatically. Once the baking is done, the model is mailed to the user. The complete pipeline should be automatic. We cannot load the model into blender/maya/3dsmax kinds of 3d editors for baking.

I have seen many path tracing/ ray tracing implementations but they all render for the viewport. But I want to bake light maps for each mesh so that the model requires no real-time light baking so that we can display that model in low end devices using webgl.

So, I am hoping that I can achieve this with Cycles. Can I?

@jesterKing
Copy link
Member

You should be able to bake light maps with Cycles - Blender Cycles can, and so should this Cycles. To achieve that you'll have to set up a scene (in your own code) such that the baking progresses as if it would in Blender Cycles.

To use this Cycles in your C# app you'll have to use the CCSycles wrapper library.

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