Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actualfip

Posted 10 December 2012 - 12:39 PM

Okay i can say that i forgot to disable the GL_DEPTH_TEST and enable it at the end
[source lang="java"]glEnable(GL_BLEND)glDisable(GL_DEPTH_TEST);(draw stuff)glEnable(GL_DEPTH_TEST);glDisable(GL_BLEND);[/source]

I have ordered the drawing of the walls, first the 2 walls from the back and at last the 2 walls from the front, and apparently it works.....
[attachment=12717:fps 26 front.jpg]

... if it wasnt by the fact that i can rotate around Y axis and this is what happens:
[attachment=12716:fps 25 rotation problem.jpg]

now my back walls when i rotate around vertical Y axis the grass appears because it is rendered AFTER the back walls.


1. - What can i do to solve this problem? I can't find the correct draw order.
2. - If i dont disable GL_DEPTH_TESTING i get the correct behaviour but i get 9 fps!!!!
3. - I dont have anymore 9 fps but 25fps, why is this if i had at the beginning without the walls 55 fps? Why such difference in performance?

#2fip

Posted 10 December 2012 - 12:39 PM

Okay i can say that i forgot to disable the GL_DEPTH_TEST and enable it at the end
[source lang="java"]glEnable(GL_BLEND)glDisable(GL_DEPTH_TEST);(draw stuff)glEnable(GL_DEPTH_TEST);glDisable(GL_BLEND);[/source]

I have ordered the drawing of the walls, first the 2 walls from the back and at last the 2 walls from the front, and apparently it works.....
[attachment=12717:fps 26 front.jpg]

... if it wasnt by the fact that i can rotate around Y axis and this is what happens:
[attachment=12716:fps 25 rotation problem.jpg]

now my back walls when i rotate around vertical Y axis the grass appears because it is rendered AFTER the back walls.


1. - What can i do to solve this problem? I can't find the correct draw order.
2.- I dont have anymore 9 fps but 25fps, why is this if i had at the beginning without the walls 55 fps? Why such difference in performance?

#1fip

Posted 10 December 2012 - 12:28 PM

Okay i can say that i forgot to disable the GL_DEPTH_TEST and enable it at the end
[source lang="java"]glEnable(GL_BLEND)glDisable(GL_DEPTH_TEST);(draw stuff)glEnable(GL_DEPTH_TEST);glDisable(GL_BLEND);[/source]

I have ordered the drawing of the walls, first the 2 walls from the back and at last the 2 walls from the front, and apparently it works.....
[attachment=12717:fps 26 front.jpg]

... if it wasnt by the fact that i can rotate around Y axis and this is what happens:
[attachment=12716:fps 25 rotation problem.jpg]

now my back walls when i rotate around vertical Y axis the grass appears because it is rendered AFTER the back walls.


1. - What can i do to solve this problem?
2.- I dont have anymore 9 fps but 25fps, why is this if i had at the beginning without the walls 55 fps? Why such difference in performance?

PARTNERS