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

Pages: [1]
1
Graphics / VertexArray Question
« on: March 02, 2012, 06:59:21 pm »
Thank you, Laurent.

2
Graphics / VertexArray Question
« on: March 02, 2012, 06:44:53 pm »
I do have a question after all.

I'm new to graphics and OpenGL so forgive my ignorance. Say I have a VertexArray with 100 quads in it. Is it guaranteed that it will be drawn in the order 0 to 99? Is there any occasion that would make it drawn backwards or in a random order?

3
Graphics / VertexArray Question
« on: March 02, 2012, 06:15:56 pm »
I've been going through the new graphics API and I'm confused about something.

I'm trying to figure out why we can't modify the vertices in a VertexArray. I see we can read them just fine but what if we want to move the texture coordinates or transform them?

Am I just missing something or is this really not possible?

EDIT: Nevermind, I just found the answer in another thread. Sorry about that.  :oops:

4
Graphics / Graphical glicth: horizontal lines in SFML2
« on: October 31, 2011, 06:47:37 pm »
Hello everyone, this is my first post. I've been using SFML for a while now and I love it. Thanks for your hard work, Laurent.

I have this unwanted line problem also. I'm confused as to what I need to do. Using easy's advice to convert the view to integer coordinates doesn't work for me. And Haikarainen, I don't understand what you have suggested. Could you clarify please?

My view never moves. I render my game at 1280x720 and use the view to scale it up or down, depending on the resolution. Here is where I set my view:

Code: [Select]
MainView->Reset(sf::FloatRect(0, 0, 1280, 720));
MainView->SetViewport(sf::FloatRect(0.0f, 0.0f, 1.0f, 1.0f));
MainWindow->SetView(*MainView);


That never changes. I get the lines when I'm not rendering to a native 1280x720 resolution or window size. Does that mean I'm out of luck? Is there any hack I can apply? Am I doing this completely wrong and should I be using another technique instead of using the view to scale my game?

Edit: I just looked into RenderTexture. Would this be the correct way? I could render the entire scene into a texture and then scale that to the window? Would there be a performance hit for that?

Edit again: I just tried the RenderTexture. It was so easy to change over. It works perfect now. I can scale my game to any resolution without the lines showing up. I'd still like to know if I have the right idea though.

Pages: [1]