# Processing 3 : two windows at time , one 2d and one 3d

**URL:** <https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019>\
**Category:** Coding Questions\
**Created:** [March 25, 2020, 10:22pm UTC](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019 "2020-03-25T22:22:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob63](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@Bob63](https://discourse.processing.org/u/Bob63)\
**Post date:** [March 25, 2020, 10:22pm UTC](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019/1 "2020-03-25T22:22:51Z")

</div>

Hi, I’m quite new of Processing 3,and is my first post in the forum.  
I’m working on a project that require two windows , one 2D and one 3d. The 2D window will be used to display a series of fata coming from a serial port (points coordinates ) plus other info and the 3d will be used to draw spheres in a 3D space based on coordinates received . I’ve found some post where is explaned how to create two windows using G4P or other solution but always in 2D and I’ve not idea if is doable with mixed windows mode , considering that the scope is that every time is received a new coordinate from the serial ,a new spheres is added in the 3D space. Before I start to spend time on this idea I would like to know firs if is possible do it in Processing 3 and is there any example code from wich I can start . Thanks Roberto.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [March 26, 2020, 7:51pm UTC](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019/2 "2020-03-26T19:51:36Z")

</div>

It’s possible with g4p

But maybe it’s not necessary

There are ways to make 2D text on top of a 3D scene, even when you use Peasycam

like a HUD

---

<div class="post-metadata">

**Author:** ![Bob63](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@Bob63](https://discourse.processing.org/u/Bob63)\
**Post date:** [March 27, 2020, 2:17am UTC](https://discourse.processing.org/t/processing-3-two-windows-at-time-one-2d-and-one-3d/19019/3 "2020-03-27T02:17:26Z")

</div>

> [@Chrisir](#):
>
> like a HUD

Hi Chrisir,  
good ,I’ve found some good examples of Peasycam and HUD on which start to study.  
Thanks again.
