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

Pages: [1]
1
General discussions / New graphics API ready
« on: December 12, 2011, 02:43:38 pm »
Quote from: "Laurent"
Quote
I can try this same thing using open source drivers and then I can try to install newest fglrx.

That would be really cool. Thanks for helping.
It seems to work when using open source drivers :)
Seems like the problem was with fglrx after all. (Or maybe it was with Ubuntu's default configuration of fglrx...)

This new API looks pretty flexible. I can propably do now everything I want by just using SFML API without need for custom OpenGL calls. (Yes, I have been using this library for sometime although I only now registered myself to forum)

2
General discussions / New graphics API ready
« on: December 12, 2011, 12:40:44 pm »
Quote from: "Laurent"
Quote
I run into a little bug in drawables branch: Sprites only display the first pixel of the texture scaled to fill the whole area. Everything works normally if I use master branch instead of drawables branch.

Are you sure that you cleaned/recompiled things properly? I can't reproduce this bug.
What's your graphics card, OS, drivers, ...?

Well I originally checked out the drawables branch and compiled it and installed it. This Ubuntu 11.10 (x64) didn't have any sfml installed prior that. When I run into this bug I checked out master branch to different directory and run "cmake . && make -j5 && sudo make install && sudo ldconfig" After that all worked as expected. If I go back to drawables branch directory and run "sudo make install && sudo ldconfig" the issue is back. (and gone again if I do the same on master branch directory)

My graphics card is HD 5770 and drivers are normal fglrx drivers that Ubuntu installs automatically. I can try this same thing using open source drivers and then I can try to install newest fglrx.

3
General discussions / New graphics API ready
« on: December 12, 2011, 02:52:01 am »
I run into a little bug in drawables branch: Sprites only display the first pixel of the texture scaled to fill the whole area. Everything works normally if I use master branch instead of drawables branch.

Here's complete example to reproduce the bug:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>

using namespace sf;
using namespace std;

int main(int argc, char *argv[])
{
    if(argc<2){
        cout<<"Usage: "<<argv[0]<<" image_to_display"<<endl;
        return 0;
    }

    RenderWindow wnd(VideoMode(640,480),"Sprite/Texture Bug in New Graphics API");

    Texture img;
    img.LoadFromFile(argv[1]);
    Sprite obj(img);

    while(wnd.IsOpened()){
        Event ev;
        while(wnd.PollEvent(ev)){
            if(ev.Type==Event::Closed)
                wnd.Close();
        }
        wnd.Clear();
        wnd.Draw(obj);
        wnd.Display();
    }

    return 0;
}

Pages: [1]
anything