Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFBL (SFML Box2D Light)  (Read 17476 times)

0 Members and 2 Guests are viewing this topic.

Mj PsykOo

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Email
SFBL (SFML Box2D Light)
« on: January 23, 2015, 04:42:45 pm »
SFML Box2D Light is a very simple library and easy-to-use, this library allows you to add cool lighting effects including shadow casting etc...
here are some pictures:



Current Features:
- Spotlight
- Conelight
- Pointlight
- Able to change the darkness of scene
to download it please visit this link
https://github.com/MjPsykOo/SFBL
MinGW 4.9.2 static binaries have been already generated

select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: SFBL (SFML Box2D Light)
« Reply #1 on: January 23, 2015, 05:20:19 pm »
The screenshots look pretty :-) good job.

I've noticed your repo has no license information; you might want to add some so that users know how they can use your library commercially and non-commercially.
Follow me on Twitter, why don'tcha? @select_this

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #2 on: January 23, 2015, 11:07:54 pm »
Split the GPL Discussion to keep this thread focused on SFBL instead.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Mj PsykOo

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #3 on: January 23, 2015, 11:15:40 pm »
I really don't care about licenses if it was a license that says "do whatever you want with this library" then I would choose it.
if the GPL licence will coz problems then the next versions of library will be released under another license.
so could you advice me with a licence that allows you to use it as you want ?
and Thanks,

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #4 on: January 23, 2015, 11:21:13 pm »
The zlib/png license that SFML uses (full text here: https://github.com/SFML/SFML/blob/master/license.txt) is my personal favorite. It's super-short, non-lawyers can read it, and it basically just says "don't lie about who wrote this software", which should not be a problem for anybody.

Though I've always been tempted to try the WTFPL...
« Last Edit: January 23, 2015, 11:23:51 pm by Ixrec »

Mj PsykOo

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #5 on: January 23, 2015, 11:25:44 pm »
so can i just change the license of current version of library ??
« Last Edit: January 23, 2015, 11:30:49 pm by Mj PsykOo »

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #6 on: January 23, 2015, 11:30:36 pm »
It's your project.  Changing the license is entirely up to you.
« Last Edit: January 23, 2015, 11:32:14 pm by Ixrec »

Mj PsykOo

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #7 on: January 23, 2015, 11:35:16 pm »
ok the license has been changed to zlib/png license. same as SFML license.
« Last Edit: January 23, 2015, 11:36:51 pm by Mj PsykOo »

Hapax

  • Hero Member
  • *****
  • Posts: 3346
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: SFBL (SFML Box2D Light)
« Reply #8 on: January 24, 2015, 12:17:43 am »
Screenshots look really nice. Good work :)

Though I've always been tempted to try the WTFPL...
L O L
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

magneonx

  • Full Member
  • ***
  • Posts: 141
    • MSN Messenger - magnumneon04@hotmail.com
    • View Profile
Re: SFBL (SFML Box2D Light)
« Reply #9 on: January 26, 2015, 04:03:43 am »
This is cool. Very inspiring. I am planning to develop one as well. I will be checking on this project from time to time. Thanks for sharing!

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: SFBL (SFML Box2D Light)
« Reply #10 on: January 27, 2015, 12:44:46 am »
to download it please visit this link
https://github.com/MjPsykOo/SFBL
MinGW 4.9.2 static binaries have been already generated

Nice of you to put this out for others to use.  I downloaded the source from github, but ran into a problem.  You include MinGW lib binaries and I'm unsure of the build system.  Trying to get it compiled on linux I have an issue.  Make doesn't recognise the makefile for one.  Another is that there is some hangup with Box2D(uses premake4 build system).  Premake4.3 has a bug in it that premake4.4 fixes, but it's in beta still and I was having difficulty still in compiling it's git version so I can then compile Box2D to then compile your library.....

I think you see where I'm going with this.  Any ability on your end to provide a linux version of the lib binaries, or should I keep at it(which looks like waiting on premake4 to finish 4.4 beta)?

dwarfman78

  • Full Member
  • ***
  • Posts: 228
  • I'm bietzsche, Nietzsche !
    • MSN Messenger - cd4c@hotmail.com
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #11 on: January 27, 2015, 06:25:05 pm »
As far as i have experimented, Box2D compilation works with CMake if you unselect examples.
@dwarfman78
github.com/dwarfman78

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: SFBL (SFML Box2D Light)
« Reply #12 on: January 27, 2015, 07:02:20 pm »
As far as i have experimented, Box2D compilation works with CMake if you unselect examples.

Cmake won't work at all for me either.  It tells me I need to add 'cmake_minimum_required(VERSION 2.8)' to the beginning of the cmakelists.txt file, but it has version 2.6 required there already and I've been unsuccessful at editing this file and my $PATH variable correctly to make adjustments.

Mj PsykOo

  • Newbie
  • *
  • Posts: 13
    • View Profile
    • Email
Re: SFBL (SFML Box2D Light)
« Reply #13 on: January 27, 2015, 10:25:17 pm »
to download it please visit this link
https://github.com/MjPsykOo/SFBL
MinGW 4.9.2 static binaries have been already generated

Nice of you to put this out for others to use.  I downloaded the source from github, but ran into a problem.  You include MinGW lib binaries and I'm unsure of the build system.  Trying to get it compiled on linux I have an issue.  Make doesn't recognise the makefile for one.  Another is that there is some hangup with Box2D(uses premake4 build system).  Premake4.3 has a bug in it that premake4.4 fixes, but it's in beta still and I was having difficulty still in compiling it's git version so I can then compile Box2D to then compile your library.....

I think you see where I'm going with this.  Any ability on your end to provide a linux version of the lib binaries, or should I keep at it(which looks like waiting on premake4 to finish 4.4 beta)?

I'm very sorry for not providing ready-libraries for linux, because i'm not familiar with linux.
So to solve this problem i made the project open-source to let anyone build his own version under the system that he is working on ;).
But maybe in the next versions of SFBL,I'll try my best to provide ready-libraries for The most used systems ;).
« Last Edit: January 28, 2015, 01:19:05 pm by Mj PsykOo »

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: SFBL (SFML Box2D Light)
« Reply #14 on: January 28, 2015, 10:27:59 pm »
I'm very sorry for not providing ready-libraries for linux, because i'm not familiar with linux.
So to solve this problem i made the project open-source to let anyone build his own version under the system that he is working on ;).
But maybe in the next versions of SFBL,I'll try my best to provide ready-libraries for The most used systems ;).

Well I've started working on it, but I've never compiled a library without the use of a build system that configured it to compile.  I think I'm close, but still getting an error.  Not sure if I should start a new thread, but I'll post it here for now :

Code: [Select]
/usr/bin/g++   -c  "/home/spirro/C++Work/sfbl/sfbl.cpp" -g -O0 -std=c++11 -Wall  -o ./Debug/sfbl.cpp.o -I. -I/usr/include -I/usr/local/include
/usr/bin/g++ -shared -fPIC -o ./Debug/sfbl.so @"sfbl.txt" -L. -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib  -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
/usr/bin/ld: ./Debug/sfbl.cpp.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
./Debug/sfbl.cpp.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [Debug/sfbl.so] Error 1
make[1]: Leaving directory `/home/spirro/C++Work/sfbl'

It tells me to recompile with -fPIC, but, as you can see, that -fPIC is in there.  Now whether or not it's in the right place, I'm still unsure and checking.

 

anything