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

Pages: [1]
1
General / Debugging libs on vc++ not working
« on: May 26, 2012, 04:01:31 am »
Hello.

Ive recently changed from C::B to VC++ but im having a problem.

When i try to build my program in the debug configuration, i cant use the static debug libs.
It gives me a bunch of undefined declarations and i get a message saying that the program could not start because the project is not correctly configured.

This is strange because i can use the static lib "-s" and the debugging lib "-d" normaly and without errors... I can even use the "normal" static lib to build in the debug configuration.

What am i doing wrong here?

SFML version: 1.6, and VC++ 2010

2
Graphics / How does the Draw() work?
« on: November 09, 2011, 10:43:28 pm »
Hi

I wanted to know in what circumstances does Draw() actualy draws something on screen.

For example, i made a test with 600 sprites (all with the same image) and when i drawned them all in one location:

Code: [Select]
for (unsigned int i = 0; i < 600; ++i) ship[i].SetPosition(100, 100);

I had better framerate (arround 700 fps) than when i tried to draw them in diferent locations:

Code: [Select]
for (unsigned int i = 0; i < 600; ++i) ship[i].SetPosition(i, 100);

Does that mean that Draw() skips some sprites when they are in the same positions?


And also, if i have a sprite that is offscreen and i call Draw() on it will the Draw() try to draw the sprite or will it recognize that the sprite is not inside the window and skip the drawing process??
Should i then use x and y checks before i try to draw something to see if it actualy is on screen to avoid any unnecessary processing?

thanks for the attention[/quote]

3
Window / V-Sync not working properly
« on: July 06, 2011, 06:25:25 pm »
Hi

I noticed that v-sync doesnt work properly on my monitor, i have an acer 1080 P Btw.

When i turn on vsync i can see that most of the screen tearing is gone, but sometimes i can see one line of screen tearing going down slowly, its hard to explain realy :\ I dont know if it is from my monitor or from the resolution, but it is really anoying.

Does anyone notice the same problem and/or have a solution??

4
Window / inconsistency on fullscreen stretching
« on: June 13, 2011, 01:55:19 am »
Hi

I want my windows to stretch when i put them on full screen as oposed to just resizing themselves to the size of the screen ( I want them to stay at the same resolution ), but i cant seem to be able to do this, it seems a little random if the window will strech or not, for example:

I had a piece of code where i had
App.Create( sf::VideoMode( 800, 600 ), "Test", sf::Style::Fullscreen );

and this didnt stretched the window, the window just increased its resolution to match the screens resolution. Then i thought "maybe its because of the lack of antialiasing... doesnt make much sence but lets give it a try", and so i tried:
App.Create( sf::VideoMode( 800, 600 ), "Test", sf::Style::Fullscreen, sf::WindowSettings( 24, 8, 4 ) );

and this actualy made the window stretch, i thought that was it, but then i removed that little bit again, to make sure that that was realy it, so i got back at:
App.Create( sf::VideoMode( 800, 600 ), "Test", sf::Style::Fullscreen );

But this time it stretched too. And then i tried the:
App.Create( sf::VideoMode( 800, 600 ), "Test", sf::Style::Fullscreen, sf::WindowSettings( 24, 8, 4 ) );

on a completly diferent program and i didnt saw any changes.


Sory if this text is a mess but really, this is really confusing me :\ how can i make the window stretch ( or not ) on fullscreen??

Btw, my monitor has 1920x1080 resolution.

5
Window / Changing gamma, brightness and contrast
« on: January 12, 2011, 12:56:37 pm »
Hi.

I would like to know if there is any way to change the gamma, brightness and contrast of the window using SFML.

tks in advance.

6
Audio / Problem with audio lib
« on: December 26, 2010, 07:22:41 pm »
Hi.

I have a problem when i try to link the audio lib (-lsfml-audio-s) with code blocks, each time i try to compile the code, code blocks gives me this menssage: "It seems that this project has not been built yet. Do you want to build it now?" and doesnt create the .exe file at all.

I have -lsfml-system-s linked before the audio lib so i think dependencies are not a problem.

What am i doing wrong??

7
General / Invalid executables, not loading the DLLs properly
« on: December 02, 2010, 06:01:36 pm »
Hi

When i try to compile any program that uses the SFML libraries i only get an empty cmd window and i seem to be able to display nothing in it.
When i try to compile the same program with static libs it works fine.

My guess is that the program is not loading the dlls as it should, so what am i doing wrong???

Im using mingw with the following linker options:
-lsfml-graphics
-lsfml-window
-lsfml-system

8
General / CanĀ“t run sfml games on a certain machine
« on: November 26, 2010, 01:24:43 am »
hi
so when I open a sfml app it launches only the cmd prompt and doesn't do anything besides that, doesn't seem to load anything.

the machine in question
windows 7 64bits, recently installed
CPU amd atlhon 64 x2
Graphic card ATI radeon HD 3600

video drivers up to date

9
Graphics / Graphical problem with windows XP
« on: November 15, 2010, 11:24:54 am »
Hi

When i try to run my program in windows XP there is a problem, the graphics are not drawn correctly:



here are the computer specifications:

graphic card: intel 82845g
SO: windows XP professional service pack 2
CPU: pentium 4, Intel
504mbs ram

I already tested it with other OS and it works fine, but i havent got the chance to test it with diferent pcs that have windows xp so im guessing that it might be a graphics card problem.

help pls.
[/img]

10
General / Problem with SFML window not showing
« on: November 06, 2010, 11:45:36 pm »
Hi

I have made a program using SFML and i tested with many computers and it worked fine, but there was one computer in which it didnt worked.

i then made a simple test program to try again with something simple, heres the program:

Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;

string test;

int main()
{
    sf::RenderWindow window(sf::VideoMode(1024, 768, 32), "Project: Nova 6");
    cout <<"Its done!";

    while(1)
    {
        window.Clear(sf::Color(0, 0, 0));

        window.Display();
    }
}


as i said before, it works with the other computers just fine, but when i get to this computer the program runs, the conssole apears but the game window cant be selected. the game window is created and it exists, but i can only see it on the taskbar.

The OS is windows 7 64 bits, i first tought this could be the problem, but then i tested with other machines with the same OS and it worked fine.

The dlls inside the executable folder are:
sfml-window.dll
sfml-system.dll
sfml-graphics.dll
sfml-audio.dll
openal32.dll
libstdc++-6.dll
libgcc_s_dw2-1.dll

Someone pls help me here, what am i doing wrong??

Pages: [1]
anything