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

Pages: [1]
1
Graphics / Ray casting
« on: August 23, 2011, 07:33:44 pm »
Thank you very much, I'll have a look.

2
Graphics / Ray casting
« on: August 23, 2011, 11:22:16 am »
Anyone who knows of an example of ray casting to achieve the effect similar to Wolfenstein using SFML?

I just need to understand the concept on how to manipulate sprites to give the sense of 3d in sfml.

Any other tutorials I should know about?

Thanks.

3
Graphics / sf::Shape::Line offset problem
« on: July 31, 2011, 01:30:10 pm »
Hi.

I have a "problem" with sf::Shape::Line.

If I create two lines:

Code: [Select]

sf::Shape line1 = sf::Shape::Line(1, 1, 10, 1, 1, sf::Color::Red);
sf::Shape line2 = sf::Shape::Line(1, 1, 1, 10, 1, sf::Color::Blue);


then the second line ('line2', that goes vertically) is rendered as going from x position 0 rather than x position 1. I.e. The two lines don't overlap at position (1,1) as I would've expected.

Is this a normal thing? Is it correct? Is there something wrong with me or sfml? :)

I can take this deviation into account when drawing up stuff but right now it is just annoying.

Pages: [1]
anything