yhy630 发表于 2015-4-6 09:13:26

size(480,240,P3D); 用不了

void setup()
{
size(500,500,P3D);

}

void draw()
{
      background(0);

    translate(200, 200, 0);//坐标翻译,可以理解成立体平移
    rotateX(mouseX);//旋转X轴
    rotateY(mouseY);//旋转Y轴
    box(100);//绘制一个立体的box
}
一个简单的代码,process2.21,winxp中,不能运行,显示错误为:
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
/////
将size(500,500,P3D);
换成size(500,500);
能运行,显示错误为:
translate(), or this particular variation of it, is not available with this renderer.
rotateX() can only be used with a renderer that supports 3D, such as P3D or OPENGL.

问题再于系统不支持P3D,不知如何解决?

suoma 发表于 2015-4-6 13:09:11

换成高版本的试一试

林定祥 发表于 2015-4-6 23:03:54

好像JAVA VM需要升级

yhy630 发表于 2015-4-7 10:30:45

谢谢,我试试看:lol

164335413 发表于 2015-5-25 10:21:34

曾经有过不支持P3D的情况,然后把显卡驱动重装了就解决了,不清楚问题出在哪里。。。

1536222930 发表于 2015-7-15 10:36:53

我也遇到了同样的问题,请问是如何解决的?
页: [1]
查看完整版本: size(480,240,P3D); 用不了