## Game physics of tearing apart

For a game I’m programming I’m looking for a kind of realistic mechanic for simulating the tearing apart of objects. Let me explain:

I have a given point p in a 2-dimensional space (possible later also more dimensions so a solution should be scalable, which i assume is not the problem) and I have a number of forces f1, f2, …, fn acting on this point p. So normally this point moves over time according to the combination of this forces. But now I’m looking for a kind of realistic mechanic that if forces vary strongly the point/objects gets split up in two points/objects that move in different directions.

Here a simple visual example:

three "similar" forces resulting in one single force (the point will move according to this single vector)

three forces that "tear" the point apart and result in two vectors (point will be split up in two new points that move according two the respective vector)

I amuse we need two give the point some kind of inner force, that defines how easy it is to tear the point apart?

By kind of realistic I mean something that doesn’t need to be extremely realistic according to the real world physics but something that would fell kind of real in a video game. So an additional benefit would be that it can be easily computed.

## Game physics of tearing apart

For a game I’m programming I’m looking for a kind of realistic mechanic for simulating the tearing apart of objects. Let me explain:

I have a given point p in a 2-dimensional space (possible later also more dimensions so a solution should be scalable, which i assume is not the problem) and I have a number of forces f1, f2, …, fn acting on this point p. So normally this point moves over time according to the combination of this forces. But now I’m looking for a kind of realistic mechanic that if forces vary strongly the point/objects gets split up in two points/objects that move in different directions.

Here a simple visual example:

three "similar" forces resulting in one single force (the point will move according to this single vector)

three forces that "tear" the point apart and result in two vectors (point will be split up in two new points that move according two the respective vector)

I amuse we need two give the point some kind of inner force, that defines how easy it is to tear the point apart?

By kind of realistic I mean something that doesn’t need to be extremely realistic according to the real world physics but something that would fell kind of real in a video game. So an additional benefit would be that it can be easily computed.

## How exactly the “Tearing” property works?

There is some ambiguity in Tearing property.
Dark Heresy Rulebook states that:

These weapons roll two dice for Damage and choose the highest.

Rogue Trader, Deathwatch and Only War are agreed that:

These weapons roll one extra die for damage, and the lowest result is discarded.

For most weapons it’s quite simple because of damage like 1d10+something. But, what if we have more dice in damage? Should I roll additional die for every base damage die, or only for entire damage roll?

For example, Angelus bolter from Dark Heresy supplement Inquisitor’s Handbook has 2d10 damage and (like all bolt weapons) Tearing quality. Lets presume that my character shot a heretic with this bolter, and now I must determine inflicted damage. Should I roll 2d10 twice, and discard lowest in both, or I should roll 3d10, and discard the lowest one?

## amdgpu screen tearing

I install Ubuntu 18.04 with the amdgpu driver for my rx580 and I’m continuing to get screen tearing occasionally with windows and during video playback. I’ve enabled TearFree, DRI3, and a couple others in my xorg.conf.d file but none seems to have any effect.

here is my current config

``Section "Device"     Identifier "Card0"     Driver "amdgpu"     BusID "PCI:1:0:0"     Option "DRI3" "3"     Option "AccelMethod" "glamor"     Option "TearFree" "true"     Option "VariableRefresh" "true" EndSection  ``

I’ve fixed this on other linux machines using compton but to my knowledge I’m not able to change the compositor used by gnome. Not sure what the next step is to trouble shoot this issue.

## 18.04 – Screen tearing with NVIDIA GTX 970

I seem to be having problems with screen tearing in Ubuntu 18.04, which got confirmed by running this test:

I searched around in Google for a while, but all I found were recommendations to change the file `/etc/modprobe.d/nvidia-drm-nomodeset.conf` and add

``options nvidia-drm modeset=1 ``

But that did nothing.

These are the drivers that I am using:

What could I do to fix this?

## Screen tearing ONLY in Wine, only on Ubuntu

I have Ubuntu 19.04 on a Thinkpad T480, with Intel graphics (i965 mesa driver), and I noticed that when I run applications in Wine (not just games, everything), there’s visible tearing, even with vsync enabled. The tear is always in the same spot (around 200px from the top of the screen) and it’s driving me crazy. There are no tearing issues in other applications, just Wine.

I tried looking for tearing issues in wine but all I found was threads complaining about vsync on intel+nvidia graphics, and I’m kinda new to the world of linux so I don’t know what else to do.

Can anyone help me?

## Screen tearing and distortion with Nvidia MX150 on Ubuntu 19.04

I recently changed from Intel HD graphics to Nvidia MX150 as default graphics card in Ubuntu 19.04.

Sometimes the wallpaper get pixelated or changes to whatever wallpaper it likes, and also there is a HUGE amount of screen tearing…

Why is this happening and what can I do about it?

## Screen Tearing Ubuntu 18.04

So I have recently switched to Ubuntu 18.04. LTS and Im getting a lot of screen tearing especially during video playback on e.g. youtube. Could anybody help me fix this? Note that im completely new to Linux.

Thanks in advance for any help guys.

## Intel Skylake graphics on linux screen flashes and heavy tearing

Dell Latitude 7480 using an updated Arch linux – with integrated graphics:

VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)

Few months ago i started experiencing weird graphics interruptions: Gnome DE started flashing and parts of the menus stayed as ghosts after using them. I moved to i3 where i didn’t experience this behavior.

Once in a few minutes i have a weird reddish square artifact. I still try to check out gnome but the issues are still there. In the last couple of weeks i get the following screen and can get out of it only with a hard reset.

I tried the TearFree options, the modesetting driver, the Intel driver with config (xf86-video-intel) but without success.

I’m trying to figure out if it’s a software or hardware issues.

Will be happy to provide any logs/information that is needed to figure it out.

## Video tearing 18.04 nvidia

I’ve installed proprietary drivers, and I have powerful card. Running totem or smplayer I see lines in video (tearing).

``jk@jk:~\$   inxi -G Graphics:  Card: NVIDIA GM204 [GeForce GTX 980]            Display Server: x11 (X.Org 1.19.6 )            drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)            Resolution: 3840x2160@30.00hz            OpenGL: renderer: GeForce GTX 980/PCIe/SSE2            version: 4.6.0 NVIDIA 390.77 jk@jk:~\$   nvidia-smi Wed Jan 16 10:44:28 2019        +-----------------------------------------------------------------------------+ | NVIDIA-SMI 390.77                 Driver Version: 390.77                    | |-------------------------------+----------------------+----------------------+ | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC | | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. | |===============================+======================+======================| |   0  GeForce GTX 980     Off  | 00000000:03:00.0  On |                  N/A | | 26%   48C    P0    53W / 195W |   1364MiB /  4042MiB |      0%      Default | +-------------------------------+----------------------+----------------------+  +-----------------------------------------------------------------------------+ | Processes:                                                       GPU Memory | |  GPU       PID   Type   Process name                             Usage      | |=============================================================================| |    0      1595      G   /usr/lib/xorg/Xorg                            39MiB | |    0      1668      G   /usr/bin/gnome-shell                          49MiB | |    0      1853      G   /usr/lib/xorg/Xorg                           425MiB | |    0      1984      G   /usr/bin/gnome-shell                         167MiB | |    0      3336      G   /usr/lib/vmware/bin/vmware-vmx               595MiB | |    0      3933      G   ...quest-channel-token=6698622263273112210    62MiB | |    0      5586      G   /usr/bin/totem                                18MiB | ``