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 - andreaszdw

Pages: [1] 2
1
General / Re: universe using sf::view
« on: May 15, 2012, 10:40:29 am »
Maybe this handrawn brings light into the dark:



On no. 1 you see the universe with dimensions 10000,10000. The ship is at 5000,5000. sf::View is at 4600, 4700, with a size to screen of 800, 600. You can see on the screen completly 4600, 4700 to 5400, 5300.

Now on no. 2 you see the ship at 100, 100.  sf::View now must show the space from 9700, 9800 to 500, 400, because on no 3 you see that if the ship comes to the right end it should move around to left end and if it comes to the bottom it should move to the top, but the objects at the rest of the bottom or on the right side must be seen too.

Is this explanation better?

Best regards
Andreas

2
General / universe using sf::view
« on: May 15, 2012, 09:10:13 am »
Hello,

I have for example a universe with a size of 10000 x 10000 pixel. If my ship is at a pos of 10000, 10000 and  goes on, my ship should move to 0,0. Is it possible to use sf::View?

I think if I reset the view to 0,0 and my ship is in the center of the screen, I see only the objects at 0,0 not the rest of 10000,10000.

If someone understand my weired explanations and has an example how to implement, let me know.

Best regards
Andreas

3
Graphics / GetFullscreenModes error
« on: July 09, 2011, 01:28:40 pm »
Hello,

if I do this:

Code: [Select]
std::vector<sf::VideoMode> vmvector;
vmvector = sf::VideoMode::GetFullscreenModes();


I became an error: "Speicherzugriffsfehler", it's german and I think in english it's "segmentionfault".

Can anyone tell me, whats wrong?

4
Python / How use Git version
« on: June 14, 2011, 02:29:22 pm »
Hello,

can anyone tell me, how I can use the Git version?

Andreas

5
Python / Got the same problem
« on: June 14, 2011, 09:24:48 am »
Hello,

I have the same problem, runs fine under Linux and XP, but not
under Vista.

Can someone tell me, when SFML 2 is released?

Andreas

6
General / f*****g driver
« on: October 18, 2010, 05:48:35 pm »
Your were right, it works with the correct driver.

Thank you!

7
General / Image load
« on: October 16, 2010, 09:10:33 pm »
I tried a simple programm. I open a Renderwindow load an sound and play it. If I change the code and load an image it crashes. The path to the image is correct. If I make a wrong path I became a mistake. With the correct path I saw the window and than the crash came at the point of loading the image.

Maybe is there a dependency which my system not fullfield? Can you tell me, which libraries on my system needed? On Linux everything works well, but I'm not so experienced with windows.

Andreas

8
General / didn't start
« on: October 16, 2010, 10:08:15 am »
Some programms didn't start. On the win32 sample I see a window with an splitter screen and then a message dialog from windows came "*.exe works no more..."

It seems in every programm where a image is loaded the error come, but where a sound is loaded it is no problem like the sound sample.

Andreas

9
General / Problem at running programms!
« on: October 16, 2010, 02:08:41 am »
Hello,

i have sfml 1.6 installed on a computer using windows vista. I try to run the samples. Some samples are working: windows, ftp, sound, sound-capture. Some are not working: opengl, pong, w32

I have tried mingw and visualc 2005 version. It`s the same problem.

What`s wrong?

Andreas

10
General / [Solved]Help with sfml on linux mint
« on: May 08, 2010, 10:51:46 pm »
I think you should copy the builded libsfml* files into the /usr/lib directory. I had the same problem on Ubuntu. The Makefile copies the builded shared libraries into /usr/local/lib, but it is needed in /usr/lib.

11
Audio / Play the same sound twice
« on: September 01, 2009, 09:07:53 am »
I play a sound, this sound has a duration of 3 seconds. After playing 1 second I will play the same sound again, but I want that the first sound play to the end of 3 seconds, but the second sound starts while the first is playing. If I do this with sf::Sound.Play(), the first sound is not played to the end.

Is this possible?

12
Audio / Play the same sound twice
« on: September 01, 2009, 08:35:10 am »
I play a sound, while the sound plays, I will start it again to play. The playing sound should play on. Is this possible with one sound.?

13
General discussions / Resources sprites and tiles
« on: March 26, 2009, 12:38:33 pm »
Can somebody tell me good sources for free graphics?

Specialy I am searching tiles and sprites (tanks, bombers, infantry, etc...)

(I have searched with google, but the result wasn't good)

Andreas

14
Window / depth
« on: March 12, 2009, 09:54:34 pm »
Thanks for your help.

Andreas

15
Window / BitsPerPixel is the problem
« on: March 11, 2009, 09:59:17 pm »
I have found my problem.

If I do this:



Code: [Select]
unsigned int VideoModesCount = sf::VideoMode::GetModesCount();
   for (unsigned int i = 0; i < VideoModesCount; ++i)
   {
       sf::VideoMode Mode = sf::VideoMode::GetMode(i);
       // Mode is a valid video mode
       std::cout << "Mode " << Mode.Width << "-" << Mode.Height << "-" << Mode.BitsPerPixel << " is valid" << std::endl;
   }


I get this in the console:

Quote
Mode 1280-1024-32 is valid
Mode 1280-960-32 is valid
Mode 1152-864-32 is valid
Mode 1024-768-32 is valid
Mode 960-600-32 is valid
Mode 960-540-32 is valid
Mode 840-525-32 is valid
Mode 832-624-32 is valid
Mode 800-600-32 is valid
Mode 800-512-32 is valid
Mode 720-450-32 is valid
Mode 680-384-32 is valid
Mode 640-512-32 is valid
Mode 640-480-32 is valid
Mode 576-432-32 is valid
Mode 512-384-32 is valid
Mode 416-312-32 is valid
Mode 400-300-32 is valid
Mode 320-240-32 is valid


But my monitor knows only up to 24 BitsPerPixel.

So I change my mode to 24 BitsPerPixel and the mode is not
valid and it switches with this in your code to the nearest mode:

Code: [Select]
void Window::Create(VideoMode Mode, const std::string& Title, unsigned long WindowStyle, const WindowSettings& Params)

{

    // Check validity of video mode

    if ((WindowStyle & Style::Fullscreen) && !Mode.IsValid())

    {

        std::cerr << "The requested video mode is not available, switching to a valid mode" << std::endl;

        Mode = VideoMode::GetMode(0);

    }



    // Check validity of style

    if ((WindowStyle & Style::Close) || (WindowStyle & Style::Resize))

        WindowStyle |= Style::Titlebar;



    // Destroy the previous window implementation

    delete myWindow;



    // Activate the global context

    Context::GetGlobal().SetActive(true);



    mySettings = Params;

    Initialize(priv::WindowImpl::New(Mode, Title, WindowStyle, mySettings));

}


And this mode is on my computer 1280 - 1024 - 24.

Can I change somewhere the valid modes to 24 BitsPerPixel?

Pages: [1] 2
anything