Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML Scene Graph crazy problem  (Read 1811 times)

0 Members and 1 Guest are viewing this topic.

DuffCola

  • Newbie
  • *
  • Posts: 8
    • View Profile
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
« Last Edit: September 26, 2013, 08:16:18 pm by DuffCola »

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: SFML Scene Graph crazy problem
« Reply #1 on: September 26, 2013, 08:20:34 pm »
Yeah, we're going to have to see code.  We can't even tell from that screenshot if anything's actually wrong because we can't see what coordinates you're actually giving all the objects (the ones on the picture don't count).

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: SFML Scene Graph crazy problem
« Reply #2 on: September 27, 2013, 02:52:33 pm »
as far as i know, there is no scenegraph in SFML. so atleast you need to show how you coded it...
Visit my game site (and hopefully help funding it? )
Website | IndieDB

Lo-X

  • Hero Member
  • *****
  • Posts: 618
    • View Profile
    • My personal website, with CV, portfolio and projects
Re: SFML Scene Graph crazy problem
« Reply #3 on: September 27, 2013, 03:26:30 pm »
as far as i know, there is no scenegraph in SFML. so atleast you need to show how you coded it...

he's speaking about the SceneGraph in SFML Development Book. But indeed we need some minima code to help out.

 

anything