hotstreams / limitless-engine

OpenGL C++ Graphics Engine
MIT License
269 stars 26 forks source link

Build #24

Open ViPErCZ opened 1 year ago

ViPErCZ commented 1 year ago

Please help, I wanted to try the app, but I can't build >

[100%] Linking C executable ../../../../bin/glewinfo /usr/bin/ld: CMakeFiles/glewinfo.dir///src/glewinfo.c.o: in function glewCreateContext': glewinfo.c:(.text+0x32209): undefined reference toglXQueryExtension'

demo build... but not execute

first error tesselation.tcs: 0:608(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:608(38): error: vec3 getVertexNormal(uint)

if i fix then,

error: Input block `_vertex_data' is not an output of the previous stage

Thanks.

PS: your build same fail > https://github.com/hotstreams/limitless-engine/runs/6991541476?check_suite_focus=true

ViPErCZ commented 1 year ago

And today version has new error... limitless-engine/include/limitless/instances/instanced_instance.hpp:83:28: error: conflicting return type specified for ‘virtual Limitless::InstancedInstance Limitless::InstancedInstance::clone()’ 83 | InstancedInstance clone() noexcept override {

and tess_control_input.glsl has wrong on runtime error tesselation.tcs: 0:621(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint)

hotstreams commented 1 year ago

Yeah, Sorry for that, definitely my bad.

tesselation.tcs: 0:621(38): error: no matching function for call to `getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint)

There was something about implicit casts from int to uint, should be fixed now at f858540

ViPErCZ commented 1 year ago

Not completed.... getVertexNormal must be to int type... by call _out_data[gl_InvocationID].normal = getVertexNormal(gl_InvocationID);

gl_InvocationID is int type

terminate called after throwing an instance of 'Limitless::ms::material_compilation_error' what(): tesselation_samplefailed to compile /home/viper/Plocha/limitless-engine/assets/../shaders/tesselation/tesselation.tcs: 0:621(38): error: no matching function for call to getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint) 0:624(46): error: no matching function for call togetVertexPosition(int)'; candidates are: 0:624(46): error: vec3 getVertexPosition(uint) 0:625(34): error: no matching function for call to `getVertexUV(int)'; candidates are: 0:625(34): error: vec2 getVertexUV(uint)

DWR-CMQ commented 5 months ago

@ViPErCZ Hi, Can you run the project sucessfully?I find the demo does not include files "Textures"

DWR-CMQ commented 5 months ago

for example image image

ViPErCZ commented 5 months ago

https://github.com/hotstreams/limitless-engine/commit/78b6d5a29158e527efe5d990dd8acf67f587fdd2

assets removed. I have old function commit e24fe45cf55a834b7bfd6283f796a5883df015a4 I have no head checkout. This is maybe bug. ;-)

DWR-CMQ commented 5 months ago

Thanks for your reply ,I have found from https://github.com/Tehsapper/graphics-engine

ViPErCZ commented 5 months ago

Yes, using fork is solution... ;-)

DWR-CMQ commented 5 months ago

Not completed.... getVertexNormal must be to int type... by call _out_data[gl_InvocationID].normal = getVertexNormal(gl_InvocationID);

gl_InvocationID is int type

terminate called after throwing an instance of 'Limitless::ms::material_compilation_error' what(): tesselation_samplefailed to compile /home/viper/Plocha/limitless-engine/assets/../shaders/tesselation/tesselation.tcs: 0:621(38): error: no matching function for call to getVertexNormal(int)'; candidates are: 0:621(38): error: vec3 getVertexNormal(uint) 0:624(46): error: no matching function for call togetVertexPosition(int)'; candidates are: 0:624(46): error: vec3 getVertexPosition(uint) 0:625(34): error: no matching function for call to `getVertexUV(int)'; candidates are: 0:625(34): error: vec2 getVertexUV(uint)

@ViPErCZ hi, have you solved the issue,I encounter the same problem image

ViPErCZ commented 4 months ago

yes... uint not match int in argument this getVertexUV func... you must fix... ideal when this bug fix owner this repository

DWR-CMQ commented 4 months ago

I took a shortcut and deleted the tcs file,I built it sucessfully finally,and run the project normally

DWR-CMQ commented 4 months ago

The video I take is https://www.bilibili.com/video/BV1wF4m1g7Rf/?spm_id_from=333.999.0.0&vd_source=c190caf289a70529fcd37e9d7dadedaf

DWR-CMQ commented 4 months ago

I want change it from glew to glad,and create a special effects library based on this