Skip to content
This repository has been archived by the owner on Apr 17, 2022. It is now read-only.

Weapon distortion #4537

Closed
wzdev-ci opened this issue Dec 4, 2016 · 29 comments
Closed

Weapon distortion #4537

wzdev-ci opened this issue Dec 4, 2016 · 29 comments

Comments

@wzdev-ci
Copy link
Contributor

wzdev-ci commented Dec 4, 2016

resolution_fixed type_bug | by Berserk Cyborg


I noticed that there is a weird bug that causes weapons to be distorted on units/structures that are built (does not seem to affect structures placed on map start). Only the weapon is affected and occurs on cyborgs/tanks/vtols and defenses structures. Occurs regardless of viewing angles and is not reproducible on 3.2.1 release.

All I can give is a picture as no errors were produced in the log file.


Issue migrated from trac:4537 at 2022-04-16 12:39:00 -0700

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 4, 2016

Berserk Cyborg uploaded file constructBug.PNG (552.6 KiB)

constructBug.PNG

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 4, 2016

Berserk Cyborg commented


I have an ATI Radeon HD 7540D with the latest driver version.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 9, 2016

Berserk Cyborg commented


Ticket can be closed. Changing the texture size value fixed this.

@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


I have this issue as well I have a ATI Radeon HD 5770

@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 10, 2016

Lord_Kane commented


Replying to Warzone2100/old-trac-import#4537 (comment:2):

Ticket can be closed. Changing the texture size value fixed this.

what texture size did you set it at? nevermind

No value stops the effect for me.

@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment1 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


I have noticed that what terrain a structure with a weapon its built on causes this effect, it sometimes occurs on flat terrain as well.

Even some prebuilt structures are affected.

I find it happens to units randomly, all units are affected, even trucks

changing texture sizes did nothing for me.

I am on a ATI Radeon HD 5770 (a bit old I know)

Image Link: http://i.imgur.com/xokxtFY.png
Green Circled structures are prebuilt into the map (this is SK-Rush)
Red are structures I built.

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


Alright, I know I am probably talking to the wind here but here it goes.
Today I started a battery of tests to see where this issue is coming from.

So here is the results for this first group of tests and anything I note

Procedure:

Start up a skirmish game on SK-Rush (where the effect is most noticeable)
Build 1 cannon cyborg, 1 Cannon Viper and 1 Cannon Cobra and a single Cannon bunker near the entrance of the base.

Save the game and reload it from ingame
Quit the current game and reload it from the menu.

I would then record the results (which will be below) then I would change the variable (constants and variables will recorded with every experiment block) and restart the game resume the testing procedure.

Experiment Block 1:
Constants:
Map: SK-Rush
Fullscreen mode: Yes
Fullscreen Res: 1440x900
Vsync: On
FSAA: 8x

Variable:
Texture Size is the variable and will be noted in each Test section.

Test 1:
Texture size: 2048

New game: Weapon distortion only occurred on Cannon bunker, built units where unaffected.
Reload of save game from in game: Weapon distortion occurred on units and structures.
Reload of save game from menu: Weapon distortion occurred on units and structures.


Test 2:
Texture size: 1024

New Game: Weapon Distortion only occurred on Cannon Bunker, built units were unaffected.
Reload of save game from in game: Weapon distortion occurred on both units and structures.
Reload of save game from menu: Weapon distortion occurred on both units and structures.


Test 3
Texture Size: 512

New game: Weapon distortion only occurred on Cannon bunker, built units where unaffected.
Reload of save game from in game: Weapon distortion occurred on units and structures.
Reload of save game from menu: Weapon distortion occurred on units and structures.


Test 4
Texture Size: 256

New game: Weapon distortion only occurred on Cannon bunker, built units where unaffected.
Reload of save game from in game: Weapon distortion occurred on units and structures.
Reload of save game from menu: Weapon distortion occurred on units and structures.


Test 5
Texture Size: 128

New game: Weapon distortion only occurred on Cannon bunker, built units where unaffected.
Reload of save game from in game: Weapon distortion occurred on units and structures.
Reload of save game from menu: Weapon distortion occurred on units and structures.


Block 1 Notes and observations:
Weapon distortion would leave if units were ordered to go attack or do something else on a different plane this occurred on all tests but would return to its distorted state on Test 1 and 2, would stop occurring permanently on tests 3,4 and 5. I also noted that on tests 3 to 5 debug mode would randomly engage itself with out shift + delete input from me, I would have to press it to disable the mode.

As a one of sub experiment I would save when units weapons stoppod distorting on test 3 and 5 and reload from both ingame and from main menu and the effect only returned on Test 3 dunno why.

End of Block 1


@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


gonna wait a week to see if anyone responds to this, plus I am going to be busy for a bit.

@wzdev-ci
Copy link
Contributor Author

Lord_Kane changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


oops double clicked my fault.

@wzdev-ci
Copy link
Contributor Author

Prot commented


Same here https://postimg.org/gallery/3g6yhxyvs/
Debian Jessie
GeForce GTX 680/PCIe/SSE2 4.4.0 NVIDIA 367.35
FSAA - off
VSync - off
Textures - 2048
Fullscreen Res - FullHD

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Dec 12, 2016

Lord_Kane commented


Replying to Warzone2100/old-trac-import#4537 (comment:9):

Same here https://postimg.org/gallery/3g6yhxyvs/
Debian Jessie
GeForce GTX 680/PCIe/SSE2 4.4.0 NVIDIA 367.35
FSAA - off
VSync - off
Textures - 2048
Fullscreen Res - FullHD

I was worried this was a ATI only issue, but it seems to affect nvidia cards too. I hope a solution is found soon.

@wzdev-ci
Copy link
Contributor Author

Lord_Kane commented


Devs:

It just occured that this might be a issue with the shaders changes you made to the 3.2.2 release.

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 9, 2017

Berserk Cyborg uploaded file Prevent-structure-turret-stretching-again.patch (1.6 KiB)

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 9, 2017

Berserk Cyborg changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

wzdev-ci commented Feb 9, 2017

Berserk Cyborg commented


This is actually a past bug that come back to life that was fixed in Warzone2100/warzone2100@d1bfaa3

my fork is here in case it is needed: https://github.com/KJeff01/warzone2100

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg changed _comment0 which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


I noticed that for units the weapon will stretch down for a certain period of time and then correct itself after a while. This will repeat given enough time. It is kind of rare to see this effect on units though.

@wzdev-ci
Copy link
Contributor Author

Berserk Cyborg commented


In Warzone2100/warzone2100@f79286d:

#CommitTicketReference repository="" revision="f79286dc13562e8b1277be0ab120a79f7d2d2fa7"
Prevent structure turret stretching again

Stops structure turrets from stretching to their foundation as described in ticket 4537.

@wzdev-ci
Copy link
Contributor Author

Cyp changed status from new to closed

@wzdev-ci
Copy link
Contributor Author

Cyp changed resolution from `` to fixed

@wzdev-ci
Copy link
Contributor Author

Cyp changed blocking which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Cyp changed blockedby which not transferred by tractive

@wzdev-ci
Copy link
Contributor Author

Cyp commented


Merged fix, thanks. So closing (if saying "fixes ticket 4537", the bot would automatically close).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant