Giter Site home page Giter Site logo

simplerenderengineproject's Introduction

SimpleRenderEngine Projects

This is a fork of SimpleRenderEngine including libraries and bindings to common game development libraries. (This includes SimpleRenderEngine dependencies) The goal of this project is be able to get started without spending time on setup.

First clone the project (git clone --recurse-submodules https://github.com/mortennobel/SimpleRenderEngineProject.git). You can use of the examples as starting point.

For more information about SimpleRenderEngine see:

https://github.com/mortennobel/SimpleRenderEngine

Setup OSX

SDL

Download the most recent Development Libraries for macOS from https://www.libsdl.org/download-2.0.php Open the dmg and copy the SDL2.framework to /Library/Frameworks

SDL_image

Download the most recent Development Libraries for macOS from https://www.libsdl.org/projects/SDL_image/ Open the dmg and copy the SDL2_image.framework to /Library/Frameworks

SDL_mixer

Download the most recent Development Libraries for macOS from https://www.libsdl.org/projects/SDL_mixer/ Open the dmg and copy the SDL2_mixer.framework to /Library/Frameworks

Run CMake to setup project

CMake should now be able to configure your project fully using CMake with default values.

Setup Windows (Visual Studio 2017)

Every dependency is included. Run CMake and use the default options to generate the project files. Use x86 (64-bit is currently unsupported).

Setup Linux

  • sudo apt-get install libsdl2-dev
  • sudo apt-get install libsdl2-image-dev
  • sudo apt-get install libsdl2-mixer-dev
  • sudo apt-get install libglew-dev
  • sudo apt-get install lua5.3-dev

simplerenderengineproject's People

Contributors

chris-carvelli avatar codewing avatar estrac avatar kasperhdl avatar mortennobel avatar pyjamads avatar realek 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

Watchers

 avatar  avatar  avatar  avatar  avatar

simplerenderengineproject's Issues

Missing depencies

Windows with vc2015
I am trying to compile one of the projects and it shows that these files are missing:
#include "sre/SDLRenderer.hpp"
#include "sre/SpriteAtlas.hpp"
#include "sre/Texture.hpp"
#include "sre/Material.hpp"
#include "sre/Inspector.hpp"
#include "glm/gtc/random.hpp"
#include "glm/ext.hpp"

where do I find the glm files?

SDL_GL_CreateContext(window); return NULL

I'm using ubuntu14.04
g++ version is 6.04.0
SDL2 version is 2.0.2(install via apt-get install)
glGetString(GL_VERSION) return NULL too.

When I run the examples,just crash.please help...

Use CMake find_package(LUA) instead of hardcoded string

Building the project using ArchLinux works if we use find_package instead of the hardcoded paths

CMakeList.txt:90

IF (UNIX)
        SET(LUA_INCLUDE_DIR /usr/include/lua5.3)
        INCLUDE_DIRECTORIES (${LUA_INCLUDE_DIR})
        SET(LUA_LIBRARIES /usr/lib/x86_64-linux-gnu/liblua5.3.a )
ELSE (UNIX)
IF (UNIX)
        find_package(Lua REQUIRED)
        if(LUA_FOUND)
            INCLUDE_DIRECTORIES (${LUA_INCLUDE_DIR})
        ENDIF(LUA_FOUND)
ELSE (UNIX)

I'll create a pull request this evening

-ldl seems to be missing from the Linux rules

Hi,

I found the project gets stuck "out of the box" on all 3 of OSX, Ubuntu and Centos/Oracle. Clion on Windows runs OK with VS17 and VS19. No progress with OSX libsdl errors yet on my part. It appears that a universal problem on Linux was not linking with libdl, the error being "undefined reference to symbol 'dlclose@@GLIBC_2.2.5'". I am not sure where the -ldl switch has to go in the CMake files, but manually fixing it on Oracle Linux 8 gave me a whole bunch of libpng errors, which turned out to depend on -lpng16 and missing symbolic links for libpng:
sudo ln -s /usr/lib64/libpng16.so.16 /usr/lib64/libpng16.so

Again I am not sure what would be the way to "fix" the CMake files for this.

Can not load textures while running from inside VS Studio

On Windows 10 and with Visual Studio 2019, when attempting to run one of the examples from inside the IDE, the program is unable to load any .obj or texture files as you can see in the picture below. However, it is perfectly able to load the models and textures when running the .exe directly. This is an issue because it prevents the use of the Visual Studio debugger, because the program can not load any models and thus you can not properly observe the normal behaviour of the program while debugging.
vs_Studio_error

Assimp cmake

In the project's CMakeList, the assimp variables don't match and it causes linking and include errors.

CmakeList.txt : 105
INCLUDE_DIRECTORIES (${assimp_INCLUDE_DIR})
CMakeList.txt: 161
set(all_libs ${all_libs} ${assimp_LIBRARY})

To make it work, should be replaced by :
ASSIMP_LIBRARY and ASSIMP_INCLUDE_DIR

To use assimp dll:
if(USE_assimp)
ASSIMP_COPY_BINARIES(${CMAKE_CURRENT_BINARY_DIR})
endif(USE_assimp)

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.