Git Product home page Git Product logo

engine's People

Contributors

kyfohatl avatar shervanator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

engine's Issues

Build ends up in bin/bin directory

I built this on Ubuntu and the output directory seems a bit odd

I ran:

mkdir build
cd build
cmake ..
make
cd ..

The ended up with a directory bin/bin - it seems like it should just be bin

Windows Build Info

you should probably provide what's required with Windows build? I'm guessing vs2015 only or does it work with cygwin and mingw toolchains?

checking with the stdlibc++ flag you need to use clang???

At least provide some info what tools to use in windows.

Make camera use node transform

Instead of using its own concept of world space make the camera use the SceneNodes transform, this will allow attaching a camera to another SceneNode and having the camera automatically follow that object!

Add physics engine

Im looking at integrating bullet physics engine, this might be able to help with frustum culling as well

Can not build under windows 10

C:\Users\Vlad\Desktop\Engine\dependencies\CMakeLists.txt:17: error: The source directory C:/Users/Vlad/Desktop/Engine/dependencies/SDL does not contain a CMakeLists.txt file.

C:\Users\Vlad\Desktop\Engine\dependencies\CMakeLists.txt:24: error: The source directory C:/Users/Vlad/Desktop/Engine/dependencies/glew does not contain a CMakeLists.txt file.

C:\Users\Vlad\Desktop\Engine\dependencies\CMakeLists.txt:164: error: The source directory C:/Users/Vlad/Desktop/Engine/dependencies/assimp does not contain a CMakeLists.txt file.

Cannot run cmake-make.sh on Ubuntu14.04

It always reports error:
Clone of '[email protected]:Perlmint/glew-cmake.git' into submodule path 'dependencies/glew' failed
......
CMake Error at dependencies/CMakeLists.txt:19 (add_subdirectory):
add_subdirectory given source "glew" which is not an existing directory.

Link GLEW as static library

Maybe to avoid cross platform errors, since you mentioned that you have never tried building it in Windows, perhaps a suggestion on Glew library linking as explained here..

Add glew.c to your project. Just compile it in with the rest of your source files. As long as you #define GLEW_STATIC it will work fine. Problem solved.

Even if you succeed at linking it to the library, you are then bound to one specific architecture/build/version. If you just include glew.c you will be free to build the project virtually anywhere.

http://stackoverflow.com/a/12427214/4397269

I know there's a pre-build with glew sources, so maybe just add thirdparty or dependencies folder and place it depending on platform?? or just with Windows if it is an isolated case.

Just throwing out some suggestions for cross-platform building..

Emscripten build problem

I would like to report a bug in the emscripten building process. I am using emsdk 1.37.21 and osx 10.13.2. This might be emsdk + sdl related, but I think you might know how to fix it. I made it work once, but I don't remember what I did to make it work.

I instaled the emsdk 1.37.21 via emsdk-portable and activated it. Updated paths running emsdk_env.sh and sourcing emsdk_set_env.sh. After that, I ran: ./scripts/cmake-emscripten.sh -j8

Here is the output:

In file included from /Users/tolstenko/projects/Engine/src/engine/GLEWManager.cpp:6:
In file included from /Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GL/glew.h:36:
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/SDL/SDL_opengl.h:5111:19: error: typedef redefinition with different types ('ptrdiff_t'
      (aka 'int') vs 'khronos_intptr_t' (aka 'long'))
typedef ptrdiff_t GLintptr;
                  ^
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GLES2/gl2.h:78:26: note: previous definition is here
typedef khronos_intptr_t GLintptr;
                         ^
In file included from /Users/tolstenko/projects/Engine/src/engine/GLEWManager.cpp:6:
In file included from /Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GL/glew.h:36:
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/SDL/SDL_opengl.h:5112:19: error: typedef redefinition with different types ('ptrdiff_t'
      (aka 'int') vs 'khronos_ssize_t' (aka 'long'))
typedef ptrdiff_t GLsizeiptr;
                  ^
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GLES2/gl2.h:77:25: note: previous definition is here
typedef khronos_ssize_t GLsizeiptr;
                        ^
In file included from /Users/tolstenko/projects/Engine/src/engine/GLEWManager.cpp:6:
In file included from /Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GL/glew.h:36:
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/SDL/SDL_opengl.h:5582:21: error: conflicting types for 'glShaderSource'
GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
                    ^
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GLES2/gl2.h:626:29: note: previous declaration is here
GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
                            ^
In file included from /Users/tolstenko/projects/Engine/src/engine/GLEWManager.cpp:6:
In file included from /Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GL/glew.h:36:
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/SDL/SDL_opengl.h:5676:25: error: typedef redefinition with different types ('void (*)(GLuint,
      GLsizei, const GLchar **, const GLint *)' (aka 'void (*)(unsigned int, int, const char **, const int *)') vs 'void (*)(GLuint, GLsizei, const GLchar
      *const *, const GLint *)' (aka 'void (*)(unsigned int, int, const char *const *, const int *)'))
typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
                        ^
/Users/tolstenko/emsdk/emscripten/1.37.21/system/include/GLES2/gl2.h:483:28: note: previous definition is here
typedef void (GL_APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.