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

Pages: [1]
1
DotNet / DLL issues again
« on: July 01, 2014, 09:50:17 pm »
Hi,
apparently many people had this issue but all the help Google could provide me with did not solve it for me:
I get a System.DllNotFoundException for libcsfml-graphics.so.2 when trying to create a RenderWindow for example.
I have the Assembly References set up correctly and the CSFML files are located in my /usr/ directory. I set up the file sfmlnet-graphics-2.dll.config like so:
<configuration>
   <dllmap dll="csfml-graphics-2" target="libcsfml-graphics.so.2" os="linux"/>
</configuration>

I have not found any more advice for this problem since apparently it worked for everyone else like this.

2
General / Tutorial Segmentation Fault
« on: September 01, 2013, 11:00:27 pm »
Hi,
I compiled the tutorial code (http://www.sfml-dev.org/tutorials/2.1/start-linux.php) on my virtual Ubuntu 12.04 32-bit machine.
However, the first line
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
causes a Segmentation Fault and the process terminates.

I am using the 32-bit version for Linux of SFML 2.1.

#include <SFML/Graphics.hpp>

int main()
{
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}

3
General / Installing SFML 2.0 for VS 2010
« on: September 28, 2011, 06:14:42 pm »
Hi,
last time I tried installing SFML 2 I already gave up at CMake so I am proud that I got this far  :lol:
I "cmake"d it and used the MSVS-Solution file. Now I have a lib/MinSizeRel folder which includes 15 files.
I also compiled the examples and now wanted to try one so I copied libsnd and the 5 SFML-DLLs to it. Problem is, that it gives me a 0xc000007b error when I try to start the exe.
 :(

4
General / SFML does not show windows on x64
« on: February 06, 2011, 12:51:09 am »
Hi,
I started using Windows 7 64 bit some weeks ago and since then SFML projects won't work. Not only my own projects but also those which I downloaded.
The console windows shows up but after that nothing happens anymore.

5
Graphics / Image Destructor -> Crash
« on: January 13, 2011, 10:26:15 pm »
Hi,
I'm using Code::Blocks. You know, you can choose between "Debug" and "Release" when compiling a project and if you choose the first, there will be a console window for debugging purposes.
When I close my project the normal way (with exit or ending the main() method) everything works fine.
But when I close the debugging console of Code::Blocks, Windows gives me an error. The Debugger says the following:
#0 5F0D530E   glDeleteTextures() (C:\WINDOWS\system32\opengl32.dll:??)
#1 6871CF5C   sf::Image::~Image() (C:\WINDOWS\system32\sfml-graphics.dll:??)
#2 00404357   __tcf_2() (D:\Programme\CodeBlocks\Projects\Shooter\spriteset.cpp:6)
#3 77C09E24   msvcrt!_initterm() (C:\WINDOWS\system32\msvcrt.dll:??)
#4 77C09EC5   msvcrt!_cexit() (C:\WINDOWS\system32\msvcrt.dll:??)
#5 00000000   0x00000000 in ??() (??:??)

I'm using SFML 1.6.

6
Graphics / PostFX for
« on: December 19, 2010, 05:06:52 pm »
Hi,
I'm using SFML 1.6.
Is there a way to use a "for" loop inside the shader file?

7
Feature requests / 1.6 Shaders
« on: August 23, 2010, 04:19:18 pm »
Hi,
this probably has been requested before but I didn't found something while flipping through this subforum.

In SFML 1.6 you can use App.Draw(Shader) also corresponding to a single Sprite/Shape/String. But as I read once in another topic, in 2.0 you can only use App.Draw(Drawable, Shader). So applying a Shader to the full screen or two or more shaders at once would be a big problem. You would have to create a new image each time which would cause in lag.

So my request (well, more a question) is: Is it possible to bring this feature back?

8
Graphics / Sprite is drawn as a rect
« on: August 12, 2010, 01:56:12 pm »
Hi,
I have a problem with SFML 1.6.
I have this image:


Which is loaded and used with a Sprite. But for some reason, the image is not displayed as it is but as a white rect:
http://img64.imageshack.us/img64/7966/screenxe.png

My class:
Code: [Select]
#include "state_main_menu.hpp"

State_Main_Menu::Button::Button() {}

State_Main_Menu::Button::Button(int cx, int cy, std::string filename) :
    center_x(cx),
    center_y(cy),
    image_filename(filename)
{
    image.LoadFromFile(image_filename);
    sprite.SetImage(image);
}

State_Main_Menu::Button::~Button() {}

std::string State_Main_Menu::Button::get_image_filename()
{
    return image_filename;
}

void State_Main_Menu::Button::set_image_filename(std::string new_filename)
{
    image_filename = new_filename;
    image.LoadFromFile(image_filename);
}

bool State_Main_Menu::Button::is_mouse_over_button(int x, int y)
{
    sf::Vector2f pos(sprite.GetPosition());
    sf::Color color(sprite.GetPixel(x-pos.x, y-pos.y));
    return (color.a > 0);
}

int State_Main_Menu::Button::get_x()
{
    return (center_x - image.GetWidth() / 2);
}

int State_Main_Menu::Button::get_y()
{
    return (center_y - image.GetHeight() / 2);
}

void State_Main_Menu::Button::draw_update(sf::RenderWindow* window)
{
    sprite.SetX(get_x());
    sprite.SetY(get_y());
    window->Draw(sprite);
}

9
Graphics / PostFX does not work
« on: July 07, 2010, 05:30:28 pm »
Hi,
I've got a problem when using the GLSL feature.
I have created a test project which shows a random number of red semi-transparent circles and on top of that a Sprite.
http://img580.imageshack.us/img580/8747/screenbw.png

But now I tried to create and use a shader (grayscale) but it doesn't work.
My code: http://wurstinator.pastebin.com/zKk6xaNa (I know it's messy but it is just a test project :)
My shader: http://wurstinator.pastebin.com/b3pWADCd

When I apply the shader the circles are still a bit red:
http://img696.imageshack.us/img696/7233/screenkopie.png

Hope someone can help =(

/edit: I'm using version 1.6

/edit 2: Solved it, seems like the alpha value has to be 1.

Pages: [1]
anything