# 3D in Raspberry PI4

**URL:** <https://discourse.processing.org/t/3d-in-raspberry-pi4/28750>\
**Category:** Processing for Pi\
**Created:** [March 23, 2021, 8:26am UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750 "2021-03-23T08:26:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eta14](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@Eta14](https://discourse.processing.org/u/Eta14)\
**Post date:** [March 23, 2021, 8:26am UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/1 "2021-03-23T08:26:03Z")

</div>

I have installed Processing 3.5.3 on Raspberry PI4. 3.5.3, because there is a specific version for ARM. When I used programs with P3D (3D) an error code is send on black window. Same Processing version on Windows 11, with sames parametres, programs works correctly.  
error message : failed to add service- already in use ? Could not run the sketch ( Target VM failed to initialize). Any way to solve my problem ? Thank you

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [March 23, 2021, 8:34am UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/2 "2021-03-23T08:34:20Z")

</div>

If I remember correctly following “experimental graphics” in this doc might help

> **[Technical](https://pi.processing.org/technical/)**
>
> Technical Notes Introduction The (original) Raspberry Pi contained an ARMv6 CPU, and 256 or 512 MB RAM. The Raspberry Pi 2 contains a quad-core ARMv7 CPU, and 1 GB of RAM. The Raspberry Pi 3 and 3+ contain a quad-core ARMv8 (64-bit) CPU, which can...

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 23, 2021, 1:20pm UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/3 "2021-03-23T13:20:35Z")

</div>

@Eta14 not all P3D sketches will work on RaspberryPI4 but many will. The original support for processing was for the RaspberryPI3 [Getting Started - Processing for Pi](https://pi.processing.org/get-started/) and most of the technical information in the link @micaut supplied is totally irrelevant to RaspberryPI4 but that’s the latest official support. I’ve successfully installed an alpha version of processing4 on ManjaroArm see here [Processing in style with Java 11 - #40 by monkstone](https://discourse.processing.org/t/processing-in-style-with-java-11/13776/40). NB: The official alpha3 version does not work!!! In principle there’s no reason why it won’t also work on RaspberryPI OS, because my [PiCrate](https://ruby-processing.github.io/PiCrate/) (ruby-processing for RaspberryPI) works on both operating systems.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [March 24, 2021, 9:27am UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/4 "2021-03-24T09:27:40Z")

</div>

@Eta14 I can get the `service in use?` message if I use legacy video driver, you need to run raspi-config `Advanced Options` then `A2 Gldriver` and enable `G2 GL Fake KMS` then reboot. VC4 full KMS not available on RaspberryPI4 yet. This only applies to RaspberryPI OS, Manjaro Arm it is enabled by default…

---

<div class="post-metadata">

**Author:** ![Eta14](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@Eta14](https://discourse.processing.org/u/Eta14)\
**Post date:** [March 24, 2021, 1:24pm UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/5 "2021-03-24T13:24:33Z")

</div>

Thank you Martin. I did this operation yesterday. Naoto Hieda have suggested to read a technical documentation, day before. So I modified configuration. Now Processing work correctly in most exemples with P3D. I have solve an other problem, Raspberry PI4 can be connected to 2 screens. Before yesterday, probably after an update or upgrade, only one sreen displayed data. Now the two ones dispay differents images.  
Again thank you for your help.

---

<div class="post-metadata">

**Author:** ![Eta14](https://avatars.discourse-cdn.com/v4/letter/e/e274bd/32.png) [@Eta14](https://discourse.processing.org/u/Eta14)\
**Post date:** [March 24, 2021, 1:36pm UTC](https://discourse.processing.org/t/3d-in-raspberry-pi4/28750/6 "2021-03-24T13:36:42Z")

</div>

Thank Naoto for suggestion, I read technical documentation. Modification of raspi-config, advanced option, GL driver, set to G2 (Fake KMS). From severals days, I had lost the second sreen, now both ones are working. Thank you for your help.
