本帖最后由 nevana 于 2013-5-11 15:12 编辑
import peasy.test.*;
import peasy.org.apache.commons.math.*;
import peasy.*;
import peasy.org.apache.commons.math.geometry.*;
PeasyCam cam;
void setup() {
cam = new PeasyCam(this, 600);
size(600, 400, OPENGL);
background(0);
}
void draw() {
fill(0, 255, 0);
box(100, 100, 100);
}
这个是测试程序。。。结果应该出现一个3d空间的绿色盒子
但是不能做任何的旋转?
为什么 问题GOOGLE也没弄明白
报错是
getMatrix is not available with this renderer.
camera(), or this particular variation of it, is not available with this renderer.
PeasyCam v0.91
PeasyCam v0.91
然后用鼠标在窗口控制一下
Exception in thread "Animation Thread" java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:1084)
at processing.core.PApplet.handleMouseEvent(PApplet.java:2532)
at processing.core.PApplet.dequeueEvents(PApplet.java:2463)
at processing.core.PApplet.handleDraw(PApplet.java:2153)
at processing.opengl.PGL$PGLListener.display(PGL.java:2472)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:548)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:533)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:280)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:904)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:822)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:543)
at processing.opengl.PGL.requestDraw(PGL.java:814)
at processing.opengl.PGraphicsOpenGL.requestDraw(PGraphicsOpenGL.java:1566)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:662)
想问下是opengl的问题么?我用的是台式机WIN7
PS:之前我用笔记本电脑OPENGL是下载了个补丁解决了OPENGL的问题
但PeacyCam问题还是一样?是补丁问题么?
|