Re: SDL2 + POGL2 + PDL confluence
On 2013-08-19, at 4:20 AM, Kartik Thakore wrote: There is no need to. I made a PDL to SDL_surface work before. And in SDL2 you can create template from surface. awesome, thanks Kartik and slightly off-topic but… has anyone managed to build POGL on debian-wheezy lately? i'm getting a segfault :/ -- root@vbox1:~# git clone git://git.code.sf.net/p/pogl/code pogl-code Cloning into 'pogl-code'... Resolving deltas: 100% (667/667), done. root@vbox1:~# cd pogl-code/ root@vbox1:~/pogl-code# perl Makefile.PL interface=FREEGLUT verbose $verbose set to 1 found libs: GL = 'GL' GLU = 'GLU' GLUT = 'glut' Testing for OpenGL Extensions Testing GLUT version glversion: cd utils;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT clean;make -f Makefile GLUT_LIB=glut GLUT_DEF=HAVE_GLUT OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x85e72c0 OpenGL Warning: Retry with 0x8002 returned 0 visuals Segmentation fault make: *** [glversion.txt] Error 139 rm -f glversion.txt rm -f glversion rm -f glversion.o cc -I/usr/include -I/usr/X11R6/include -I/usr/local/include -I/usr/openwin/include -DHAVE_GLUT -c glversion.c cc glversion.o -L/usr/lib -L/usr/X11R6/lib -L/usr/local/lib -L/usr/openwin/lib -L/usr/lib/xorg/modules -L/usr/X11R6/lib/modules -L/usr/lib/xorg/modules/extensions -L/usr/X11R6/lib/modules/extensions -lGL -lglut -lGLU -lXi -lXmu -lXext -lX11 -lm -o glversion chmod u+x glversion ./glversion glversion.txt get_extensions: no extensions found in utils/glversion.txt -- hi Chris, i was looking at elmex's construder code recently, and noticed that the passing of an SDL surface to OpenGL was done by dumping the SDL surface to a BMP temp file (via File::Temp), then loading the BMP with OpenGL. obviously this solution is a little slower than others, but... it should 'just work' without much effort we could always use this lazy technique for initial testing, until a more 'correct' solution is sorted with SDL_Texture :) Mason
Re: SDL2 + POGL2 + PDL confluence
On 2013-08-17, at 1:37 AM, Chris Marshall wrote: On Thu, Aug 15, 2013 at 6:05 PM, Kartik Thakore thakore.kar...@gmail.com wrote: I am definitely interested in helping with this. Perhaps we should make a test module that tests just these integration. It will get latest branches of the 3 projects and run tests. What do you think? I'm glad to see the interest but most of the base work is still needing to be done as far as the OpenGL stuff. We need modern OpenGL support in POGL before a lot of the specific development can occur. However, one important piece that could be investigated is how we could make conversion between SDL2 objects and PDL objects work. Ideally we could have a fast conversion to take a piddle and use it for an SDL2 surface or texture or whatever and similarly for the other direction. Currently, the approach used for SDL is to create the PDL object with the right sized data segment and then pass that to SDL to make a surface from that. I'm not sure what would work for SDL2 stuff. --Chris hi Chris, i was looking at elmex's construder code recently, and noticed that the passing of an SDL surface to OpenGL was done by dumping the SDL surface to a BMP temp file (via File::Temp), then loading the BMP with OpenGL. obviously this solution is a little slower than others, but... it should 'just work' without much effort we could always use this lazy technique for initial testing, until a more 'correct' solution is sorted with SDL_Texture :) Mason
perltidy style?
hi all has anyone discussed a preferred perltidy style for the project, yet?
SDL 2.0.0 has finally been released
some nice news today... http://lists.libsdl.org/pipermail/sdl-libsdl.org/2013-August/089854.html
Re: [Alien-SDL2] libtiff 4.0.3 incompatible on debian/ubuntu
On 2013-08-12, at 2:41 PM, Kartik Thakore wrote: This seems to work: https://github.com/PerlGameDev/Alien-SDL2/commit/dfece76c277922550610f8c8179f149131522c7e any comments? fwiw, travis is now building libtiff correctly with your patch, so… looks good :) https://travis-ci.org/PerlGameDev/Alien-SDL2/builds/10165396 On Sun, Aug 11, 2013 at 9:51 PM, Kartik Thakore thakore.kar...@gmail.com wrote: Hey guys, Any ideas on how I can fix this? https://github.com/PerlGameDev/Alien-SDL2/issues/3 I tried ... { FALSE= 0, TRUE= 0} ... But that is not working.
Re: automated building/testing for SDL_Perl?
On 2013-08-12, at 8:40 AM, Mason James wrote: On 2013-08-12, at 8:06 AM, Kartik Thakore wrote: Yeap this would be great for sdl. I can give you permissions to add it to SDL repos? yes please :) just a little update... i've managed to sort a successful travis build on the PerlGamesDev/Alien-SDL2 experimental branch https://travis-ci.org/PerlGameDev/Alien-SDL2 https://github.com/PerlGameDev/Alien-SDL2/commits/experimental i'll attempt to get a SDL2 build succeeding over then next few days On Sun, Aug 11, 2013 at 4:04 PM, Mason James m...@kohaaloha.com wrote: On 2013-08-12, at 7:30 AM, Tobias Leich wrote: Hi Mason, that is pretty cool. If it does a rebuild and test after every commit, can I see a matrix of commits? Cheers, Tobias hmm, the 'build history' (and 'pull request'?) tabs show a history of commits (and their test result) https://travis-ci.org/KohaAloha/Alien-SDL/builds https://travis-ci.org/KohaAloha/Alien-SDL/pull_requests thats the best travis does, i think…?
Re: [Alien-SDL2] libtiff 4.0.3 incompatible on debian/ubuntu
On 2013-08-12, at 3:46 PM, Kartik Thakore wrote: Also this looks like the Builder is not fetching and install SDL2, when I ask it to build from scratch : Do you want to see all messages during configure/make (y/n)? [n ]n Checking checksum for already existing 'download/zlib-1.2.8.tar.gz'... Checking checksum for already existing 'download/jpegsrc.v9.tar.gz'... Checking checksum for already existing 'download/tiff-4.0.3.tar.gz'... Checking checksum for already existing 'download/libpng-1.5.14.tar.gz'... Checking checksum for already existing 'download/freetype-2.4.11.tar.gz'... Checking checksum for already existing 'download/SDL2_image-hg20130301.tar.gz'... Checking checksum for already existing 'download/libogg-1.3.0.tar.gz'... Checking checksum for already existing 'download/libvorbis-1.3.3.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2_mixer-hg20130301.tar.gz'... Checking checksum for 'download/SDL2_mixer-hg20130301.tar.gz'... Checking checksum for already existing 'download/SDL2_ttf-hg20130301.tar.gz'... Checking checksum for already existing 'download/SDL2_gfx-svn20130301.tar.gz'... Extracting z... Extracting jpeg... Extracting tiff... ### Any ideas why? hmmm, just my 2 cents this is working OK for me.. on experimental branch's current HEAD (77d7cc6a59) hope that helps $ ./Build Build option used: Source code build z(v1.2.8) jpeg(v9) tiff(v4.0.3) png(v1.5.14) freetype(v2.4.11) SDL2(v2.0.0HG) SDL2_image(v2.0.0HG) ogg(v1.3.0) vorbis(v1.3.3) SDL2_mixer(v2.0.0HG) SDL2_ttf(v2.0.12HG) SDL2_gfx(v20130301-hg) Building Alien-SDL2 Fetching 'http://www.zlib.net/zlib-1.2.8.tar.gz'... Checking checksum for 'download/zlib-1.2.8.tar.gz'... Fetching 'http://www.ijg.org/files/jpegsrc.v9.tar.gz'... Checking checksum for 'download/jpegsrc.v9.tar.gz'... Fetching 'ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz'... Checking checksum for 'download/tiff-4.0.3.tar.gz'... Fetching 'http://downloads.sourceforge.net/libpng/libpng-1.5.14.tar.gz'... Checking checksum for 'download/libpng-1.5.14.tar.gz'... Fetching 'http://mirror.lihnidos.org/GNU/savannah/freetype/freetype-2.4.11.tar.gz'... Checking checksum for 'download/freetype-2.4.11.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2-hg20130301.tar.gz'... Checking checksum for 'download/SDL2-hg20130301.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2_image-hg20130301.tar.gz'... Checking checksum for 'download/SDL2_image-hg20130301.tar.gz'... Fetching 'http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz'... Checking checksum for 'download/libogg-1.3.0.tar.gz'... Fetching 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.3.tar.gz'... Checking checksum for 'download/libvorbis-1.3.3.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2_mixer-hg20130301.tar.gz'... Checking checksum for 'download/SDL2_mixer-hg20130301.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2_ttf-hg20130301.tar.gz'... Checking checksum for 'download/SDL2_ttf-hg20130301.tar.gz'... Fetching 'http://strawberryperl.com/package/kmx/sdl/src/SDL2_gfx-svn20130301.tar.gz'... Checking checksum for 'download/SDL2_gfx-svn20130301.tar.gz'... Extracting z... Extracting jpeg... Extracting tiff... Applying patch file: 'patches/libtiff.4.0.3.tiffio.h.patch' - gonna patch 'build_src/tiff-4.0.3/libtiff/tiffiop.h' Extracting png... Extracting freetype... Extracting SDL2... Extracting SDL2_image... Extracting ogg... On Sun, Aug 11, 2013 at 11:13 PM, Kartik Thakore thakore.kar...@gmail.com wrote: Seems like prereqs are not installing now: https://github.com/PerlGameDev/Alien-SDL2/issues/4 Any clue guys? Also kmx: your url for smpeg is no longer valid. On Sun, Aug 11, 2013 at 10:41 PM, Kartik Thakore thakore.kar...@gmail.com wrote: This seems to work: https://github.com/PerlGameDev/Alien-SDL2/commit/dfece76c277922550610f8c8179f149131522c7e any comments? On Sun, Aug 11, 2013 at 9:51 PM, Kartik Thakore thakore.kar...@gmail.com wrote: Hey guys, Any ideas on how I can fix this? https://github.com/PerlGameDev/Alien-SDL2/issues/3 I tried ... { FALSE= 0, TRUE= 0} ... But that is not working.
Re: automated building/testing for SDL_Perl?
my reply is 'inline' On 2013-08-14, at 12:33 PM, Kartik Thakore wrote: ? On Tue, Aug 13, 2013 at 2:32 PM, Mason James m...@kohaaloha.com wrote: On 2013-08-12, at 8:40 AM, Mason James wrote: On 2013-08-12, at 8:06 AM, Kartik Thakore wrote: Yeap this would be great for sdl. I can give you permissions to add it to SDL repos? yes please :) below here… just a little update... i've managed to sort a successful travis build on the PerlGamesDev/Alien-SDL2 experimental branch https://travis-ci.org/PerlGameDev/Alien-SDL2 https://github.com/PerlGameDev/Alien-SDL2/commits/experimental i'll attempt to get a SDL2 build succeeding over then next few days
automated building/testing for SDL_Perl?
hi All I've recently learnt how to use the Travis [1] automated build system with github repos its a pretty handy tool that detects errors in commits; and also builds/tests your codebase after any commit series is pushed, on multiple versions of perl even (currently 5.10 - 5.18) with some pretty small changes, I've managed to get both the SDL and Alien-SDL repos building/testing successfully with Travis [2][3] (i plan on sorting the SDL2 and Alien-SDL2 repos soon) so… is this something people are keen on using for SDL_Perl project? cheers, Mason [1] https://travis-ci.org/ [2] https://travis-ci.org/KohaAloha/SDL [3] https://travis-ci.org/KohaAloha/Alien-SDL
Re: automated building/testing for SDL_Perl?
On 2013-08-12, at 8:06 AM, Kartik Thakore wrote: Yeap this would be great for sdl. I can give you permissions to add it to SDL repos? yes please :) On Sun, Aug 11, 2013 at 4:04 PM, Mason James m...@kohaaloha.com wrote: On 2013-08-12, at 7:30 AM, Tobias Leich wrote: Hi Mason, that is pretty cool. If it does a rebuild and test after every commit, can I see a matrix of commits? Cheers, Tobias hmm, the 'build history' (and 'pull request'?) tabs show a history of commits (and their test result) https://travis-ci.org/KohaAloha/Alien-SDL/builds https://travis-ci.org/KohaAloha/Alien-SDL/pull_requests thats the best travis does, i think…? Am 11.08.2013 21:20, schrieb Mason James: hi All I've recently learnt how to use the Travis [1] automated build system with github repos its a pretty handy tool that detects errors in commits; and also builds/tests your codebase after any commit series is pushed, on multiple versions of perl even (currently 5.10 - 5.18) with some pretty small changes, I've managed to get both the SDL and Alien-SDL repos building/testing successfully with Travis [2][3] (i plan on sorting the SDL2 and Alien-SDL2 repos soon) so… is this something people are keen on using for SDL_Perl project? cheers, Mason [1] https://travis-ci.org/ [2] https://travis-ci.org/KohaAloha/SDL [3] https://travis-ci.org/KohaAloha/Alien-SDL cheers, Mason -- KohaAloha, NZ cheers, Mason -- KohaAloha, NZ
adding texture scaling functionally to SDL2_perl
hi sdl-devel i am planning/researching about adding a small amount of SDL2_Perl code into my existing SDL_Perl app, for a framerate increase i have one long-standingly slow bit of code in my app, that i would like to replace with SDL2 code my slow code is a SDL::GFX::Rotozoom::surface() call. but SDL2 has 'hardware accelerated' stretching/scaling/zooming [1], yay! i checked the SDL2 version of ./SDL2_rotozoom.c, and it is still using the current slow software method (no changes) but the good news is… there seems to be a preferred method to achieve this fast hardware scaling in SDL2 SDL2's SDL_RenderCopyEx() function [2] will scale a texture using a fast HW method, (but...i have not benchmarked my theory yet) my plan is to attempt to add some missing SDL2 functionality to SDL2_Perl. then swap my slow SDL::GFX::Rotozoom::surface() call, with the faster SDL2 equivalent so basically, i need to implement the 'test/testrendercopyex.c' demo [3], in SDL2_Perl, and add access to these missing SDL2 functions in SDL2_Perl... SDL_LoadBMP(), SDL_CreateTextureFromSurface(), SDL_FreeSurface() SDL_RenderGetViewport() SDL_CreateTexture() SDL_SetRenderTarget() SDL_RenderCopy() SDL_RenderCopyEx(), SDL_QueryTexture() fyi: the testrendercopyex.c demo is nice and simple, it... - loads a .bmp file to a surface - converts the surface to a HW texture - then randomly moves, rotates and scales that texture around the window, in a loop i believe this demo is using the new hardware-accelerated scaling on a 'texture' in SDL2 [1] http://wiki.libsdl.org/moin.fcg/Introduction [2] http://wiki.libsdl.org/moin.fcg/SDL_RenderCopyEx [3] http://hg.libsdl.org/SDL/file/90ff13467550/test/testrendercopyex.c any comments or suggestions, folks? cheers, Mason
Re: [SDL] SDL 2.0 API stabilization
On 2013-02-23, at 7:32 AM, Kartik Thakore wrote: SDL 2.0 API is STABLE! I will be working on getting libperl-sdl2 started. Any thoughts on name space? awesome news Kartik! and a huge thank-you for all of your work :p i can't wait to see what improvements SDL2 has for us :)