Author Topic: [FIXED]About the problem is called 'z-fighting' !  (Read 3521 times)

james876

  • Guest
[FIXED]About the problem is called 'z-fighting' !
« on: 8 February 2011, 08:55:35 »
I tested svn1715, found a bug: When entering custom game option, the game screen into the dark, can only hear the sound.
 Then the game freeze
« Last Edit: 10 March 2011, 07:34:42 by ultifd »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: BugReport:Svn-1715
« Reply #1 on: 8 February 2011, 10:05:19 »
Quote from: Same buddy on IRC
<gonana> hi
<gonana> I test 1715
<gonana> I tested svn1715, found a bug: When entering custom game option, the game screen into the dark, can only hear the sound.
<gonana> Then the game freeze
<gonana> hello
<gonana> hello
<gonana> hi
<gonana> Who tested the svn-1715
<gonana> hi tomreyn
<gonana> are you test it?
<tomreyn> gonana: hi
<tomreyn> 1715 is pretty old
<tomreyn> oh actually it's not, i mixed up
<tomreyn> but it's a development version.
<tomreyn> and as we have told you many times before, please don't rush it when it comes to bugs in that version.
<gonana> ok,thank you
<gonana> Can you also find this problem?
<gonana> Maybe I was too anxious to test the development version, because it fixes an old bug: fixed models that flicker when intersecting with other polygons (also known as z-fighting)
<gonana> Thank you fix this bug, thank you! (although the existence of the bug as svn1715 so I can not test it)
<gonana> goodbye, team!
<gonana> See you tomorrow!
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: BugReport:Svn-1715
« Reply #2 on: 8 February 2011, 13:17:07 »
I think switching off map preview will fix it for the moment ....
I think this will be fixed soon ( must be something windows specific )
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

james876

  • Guest
BUg report: svn-1723
« Reply #3 on: 9 February 2011, 03:15:19 »
I tested the svn-1723, found that the bug is still there: flashing intersection polygon
 This bug occurs when a battle is over, I found the shadow of the mountain and the mountain starts to blink.

I play the game I describe the process:
 I chose the faction is magic, my friend selected faction is tech,, AI factions are selected
 Norsemen, Tileset I chose: Forest.

 
« Last Edit: 9 February 2011, 03:17:21 by james876 »

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: BUg report: svn-1723
« Reply #4 on: 9 February 2011, 06:04:48 »
Yes, the problem is called 'z-fighting' and we are working on fixing it.

Thanks

james876

  • Guest
Re: BUg report: svn-1723
« Reply #5 on: 13 February 2011, 02:03:50 »
I and my friends tested SVN - 1739, but the problem still persists, at what time to resolve it? Thank you,

james876

  • Guest
About the problem is called 'z-fighting' !
« Reply #6 on: 13 February 2011, 09:11:52 »
opengl shadow map shadow flicker caused by the mountain model of the problem, I try to fix this bug, I think we should use a technology, so that it can be an effective solution to this problem: Open the depth buffer
 Deposit, enable smooth shading
opengl shadow map shadow flicker caused by the mountain model of the problem, I try to fix this bug, I think we should use a technology, so that it can be an effective solution to this problem: Open the depth buffer
 Deposit, enable smooth shading
 This is my advice and opinions, I created a simple model, and then use this technique, found that the problem can be solved, thank you! I think the game is still using the shadow mapping technique that caused the problems, the graphics cache Still needs to be strengthened.

BTW: Practical solution to the problem (About Shadow map)
Most games use the way is to verify preset so-called "light"and there are no obstacles between the target, and if so, put the black of the barrier after the image map on the target.

 Therefore, the map moves the shadow is actually a texture, and only one color ..... although it is a real-time operations, and posted on the target

 When the shadow map size is too small, or like the leaves small and distant objects with the target distance will lead to shadow flicker, interlacing, serrate.

 Shadow map quality and the resolution of shadow map size has a great relationship. general sampling accuracy at least 1024 * 1024 to eliminate the jagged shadows, staggered,

« Last Edit: 13 February 2011, 09:17:38 by james876 »

james876

  • Guest
Strange cause of the problem
« Reply #7 on: 15 February 2011, 07:30:07 »
I did a lot of testing, found that not the problem(problem is called 'z-fighting' !
), but in the end of the game, the graphics cache has not been fully released, so the problem will occur, thank you!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: About the problem is called 'z-fighting' !
« Reply #8 on: 15 February 2011, 10:13:25 »
Please please show us code snippets and line numbers here where you think something is not released!
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #9 on: 17 February 2011, 11:19:06 »
hi, titi! I have almost completely fixes this bug,
 I used to race all the maps did not find the problem, but there is a map of the problem still occurs, it is weird, I was thinking of other ways to fix this bug. please be patient.

Edit by Omega: OT Removed.
« Last Edit: 19 February 2011, 04:30:58 by Omega »

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: About the problem is called 'z-fighting' !
« Reply #10 on: 19 February 2011, 04:32:31 »
All off-topic in this thread has been terminated. Play nice kiddies.

Also, for the record, please do not use multiple dashes to make a line. Use the [hr] bbcode that's made specifically for that. Multiple dashes just force a scrollbar if the page isn't long enough, etc;
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #11 on: 27 February 2011, 13:06:32 »
Let's solve this people feel very angry bug! I conducted 50 tests, found an effective way to solve this problem, this method is the use of the distance between the camera lens to solve, and I pulled away from the lens Far, no flicker, and I pulled the lens very close, very slight flicker.
 I thought of a opengl graphics functions, it can help me solve this problem, thank you!

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #12 on: 1 March 2011, 09:24:32 »
I have completely solved the problem, you can download my compiled executable code I'm using svn-1781.
 Great titi, I will tell you the method to remove this bug, thank you!  :P :O :O ;D ;D :D :D

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: About the problem is called 'z-fighting' !
« Reply #13 on: 1 March 2011, 09:47:00 »
Can you provide a source-code diff please?

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #14 on: 1 March 2011, 10:16:45 »
Update: SVN-1792:
Download: http://www.gamefront.com/files/20058754/glest_game_rar
Please download!
« Last Edit: 3 March 2011, 03:04:58 by james876 »

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: About the problem is called 'z-fighting' !
« Reply #15 on: 1 March 2011, 11:12:08 »
Please create a patch, a compiled binary does not help anyone...



make sure all changed files are checked, name the patch something like 'zfighting_fix.patch' and upload it, so we can see what you actually did.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #16 on: 1 March 2011, 11:20:49 »
Thank you for upload fix complement the way!
 Titi I am waiting for test results, and I wish him the test results, thank you!
« Last Edit: 1 March 2011, 11:29:13 by james876 »

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: About the problem is called 'z-fighting' !
« Reply #17 on: 1 March 2011, 11:26:51 »
But all this only after waiting for the great titi test and found no problems with flickering of the screen.

Titi is not going to test your windows binary  ::)

If you want the problem fixed in SVN, and you believe you have fixed it, upload a patch.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #18 on: 1 March 2011, 11:36:07 »
No, titi certainly test my binaries!
I will wait, I need titi answer, thank you for your help!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: About the problem is called 'z-fighting' !
« Reply #19 on: 1 March 2011, 12:27:42 »
Looks like it works!  :D Please provide a patch!
Windows binaries are hard to test for me! I have to test them at work, because I have no windows at home! :-/
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

will

  • Golem
  • ******
  • Posts: 783
    • View Profile
Re: About the problem is called 'z-fighting' !
« Reply #20 on: 1 March 2011, 12:51:07 »
Looks like it works!  :D

aghast!  I trust you didn't actually run some random binary that was for download somewhere on the internet?

james876

  • Guest
Re: About the problem is called 'z-fighting' !
« Reply #21 on: 1 March 2011, 12:57:11 »
@will:Can you download the test? what operating system you use? I use win7 32bit!

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: About the problem is called 'z-fighting' !
« Reply #22 on: 1 March 2011, 13:39:01 »
@will: its just at work, so not my private computer will be affected  :P .
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: About the problem is called 'z-fighting' !
« Reply #23 on: 1 March 2011, 18:36:14 »
No, titi certainly test my binaries!
I will wait, I need titi answer, thank you for your help!
. . .

Upload the patch, please, as you were told by multiple posters. You are helping nobody with just a windows binary...

Silnarm was nice enough to show how to do that (this is using TortoiseSVN):
Please create a patch, a compiled binary does not help anyone...



make sure all changed files are checked, name the patch something like 'zfighting_fix.patch' and upload it, so we can see what you actually did.

Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

ultifd

  • Airship
  • ********
  • Posts: 4,443
  • The Glest Video Guy :) The one and only. :P
    • View Profile
    • My Youtube Channel
Re: About the problem is called 'z-fighting' !
« Reply #24 on: 1 March 2011, 22:52:15 »
I guess james doesn't know what "linux" means on IRC then...not sure on how to translate to Indonesian or mandarin...