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.


Messages - tgm

Pages: 1 2 3 [4] 5
46
General / current SVN version: samples Socket Build Problem
« on: April 11, 2008, 12:17:34 pm »
Well, got nothing to do with the sockets.. but in  the current SVN versions postprocessing isn't working anymore.
The sf::PostFX::CanUsePostFX()  returns false, altough PostFX works (mostly) quite well. If I runn the post FX sample it says: "no post FX for you dude" but if I remove the check, PostFX works.. (except for the blur... )
Im running a Ubuntu system with a Nvidia 7600 GT. I even did turn of compix etc, so its not the windowmanagers fault.

47
Feature requests / italic and bold for sf::String
« on: April 11, 2008, 11:54:53 am »
jusr read it on the roadmap -_- sry.. should had a look into the roadmap..
funny thing: I acctualy use the SVN version, but since i didnt check the new files.. :oops:  :oops:

48
Feature requests / italic and bold for sf::String
« on: April 10, 2008, 07:39:37 pm »
It would be pretty cool, if there would be the possibility of making a String bold/italic.
greetz TGM

49
Graphics / Direction of Angles
« on: April 10, 2008, 12:36:42 pm »
yes, he is^^

50
Feature requests / Plattform independet File Open / File Save dialogs
« on: March 29, 2008, 05:56:43 pm »
well.. I guess your 100% right there ;) sry..

51
Feature requests / Plattform independet File Open / File Save dialogs
« on: March 28, 2008, 06:27:22 pm »
As the titel says, I would love to have platform independent file open / save dialogs.. Any chance??

52
General discussions / SFML but 3d
« on: March 20, 2008, 03:51:13 pm »
you should have a look at Irrlicht... Its way less complex but ogre  (tbh its less powerfull, too) But its capable of loading a whole bunch of Fileformats, supports shaders and all the stuff... + realy easy to use ;)

53
Graphics / ImageManager
« on: March 17, 2008, 02:29:07 pm »
did you test, on which delete it crashes??

I did something very much the same in the "sone suggestions" post (though its totaly useless, since one can only import it to a singel file.. but the principle is the same^^) and make you imageManager a singleton (via static members..)

54
SFML projects / War for Water - RTS Game
« on: March 11, 2008, 08:48:31 pm »
cool good luck ;)

55
Feature requests / some suggestions
« on: March 10, 2008, 04:40:51 pm »
adding a vector class is a great thing(I wouldn't work with SFML if it hasn't got one) but there must be the way of using multible parameters..
(at least for SetPosition etc) maybe not for Shape::Rec(*4floats here*other stuff)..

56
SFML projects / Particles!
« on: March 09, 2008, 04:12:55 pm »
well, thats what I thought^^ just wondering;) cause I was thinking about doing some particles for my game and was not sure  wether it would be fast enought to render a few hundret sprites.. (In fact 3000 are no problem at hmm 30-60 FPS on my old machine with compiz desktop->even slower^^)

57
Feature requests / some suggestions
« on: March 09, 2008, 04:09:24 pm »
well, I prefer to write SetPosition(10.0f,10.f) to write SetPosition(sf::Vec2F(10.0f,10.0f)) that simple.. and is way faster passing two flaots but a struct with two floats to a function.
floats will be pushed on the stack, but for structs only a pointer is pushed so one derefering is needed (though this a very minor thingy..) well, mostly cause it looks better and its more easy  to write  :roll:  :oops:

58
SFML projects / Particles!
« on: March 08, 2008, 10:46:12 pm »
do you use direct openGL calls for rendering??

59
Feature requests / some suggestions
« on: March 08, 2008, 05:27:17 pm »
some other stuff:
Make GetWidth etc available again... the user should be able to use vectors, but not forced (for example working with a physics engine suxx if one always have to convert different vector types)

Add normalize() dotProduct() crossProduct() getLength() getLengthSQ() and maybe getAngle (vec1,vec2) //gets the angle between two vectors
to the vector class

60
Feature requests / some suggestions
« on: March 08, 2008, 04:29:26 pm »
Ok.. implemented my own simple imageManager..
Code: [Select]

#include <SFML/Graphics.hpp>

#include <map>
#include <string>
#include <iostream>
using namespace sf;
using namespace std;
static map<string, Image> images;

Image * RequestImage(string name)
{
  map<string, Image>::iterator iter = images.find(name);
  if( iter != images.end() )
  {
  return &(iter->second);
  }
  else
  {
  Image tmp;
  images[name]=tmp;
  if(images[name].LoadFromFile("data/gfx/"+name))
  {
  return &images[name];
  }
  else
  {
  return NULL;
  }
  }
}

void DropImage(string name)
{
images.erase(name);
}




usage:
#include "nameImageManagerFile.hpp"

sf::Image *gun=RequestImage("gun.png"); //if already loaded, will return       pointer to the old instance
DropImage("gun.png"); //of not used anymore
All grafics have to stay in data/gfx/ (but you cann simply change the path^^)
greetz TGM

Pages: 1 2 3 [4] 5