# P2D P3D not working in processing

**URL:** <https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108>\
**Category:** Processing\
**Created:** [November 1, 2019, 11:32am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108 "2019-11-01T11:32:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 1, 2019, 11:32am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/1 "2019-11-01T11:32:51Z")

</div>

I am using windows 10 & intel i5-7600K , Intel HD graphics 630. The driver is updated.  
the code shows no error but the window is never displayed with P2D & P3D.  
I am using current processing version 3.5.3.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 2, 2019, 3:18am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/3 "2019-11-02T03:18:29Z")

</div>

OP use processing 3.5.3 what comes with JAVA 8

and it should not matter what else is installed on windows 10.

@dan850 , what you think interferes with the renderer?

@Ruchi, is it a system what has NO graphic card,  
or it has one and you can use  
internal Motherboard/CPU graph && || graphic card output?

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [November 2, 2019, 4:45am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/4 "2019-11-02T04:45:24Z")

</div>

@Ruchi Also, do you have a smaller version of the sketch that you are working on? Does the same issue happen when try to run the Processing examples that use P2D and P3D?

And my mistake guys about installing or updating Java separately because it is not needed. 🙂

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 2, 2019, 7:47am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/5 "2019-11-02T07:47:19Z")

</div>

@kll I don’t have add on graphic card. was relying on built in graphics of intel. I guess i will need one.  
Thanks

@dan850 The window is never displayed with both P2D & P3D. Tried drawing simple sphere.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 2, 2019, 8:27am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/6 "2019-11-02T08:27:47Z")

</div>

> [@Ruchi](#):
>
> I guess i will need one.

no, that should not be that way, also it would have been reported already.

* * *

my old PC runs only win7  
on a AMD Athlon II X2 250 and a Asrock N68C-S UCC MB without extra graphic card,  
only internal Nvidia GeForce 7025 / nForce 630a  
but can use processing 3.5.3 ( just slow )

* * *

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 2, 2019, 9:03am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/7 "2019-11-02T09:03:32Z")

</div>

I checked the earlier issues regarding the same but there didn’t seem like a proper solution. Of all, majority of them reported problems with windows 10 & P2D,P3D compatibility.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 2, 2019, 9:17am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/8 "2019-11-02T09:17:14Z")

</div>

sadly not many report if problem solved…  
( like in your case install graphic driver from mother board manufacturer, ignore the windows default driver install/update function )

i here just run from the old PC  
but run my latest stress test in P3D  
and use key [p] for report about graphic card.

and i want share

```auto
float rset=120, r;
int x = 0;
int w = 400;
int h = 200;
int grid=20, many = grid*grid;
boolean stressenable=true;

void settings() {
  // size(w, h); // default use JAVA2D 
  // size(w, h,FX2D);
  // size(w, h,P2D);
    size(w, h,P3D);
}

void setup() {
  frameRate(rset);
  println("target "+rset+" FPS");
  background(200, 200, 0);
  println("use key [p] for sysinfo, [n] numinfo, \n[s] stresstest ( "+grid+"*"+grid+" = "+many+" ) points, [+][-] grid +-5" );
}

void draw() {
  surface.setTitle("SYS INFO "+ nf(r, 0, 1)+" FPS" );
  if ( stressenable ) stress();
  r = frameRate;
  if ( r > 30 ) stroke(0, 200, 0); 
  else stroke(200, 0, 0);
  line(x, height-2, x, height-2-r); // FPS graph
  x++;
  if ( x > width ) { 
    x = 0; 
    background(200, 200, 0);
  }
// TEST: delete later following 3 lines
  translate(200,50);
  stroke(200,0,0);
  sphere(20);
}

void stress() {
  push();
  for ( int i=0; i<grid; i++) {
    for ( int j=0; j<grid; j++) {
      stroke(random(255), random(255), random(255) );
      point(5+i, 5+j);
    }
  }
  pop();
}

void sysinfo() {
  println( "__SYS INFO :");
  println( "System : " + System.getProperty("os.name") + " " + System.getProperty("os.version") + " " + System.getProperty("os.arch") );
  println( "JAVA : " + System.getProperty("java.home") + " rev: " +javaVersionName);
  //println( System.getProperty("java.class.path") );
  //println( "\n" + isGL() + "\n" );
  println( "OPENGL : VENDOR " + PGraphicsOpenGL.OPENGL_VENDOR+" RENDERER " + PGraphicsOpenGL.OPENGL_RENDERER+" VERSION " + PGraphicsOpenGL.OPENGL_VERSION+" GLSL_VERSION: " + PGraphicsOpenGL.GLSL_VERSION);
  println( "user.home : " + System.getProperty("user.home") );
  println( "user.dir : " + System.getProperty("user.dir") );
  println( "user.name : " + System.getProperty("user.name") );
  println( "sketchPath : " + sketchPath() );
  println( "dataPath : " + dataPath("") );
  println( "dataFile : " + dataFile("") );
  println( "frameRate : target "+nf(rset, 0, 1)+" actual "+nf(r, 0, 1));
  println( "canvas : width "+width+" height "+height+" pix "+(width*height));
}

void numinfo() {
  println( "__NUM INFO :");
  println( "byte min: "+Byte.MIN_VALUE+ "\t\t\t max: "+Byte.MAX_VALUE);
  println( "short min: "+Short.MIN_VALUE+ "\t\t\t max: "+Short.MAX_VALUE);
  println( "int min: "+Integer.MIN_VALUE+"\t\t max: " +Integer.MAX_VALUE);
  println( "long min: "+Long.MIN_VALUE+ "\t max: " +Long.MAX_VALUE);
  println( "float min: "+Float.MIN_VALUE+ "\t\t\t max: "+Float.MAX_VALUE);
  println( "double min: "+Double.MIN_VALUE+ "\t\t\t max: "+Double.MAX_VALUE);
}

void keyPressed() {
  if ( key == 'p' ) sysinfo();
  if ( key == 'n' ) numinfo();
  if ( key == 's' ) stressenable = ! stressenable;
  if ( key == '+' ) {
    grid +=5;
    many = grid*grid;
    println("stresstest ( "+grid+"*"+grid+" = "+many+" ) points" );
  }
  if ( key == '-' ) {
    grid -=5;
    many = grid*grid;
    println("stresstest ( "+grid+"*"+grid+" = "+many+" ) points" );
  }
}

```

this is a mod for you ( the sphere should not be part of the tool as it not runs in P2D…)

 ![SNAG-0143](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/9cc5672d100656d19d1c4505d7f765bfe4d61d29.jpeg)

what i am up to is the graphic card info processing sees in P3D  
after press [p] find OPENGL info?

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 2, 2019, 12:17pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/9 "2019-11-02T12:17:45Z")

</div>

It doesn’t show anything with P3D or P2D renderer. It doesn’t take key P input either.

It shows null in graphics card info for default renderer.

 ![Untitled-1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3c55cec20ab2b65be187d2fe07921262ace372cb.jpeg)

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 2, 2019, 12:42pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/10 "2019-11-02T12:42:30Z")

</div>

yes without P2D P3D see

> OPENGL : VENDOR null RENDERER null VERSION null GLSL\_VERSION: null

sorry bad idea, a stress test on a graphic that does not work LOL

* * *

so what you find about software for your motherboard?  
or from?  
[https://downloadcenter.intel.com/product/97144/Intel-Core-i5-7600K-Processor-6M-Cache-up-to-4-20-GHz-](https://downloadcenter.intel.com/product/97144/Intel-Core-i5-7600K-Processor-6M-Cache-up-to-4-20-GHz-)

from CPU info:

```auto
 DirectX* Support 12
OpenGL* Support 4.5

```

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 2, 2019, 1:14pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/11 "2019-11-02T13:14:39Z")

</div>

Tried installing this already but the set up pops up the message that this driver is not validated for this computer.

---

<div class="post-metadata">

**Author:** ![dan850](https://avatars.discourse-cdn.com/v4/letter/d/e9c0ed/32.png) [@dan850](https://discourse.processing.org/u/dan850)\
**Post date:** [November 2, 2019, 11:18pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/12 "2019-11-02T23:18:10Z")

</div>

@Ruchi is your computer new, refurbished or built on your own? I’m guessing you have already tried hardware diagnostic software. Correct? Or what else have you tried so far? Do you have access to another computer to test your sketch on?

Have you tried importing OpenGL?  
[https://forum.processing.org/one/topic/spheres.html](https://forum.processing.org/one/topic/spheres.html)

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 4, 2019, 5:44am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/13 "2019-11-04T05:44:06Z")

</div>

@dan850 I tried shutting windows defender & anti virus, reinstalled windows updates & intel driver from the intel driver update utility. My PC is assembled.  
imported openGL library but nothing again.

```auto
import processing.opengl.*;

float a; 
    
void setup() {
  size(800, 600, OPENGL);
  fill(0, 153);
  noStroke();
}
    
void draw() {
  background(255);
  translate(width/2, height/2);
  rotateX(a);
  rotateY(a*2);
  rect(-200, -200, 400, 400);
  rotateX(PI/2);
  rect(-200, -200, 400, 400);
  a += 0.01;
}

```

When cursor on opengl, it displayed ‘The field PConstants.OPENGL is deprecated’ on console.

with the hardware diagnostic software, I haven’t done it before. I will be trying that out first now.  
Although I am searching it, could you guide me on it little?  
Thanks

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 4, 2019, 6:15am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/14 "2019-11-04T06:15:15Z")

</div>

sorry, again my question about the motherboard?  
( looks little bit like you are avoiding that )

but i would not ask microsoft or intel why  
this motherboard with this CPU can not show OPENGL

i would check if that board supports

- this CPU
- with this windows version

and what driver i should use for the graphics to download for that mb.

worst case would be that not even a add graphic card would work, so pls. check there.

( in internet i found some info about problems to find stable gaming driver for that cpu for win 7. /  
specific for motherboard i could not search as you not reported it )

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 4, 2019, 10:26am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/15 "2019-11-04T10:26:53Z")

</div>

@kll hi sorry, was juggling between windows 10 & cpu, didn’t look at mother board.  
My motherboard is gigabyte GA-Z270 HD3P.  
When I assembled it, i did check on the compabilitiy with cpu & windows. But I lack thorough knowledge of specifics.  
Thanks.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 4, 2019, 10:37am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/16 "2019-11-04T10:37:04Z")

</div>

and did you check on using ?  
[https://download.gigabyte.com/FileList/Driver/mb\_driver\_vga\_intel\_100.6518.zip](https://download.gigabyte.com/FileList/Driver/mb_driver_vga_intel_100.6518.zip)  
[https://download.gigabyte.com/FileList/Driver/mb\_driver\_vga\_intel\_64\_200series.zip](https://download.gigabyte.com/FileList/Driver/mb_driver_vga_intel_64_200series.zip)  
from

> **[GA-Z270-HD3P (rev. 1.0) | Motherboard - GIGABYTE U.S.A.](https://www.gigabyte.com/us/Motherboard/GA-Z270-HD3P-rev-10/support#support-dl-driver-vga)**
>
> Supports 7th/ 6th Generation Intel® Core™ ProcessorsDual Channel Non-ECC Unbuffered DDR4, 4 DIMMsFast USB 3.1 Gen 2 with USB Type-C™ and Type-A2-Way CrossFi...

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 4, 2019, 1:25pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/17 "2019-11-04T13:25:41Z")

</div>

Both the set up files supports intel generation 6 onwards. Although the website shows i5 cpu support.

 ![a](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/604726580016125d2ee795ae33dbd0d8743d0230.jpeg)

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 7, 2019, 7:02am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/18 "2019-11-07T07:02:19Z")

</div>

@kll worst scenario happened- temporarily installed nvidia Geforce GTX-610 but same output with P3D. no display of window & no errors.

still can’t figure out the problem.

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 7, 2019, 7:05am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/19 "2019-11-07T07:05:37Z")

</div>

it seems to me the issue could be with windows10. my last bet is to install windows 7 & check.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 7, 2019, 8:41am UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/20 "2019-11-07T08:41:56Z")

</div>

?? sorry, could you just try a USB stick linux,  
some have that live + + feature

> **[How to Create a Live Ubuntu USB Drive With Persistent Storage](https://www.howtogeek.com/howto/14912/create-a-persistent-bootable-ubuntu-usb-flash-drive/)**
>
> A Linux live USB drive is normally a blank slate each time you boot it. You can boot it up, install programs, save files, and change settings. But, as soon as you reboot, all your changes are wiped away and you’re back to a fresh system. This can be...

  
so you could test linux on your hardware,  
install processing and test

and you not have to touch your win 10 at all…

---

<div class="post-metadata">

**Author:** ![Ruchi](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@Ruchi](https://discourse.processing.org/u/Ruchi)\
**Post date:** [November 12, 2019, 1:30pm UTC](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108/21 "2019-11-12T13:30:46Z")

</div>

@kll sorry for the delayed response! ubuntu live is working but somehow the processing.exe is not working. The linux version of processing is not recognized .

[Next page](https://discourse.processing.org/t/p2d-p3d-not-working-in-processing/15108.md?page=2)
