Giter VIP home page Giter VIP logo

nickelengine's Introduction

Hi,看这里 👋

我是VisualGMQ,一个游戏开发新手

  • 🔭 目前在中国杭州,从事游戏开发相关工作
  • 🌱 会一些Vulkan。沉浸于游戏引擎开发和游戏开发
  • 💻 用的最多的语言是C++ Badge,这里是我的一些项目:
    • gecs:C++17 ECS框架,源码借鉴EnTT,API设计借鉴Bevy
    • mirrow:C++17 模板元编程框架,含有静态/动态反射和自动序列化功能
    • rs-cpurenderer:使用rust编写的软渲染
    • NickelEngine:C++17,基于ECS的游戏引擎(施工中)

Top Langs

Anurag's GitHub stats

Harlok's wakatime stats

nickelengine's People

Contributors

visualgmq 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

Watchers

 avatar  avatar

nickelengine's Issues

Question: How to run the program?

根据这个 PR 可以成功构建 #2

但是无法成功运行,第一次运行报错无法找到配置文件 nickel-config.toml,于是我创建一个空文件再次运行,还是无法成功启动

直接启动

>  ./cmake-build/editor/editor
[Info][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/nickel.cpp][main][20][Nickel]:Running dir: "/Users/jayson/Projects/myproj/NickelEngine". Full path: ./cmake-build/editor/editor
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled

[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Use][273][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][operator()][299][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][SetInt][301][GL]:don't has uniform image
[Warning][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/input/input.cpp][InputSystemInit][85][Config]:parse nickel-config.toml failed, use default actions.
Error: File could not be opened for reading
        (error occurred at line 0, column 0 of './nickel-config.toml')
[1]    22022 segmentation fault  ./cmake-build/editor/editor

带空的 nickel-config.toml 启动

>  ./cmake-build/editor/editor
[Info][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/nickel.cpp][main][20][Nickel]:Running dir: "/Users/jayson/Projects/myproj/NickelEngine". Full path: ./cmake-build/editor/editor
[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Vertex shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.
ERROR: 0:2: '0' : syntax error: integers in layouts require GLSL 140 or later

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][ShaderModule][114][GL]:Fragment shader compile failed:
ERROR: 0:1: '' :  version '450' is not supported
ERROR: 0:1: '' : syntax error: #version
ERROR: 0:2: '' :  #version required and missing.

[FatalError][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Shader][264][GL]:shader link failed:
ERROR: One or more attached shaders not successfully compiled

[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][Use][273][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][operator()][299][GL]:GL_INVALID_OPERATION
[Error][/Users/jayson/Projects/myproj/NickelEngine/nickel/./include/core/gogl.hpp][SetInt][301][GL]:don't has uniform image
[Warning][/Users/jayson/Projects/myproj/NickelEngine/nickel/src/input/input.cpp][InputSystemInit][90][Config]:"input-action" table not exists, use default actions
[1]    23139 segmentation fault  ./cmake-build/editor/editor

Shader路径错误

日志[nickel\src\renderer\renderer2d.cpp][initShader][189][Renderer]
路径是相对build目录的,改为"../../nickel/shader/vertex.shader"解决

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.