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

Pages: 1 2 3 [4]
46
SFML projects / SFML Light System - Let There Be Light
« on: February 14, 2012, 02:39:15 pm »
lolz123, sorry for disturbing, any news? :)

47
SFML projects / SFML Light System - Let There Be Light
« on: February 10, 2012, 08:59:42 am »
Okay, I'm waiting for you ;)

48
SFML projects / SFML Light System - Let There Be Light
« on: February 10, 2012, 02:05:10 am »
Great answer, thanks :) Maybe you can tell the near time of new release?

Now I'm rewriting the most part of you code with new structure and optimizaton, maybe, I can wait a few time for your updates and make my own after that.

49
SFML projects / SFML Light System - Let There Be Light
« on: February 10, 2012, 01:08:38 am »
lolz123, It's great ;) Waiting for it.

Btw, maybe it would be better to move directional light into separate structure? You are restict the number of triangles from light source when we set 'spreadAngle' but what if I want to move/rotate the source of directional light?

50
SFML projects / SFML Light System - Let There Be Light
« on: February 09, 2012, 01:40:33 am »
Hello
lolz123
Great job! I've made it crossplatform. Everyone can download it from:
http://dl.dropbox.com/u/932520/Source.zip

There is data + a few changes in sources + Makefile. Worked fine for me in ArchLinux with the latest sfml build. I hope, the author not against this :)

btw, why do you write: `it->_Ptr->_Myval`, it's not crossplatform and very bad, why not to use `(*it)->...`?

And you've tried to access 'aabb' member from `QuadTreeOccupant` and it's protected? I replaced it with public to compile the code.

I like it, thanks!

51
General discussions / New graphics API ready
« on: February 01, 2012, 12:48:12 am »
Laurent,

Code: [Select]
void DrawLine(sf::Vector2f a, sf::Vector2f b)
{
    sf::Vertex line[2] = {a, b};
    window.Draw(line, 2, sf::Lines);
}


How can I specify the line color this way?

52
Graphics / Line shape
« on: January 30, 2012, 10:41:54 pm »
Okay, sorry. I've tried to search it at forum but failed :) At bug tracker there is an answer, thanks.

53
Graphics / Line shape
« on: January 30, 2012, 10:11:54 pm »
Hello, after new upgrade in sfml api I founded that sf::Shape::Line, for example was removed. So now the only way to do is to create polygon with 2 points?

54
Window / OIS as an input system
« on: November 07, 2011, 11:57:00 pm »
Hello, I have to include some of input system into sfml because It's not enough to catch them from main cycle but I need in callbacks for events. So I decided to use OIS in my app. Here is the code:

Code: [Select]
   OIS::ParamList params;
    std::string window = boost::lexical_cast<std::string>(mWindow->GetSystemHandle());
    // Logging of window variable shows 6-digits number

    params.insert(std::make_pair(std::string("WINDOW"), window));

    mInputSystem = OIS::InputManager::createInputSystem(params);


mWindow is pointer to the sf::RenderWindow. When running app I get:

Quote
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  2 (X_ChangeWindowAttributes)
  Serial number of failed request:  7
  Current serial number in output stream:  9


What's wrong?

55
Graphics / Antialiasing le broken?
« on: April 25, 2011, 12:44:37 pm »
Okay, latest sfml (from git), latest proprietary nvidia drivers (from testing repo in arch)
Quote
Antialiasing level: 0


And my glxinfo: http://pastebin.com/bBKQYv0w

56
General / How to catch mouse
« on: August 24, 2010, 09:10:52 am »
Hello, by default, mouse isn't catched by application, so I'm able to move cursor out the window area. How can I bind/catch it for my application?

57
General / Mouse press event
« on: August 17, 2010, 10:37:41 am »
Hello, I'm writing Application which uses SFML as input system. I use it with Ogre3d  engine. The part of creating sfml-window:
Code: [Select]
size_t mWindowHandle;
ogreWindow->getCustomAttribute("WINDOW", &mWindowHandle);
boost::shared_ptr<sf::Window> = mInputWindow = boost::shared_ptr<sf::Window>( new sf::Window(mWindowHandle) );


And in global update cycle:
Code: [Select]
sf::Event localEvent;

while(mInputWindow->GetEvent(localEvent))
{
     using namespace Engine::Events;
     sf::Event::EventType type = localEvent.Type;

     if (type == sf::Event::MouseButtonPressed) { cout << "Mouse bbutton pressed!"; }
     else if (type == sf::Event::MouseButtonReleased) { cout << "Mouse button released!"; }
}


The text never writes to the console. All another events work (I tested key events). Also I could work with input handle mInputWindow->GetInput(). Using it I can show the cursor position, show/hide it, etc. All this stuff works.

I tried to do something like (in global cycle too):        
Code: [Select]
if (mInputWindow->GetInput().IsMouseButtonDown(sf::Mouse::Left))
{
   cout << "Left mouse button is pressed!";
}

Thid doesn't work too.
What could it be?

58
Window / Cursor manipulation
« on: July 11, 2010, 07:46:21 pm »
Hello, I'm using SFML with Ogre. I'm taking the handle like this:
Code: [Select]
size_t handle;
OgreWindow->getCustomAttribute("WINDOW", &handle);
sf::Window winHandle;
winHandle.Create(handle);

Now I need to hide cursor and move it to the center of the window:
Code: [Select]
winHandle.SetCursorPosition(GetWidth()/2, GetHeight()/2);
winHandle.ShowMouseCursor(false);

But nothing happens. Native SFML events work fine. What's wrong is there?

Pages: 1 2 3 [4]
anything