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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Kingdom of Fish

Pages: [1]
1
Graphics / Optimizing tilerendering
« on: September 09, 2010, 11:23:54 pm »
I'm curious if there are any simple optimizations to rendering tiles in SFML2 that you really need to know about.

I was thinking about caching parts of the screen in larger images instead of drawing each tile every frame. Is this even worth it? SFML2 seems to be pretty fast with tiles anyway and I would hate to hack together a bunch of code and figure out it was just a big waste of time and clever thinking.

2
SFML projects / CairoShapes with SFML
« on: May 23, 2010, 11:19:27 pm »
I've written a really basic class for drawing stuff with Cairo and then using it as a normal sprite in SFML and I call the project CairoShape. I think it would be possible to actually use it in a practical application but my main intention is to create placeholder graphics when I'm playing with SFML.

The Shape class in SFML has its positive sides but I don't feel like I have the freedom sometimes.

If you find it in anyway useful please improve on it.

3
Python / Overloading Render for Sprites
« on: July 13, 2009, 10:44:24 pm »
Hi, I'm kind of new to the python binding for SFML but I'm trying to implement a menu system and want to be able to change the color of a sf.String sprite each time it's drawn depending on a set of flags. But I can't seem to figure och what (if any) function is called on each draw.

4
General discussions / SFML but 3d
« on: March 20, 2008, 02:54:04 am »
Hi, i'm curious if there are any sfml-like libraries for 3d graphics instead of 2d, and i don't mean sfml with opengl calls but a library with good structure, different fil format loading capabilities, shaders and such?
I've used ogre3d earlier but it's just too big for the stuff i want to do, i want small, easy and pretty... just like sfml.

5
Graphics / Width of text
« on: March 04, 2008, 02:09:15 pm »
How do i get the actual width of a text, lets say if i want to put the text in the center of the screen i get the rect from the font object divide the width by two and put that in the center but the text seem to be a little off. If you dont get what i mean i'll post screens but i have non atm.

6
General / [SVN] Symbol look up error
« on: February 25, 2008, 08:25:09 pm »
When i try to run the demos after pulling down sfml from svn i get this error:
Code: [Select]
sfml/samples/bin$ ./pong
./pong: symbol lookup error: ./pong: undefined symbol: _ZN2sf6StringC1ERKSbIwSt11char_traitsIwESaIwEERKSsf


The only demos thats working is qt and wxwidgets (even if the wx demo seg faults on exit)

7
Graphics / Pixel format
« on: February 23, 2008, 09:55:37 pm »
I have a tiny problem, I'm making a small game where the levels are being defined in an xml file and then rendered in cairo to be used as sprites. The problem is that cairo uses the format ARGB and SFML RGBA and if i've gotten this right cairo also saves the pixeldata "backwards" so that when loading the image from memory to SFML you get BGRA. The alternative as I see it would be to actually output the file to the FS first and the load it back in to SFML and that feels really unnecessary. So anyone who can help me with how to fix this?

8
Graphics / Cairo and SFML
« on: February 21, 2008, 01:47:23 am »
I'm curious if anyone has tried integrating Cairo with SFML for drawing shapes and loading SVG images? If not wouldn't it be fairly simple since SFML is based on opengl?

I have so far not dug around the sfml source so if anyone who has could give me some pointers?


http://cairographics.org/OpenGL/

9
Feature requests / Setting rotation with radians
« on: February 03, 2008, 08:13:40 pm »
Hi, I was wondering if you are planning to add functionality to set the rotation of a sprite using radians instead of degrees?

10
General discussions / Sprite center
« on: January 31, 2008, 02:16:33 am »
This is probably a mostly personal preference but I think it would be much more logical to set default sprite center to the middle of the sprite and then set the center as +/-[0, 1] where for example -1, 1 is the top left corner.

Is there a good reason not to do so or just another set of preferences?

11
Feature requests / Helper classes
« on: January 26, 2008, 11:18:05 pm »
How come SFML doesn't seem to use simple helper classes such as vectors and such (ok, i can't come up with any other but am sure there is)?

12
Python / Building python binding from SVN
« on: January 26, 2008, 10:49:51 pm »
Hi!
The svn version of the python binding doesn't compile on linux. I would guess that its due to some changes in the c++ api.

Code: [Select]
$ python setup.py build
running build
running build_py
running build_ext
building 'PySFML.sf' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I../include -I/usr/include/python2.5 -c src/Drawable.cpp -o build/temp.linux-i686-2.5/src/Drawable.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetLeft(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:37: error: ‘class sf::Drawable’ has no member named ‘SetLeft’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetTop(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:43: error: ‘class sf::Drawable’ has no member named ‘SetTop’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_SetRotationCenter(PySfDrawable*, PyObject*)’:
src/Drawable.cpp:80: error: ‘class sf::Drawable’ has no member named ‘SetRotationCenter’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_GetLeft(PySfDrawable*)’:
src/Drawable.cpp:98: error: ‘class sf::Drawable’ has no member named ‘GetLeft’
src/Drawable.cpp: In function ‘PyObject* PySfDrawable_GetTop(PySfDrawable*)’:
src/Drawable.cpp:103: error: ‘class sf::Drawable’ has no member named ‘GetTop’
error: command 'gcc' failed with exit status 1

13
Feature requests / Doxyfiles for linux
« on: January 26, 2008, 08:11:26 pm »
Wouldn't it be kind of practical to add system specific (or system-independat) Doxyfiles? (edit) To the SVN repo i mean (/edit)

Pages: [1]
anything