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

Pages: [1]
1
General / Warning Messages
« on: October 04, 2013, 10:04:28 pm »
Hello,
why I got this warning messages, how I can fix them?
warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Color.cpp.obj)' or at 'C:\Users\Michael\documents\visual studio 2010\Projects\SFML_Games\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info        C:\Users\Michael\documents\visual studio 2010\Projects\SFML_Games\Plane_Mover\sfml-graphics-s-d.lib(Color.cpp.obj)
 
I got 34 more from them...

2
General / Re: GetWorldPosition dont work
« on: September 29, 2013, 09:56:07 am »
Oh....
I have found my mistake myself....
I have made the return type from getWorldTransform as a constant referenz.

3
General / Re: GetWorldPosition dont work
« on: September 29, 2013, 09:50:11 am »
Here http://www.file-upload.net/download-8124509/getWorldPosition.7z.html.
I have made it so small I can.
(I have nether really worked with the debugger, know you a good tutorial?)

4
General / Re: GetWorldPosition dont work
« on: September 28, 2013, 11:55:48 pm »
He for exmaple :
http://s7.directupload.net/images/130928/kihrtrfs.png
The red dot is the origin from the first Sprite Node.
Now I want the coordinates from the 3. SpriteNode realtive to the origin(red dot).
The problem is that the 3. SpriteNode have the absolut position off x:600.
But If I use getWorldPosition I got for x and y these faulty float value. 

5
General / Re: GetWorldPosition dont work
« on: September 28, 2013, 11:34:50 pm »
Teh problem is, that are not right coordinates.
I want check for absolut x position.

6
General / GetWorldPosition dont work
« on: September 28, 2013, 10:23:58 pm »
Hello, this question are only for  reader from "SFML Game Development Book".
I have these methods:
        sf::Vector2f getWorldPosition()
        {
                return getWorldTransform() * sf::Vector2f();
        }
        sf::Transform getWorldTransform()
        {
                sf::Transform transform = sf::Transform::Identity;

                for (const SceneNode* node = this; node != nullptr; node = node->mParent)
                {
                        transform = node->getTransform() * transform;
                }

                return transform;
        }
 
If I use now  getWorldPosition I get a value for x how 2.5645e-034.
What is wrong?

7
General / SFML Scene Graph crazy problem
« on: September 26, 2013, 08:10:53 pm »
Hello.
I read the SFML Game development book.
I am currently at the Scene Graph, but I am have a problem.
If I attach a SpriteNode to the SceneGraph all works perfect.
If I add a SpriteNode to the SpriteNode before it works perfect, too(The second SpriteNode is relative to the first SpriteNode).
But if I attach now again a SpriteNode to the first SpriteNode this SpriteNode is relative to the second SpriteNode.
Know anyone what I do wrong ?
If someone need the code please write it, maybe you know the mistake without any code from me.
http://s1.directupload.net/images/130926/4edkcoro.png

8
Graphics / Time Step understanding
« on: September 14, 2013, 09:10:10 am »
Hello.
I read the sfml game development book.
I amcurrently at the time step chapter.


void run()
{
    renderWindow = new RenderWindow(sf::VideoMode(800, 600), "Test", sf::Style::Default);
    //  renderWindow.setFramerateLimit(60);             //
    //  renderWindow.setVerticalSyncEnabled(true);   //
    sf::Clock deltaTime;

    while(renderWindow.isOpen())
    {
        sf::Event events;
        while(renderWindow.pollEvent(events))
        {
            handleEvents(events);
        }
        update(deltaTime.restart());
        render(renderWindow);
    }

}

 

What going different, if I set the frame rate Limit oder/and ther cSynchr ?
Whats the best Time Step method ?

Pages: [1]