We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone;
The code I'm working on is being stopped after a while, can you help me on this thing?
Error warning: "The field PConstants.OPENGL is deprecated"
Answers
In size()? Use P3D or P2D
How could be check use which one ? Cuz ı'm new user Processing.
It would help us a lot if you were to POST THE CODE that is giving you this error..!
Is the project in 2d or 3d?
If you don't know then try them both, one at a time.
But, yes, hard to know what you're asking without code.
Error code;
ArrayIndexOutOfBoundsException 805454
P2D is 2D OpenGL. P3D is 3D OpenGL.
Are you making a 2D or 3D sketch?
For details, just look the line giving you the error up in the reference! For size, see:
It explains what constants you can use, and what each one means.
Make 2D sketch, usually stop working.
Like that Error, really need help.
just write size(800,1100); without any third parameter
Chrisir
That error is nothing to do with opengl. (I'm guessing you're accessing pixels outside of the image you're losing)
Post your code. Don't post pictures of your code. Format it nicely.
Then post your code. We are guessing otherwise. We asked yesterday. We could've fixed it by now.
And try, without OPENGL doesnt work animation.
Project made four parts, if i need other parts of course add here.
Thanks for help.
please add the 4 parts here
thank you
and the images. we need the images.
Project does not progress with the same image and I have to change it from time to time.
is that sprite or is that background3?
background3, sprite is upload now and sprite image png and left bottom in comment.
that's working fine here. ran without errors for about 10 minutes
Processing 3.3, MacBook Pro (Retina, 15-inch, Mid 2015), AMD Radeon R9 M370X 2048 MB + Intel Iris Pro 1536 MB
it doesn't work without the third argument to size() (because it's using textures)
but the following all work here
Well, is the source of the error I sometimes experience with different measurements or visuals related to software or hardware?
My Hardware and Software Processing 3.3.6- MacbookPro( 13 Retina- early 2015) Intel Iris Graphics 6100