Not logged inOpenClonk Forum
Up Topic Development / Developer's Corner / Project to complete and merge the lights branch
1 2 3 Previous Next
- - By Zapper [de] Date 2014-11-25 12:35
One comment about the slices:

Currently the file ending for the slices is *.c (f.e. planet/Graphics.ocg/AmbientShader.c). That is the same file ending as for the script files.
Wouldn't it be wiser to use something like *.shader/*.slice/*.glsl or something similar for easier editor support? :)
Parent - By Maikel Date 2014-11-25 13:55
Agreed
Parent - - By Clonk-Karl [us] Date 2014-11-25 17:57
Changed
Reply
Parent - - By Maikel Date 2014-12-02 10:37
ck, my linux build of the lights branch crashes on startup when not using editor mode. The game in editor mode seems to work perfectly.
Parent - - By Clonk-Karl [us] Date 2014-12-02 15:05
Can't reproduce that... do you have a stacktrace?
Reply
Parent - By Maikel Date 2014-12-02 21:15
No, I might produce one next week. No time this week.
Parent - - By Maikel Date 2014-12-06 09:53 Edited 2014-12-06 10:14
Mh, how do I make a debug build in linux? Is it just with cmake -DCMAKE_BUILD_TYPE=Debug .. ?

This is some output running with gdb: (RelWithDbgInfo)

Program received signal SIGSEGV, Segmentation fault.
0x00000000008877e4 in C4Shader::GetUniform(int) const ()
Parent - By Newton [de] Date 2014-12-06 14:07

>RelWithDbgInfo


Hmm, have you tried Debug instead of RelWithDbgInfo?
Parent - By Clonk-Karl [us] Date 2014-12-06 15:23
RelWithDebInfo might be good enough, but "-DCMAKE_BUILD_TYPE=Debug" is even better. Anyway, to get the stacktrace, just type "bt" at the gdb prompt after it crashed.
Reply
Parent - - By Clonk-Karl [us] Date 2014-12-06 23:18
I think I found and fixed the problem. Graphics resources need to be loaded earlier from Graphics.ocg, since the shaders are required early. Would be good if you can confirm it.
Reply
Parent - By Maikel Date 2014-12-07 20:11
Cool, and yes, I tried debug, but it would not crash at that location (or at all).
Parent - By PeterW [de] Date 2014-11-27 13:16
Late to the party, but yes, I agree. The reason I chose ".c" was basically just because I was lazy and wanted the right editor to open the file :)
- - By PeterW [de] Date 2015-01-02 22:13 Edited 2015-01-02 22:16
As a heads-up to ck: The light coordinates don't seem to be 100% correct - here's what I get with LIGHT_DEBUG and inner light triangles off:



This Y offset isn't constant - it shifts around with zoom. Probably barely noticeable in the end result, but might be something to look at.
Parent - - By Clonk-Karl [de] Date 2015-01-02 22:22
Would probably be good to keep track of it in the bugtracker with all the other light bugs / todos...
Reply
Parent - By PeterW [de] Date 2015-01-03 15:32
Sure, done.
Up Topic Development / Developer's Corner / Project to complete and merge the lights branch
1 2 3 Previous Next

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill