From 7b7a0503b7400a1e0305bb9a8328bba222f83bc0 Mon Sep 17 00:00:00 2001 From: benfry Date: Tue, 19 Apr 2005 06:46:55 +0000 Subject: [PATCH] getting camera() into PGraphics, last of faq stuff, starting 0085 --- build/windows/launcher/processing.exe | Bin 123829 -> 123829 bytes core/PApplet.java | 14 +++++ core/PGraphics.java | 11 +++- core/done.txt | 9 ++++ done.txt | 65 +++++++++++++++++++++++ todo.txt | 71 ++------------------------ 6 files changed, 101 insertions(+), 69 deletions(-) diff --git a/build/windows/launcher/processing.exe b/build/windows/launcher/processing.exe index 2c5ed56ae34cf82179a71ea9c34f09ad5425379a..affc1ffbd37f788075405ac4ac20e453711a9ae1 100755 GIT binary patch delta 322 zcmdmboPFzY_6Z$KQ>IVs@?$z#z44ZoJoEc0Y?Ij)RKc{qLM@nHuOKQ76nA0(14af; z76yh6CI}Ct{yrA@6-e^@ikSLOAj#Wfk$-_CpN~bJgBfA}d@S-BNb={g$a^5k|5ua+ c`%_*C)14Ve>im^NLF$^*mA0oVG5Q?@0FyIA=>Px# delta 322 zcmdmboPFzY_6Z$K8@MKR`7woF+IUM#p83S~D4LCOx!b^c1CAa%{@O54+w82t_c0Ao-}r~m)} diff --git a/core/PApplet.java b/core/PApplet.java index 7e6d9981b..2910f80a7 100644 --- a/core/PApplet.java +++ b/core/PApplet.java @@ -6054,6 +6054,20 @@ v PApplet.this.stop(); } + public void camera() { + if (recorder != null) recorder.camera(); + g.camera(); + } + + + public void camera(float eyeX, float eyeY, float eyeZ, + float centerX, float centerY, float centerZ, + float upX, float upY, float upZ) { + if (recorder != null) recorder.camera(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); + g.camera(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, upX, upY, upZ); + } + + public void ortho() { if (recorder != null) recorder.ortho(); g.ortho(); diff --git a/core/PGraphics.java b/core/PGraphics.java index 1c7ae3935..c0cc966d1 100644 --- a/core/PGraphics.java +++ b/core/PGraphics.java @@ -2073,6 +2073,16 @@ public class PGraphics extends PImage implements PConstants { depthError("endCamera"); } + public void camera() { + depthError("camera"); + } + + public void camera(float eyeX, float eyeY, float eyeZ, + float centerX, float centerY, float centerZ, + float upX, float upY, float upZ) { + depthError("camera"); + } + public void ortho() { depthError("ortho"); } @@ -2106,7 +2116,6 @@ public class PGraphics extends PImage implements PConstants { depthError("printCamera"); } - public void printProjection() { depthError("printCamera"); } diff --git a/core/done.txt b/core/done.txt index 21a7c69c4..b5d7ab241 100644 --- a/core/done.txt +++ b/core/done.txt @@ -1,3 +1,12 @@ +0084 core +X fixed create font / incremented font file version number +X simon lighting fixes +X added simon's lighting docs to lights() fxn in javadoc +X set default stroke cap as ROUND +X otherwise smooth() makes points disappear +X hack for text with a z coordinate + + 0083 core X fix double key events X fix mrj.version security error on the pc diff --git a/done.txt b/done.txt index 8aedeaca0..89a3898f0 100644 --- a/done.txt +++ b/done.txt @@ -1,3 +1,68 @@ +0084 pde +X can't edit prefs while processing is open, remove the link +X add run.options for things run externally +X load options via vector because they need to be split up +X stability improvements to processing.exe from simon +X memory on external apps is a little broken +X update the script for the mailing list +X processing vs. flash item on the faq? a "why?" page? +X clean up faq page to use text A NAME tags +X rename video.Camera to video.Video ? Capture ? +X VideoInput VideoOutput, SoundInput, SoundOutput or AudioInput/AudioOutput +X need to straighten out for when audio comes along +X faq menu selection should select current page so can navigate elsewhere +X also missing "founders" and "interview" pages +X remove interview page if not already done +X founders page is online, just integrate - info.html +X list of known bugs should be on the faq page +X a bunch of stuff from revisions.txt on 84 and 82 +o how to deal with bugs, since there are so many known... + +save as... bugs +X always make sure that the sketch folder still exists +X otherwise editor gets into a weird state +(v74) if a project folder is made (with save as), and then deleted +while processing is still open, there is an error (of course). but +the error ('file/folder not found') is not displayed to the user, and +the drop-downs don't go away / the IDE doesn't refresh. + +X remove a folder if someone tries to replace it via "save as" +what happens if folder already exists on save as? +saving a project over an already existing project does not get rid of +the .pde files that arent overwritten. not sure if this is feature or +bug, but it took me by surprise. it seemed to only overwrite .pde +files with the same name, but everything else in that project folder +stays as is. + +X sketch renaming fixed +X rename, change, was asking about the old sketch name +Minor issue, but caused me a couple seconds of confusion. If you +rename your sketch then try to close the application without saving +first, it asks you if you want to save but mentions the pre-rename +name. But I hit yes, quit, came back in, and all seemed right in the +world. + +X "save as" not actually saving properly +File>New +edit file... +File>Save As +File>Open some other file +File>Open original file +file is empty. +the only way to make File>Save As actually save new files, as far as i +can tell, is to Save As once, make at least one change, then Save. + +X fix hide/unhide bug... just was dumb code +create a new sketch +create a new tab named "a" +create a new tab named "a_2" +hide tab named "a_2" +hide "a" +unhide "a_2" +unhide "a" +where did "a_2" go ? + + 0083 pde X move everything to packages, and start auto-javadoc X how to get preproc to automatically prepend packages diff --git a/todo.txt b/todo.txt index 0f67e33bd..862fbe8b6 100644 --- a/todo.txt +++ b/todo.txt @@ -1,71 +1,6 @@ -0084 pde -X can't edit prefs while processing is open, remove the link -X add run.options for things run externally -X load options via vector because they need to be split up -X stability improvements to processing.exe from simon -X memory on external apps is a little broken -X update the script for the mailing list -X processing vs. flash item on the faq? a "why?" page? -X clean up faq page to use text A NAME tags -X rename video.Camera to video.Video ? Capture ? -X VideoInput VideoOutput, SoundInput, SoundOutput or AudioInput/AudioOutput -X need to straighten out for when audio comes along -X faq menu selection should select current page so can navigate elsewhere -X also missing "founders" and "interview" pages -X remove interview page if not already done -X founders page is online, just integrate - info.html -X list of known bugs should be on the faq page -X a bunch of stuff from revisions.txt on 84 and 82 -o how to deal with bugs, since there are so many known... - -save as... bugs -X always make sure that the sketch folder still exists -X otherwise editor gets into a weird state -(v74) if a project folder is made (with save as), and then deleted -while processing is still open, there is an error (of course). but -the error ('file/folder not found') is not displayed to the user, and -the drop-downs don't go away / the IDE doesn't refresh. - -X remove a folder if someone tries to replace it via "save as" -what happens if folder already exists on save as? -saving a project over an already existing project does not get rid of -the .pde files that arent overwritten. not sure if this is feature or -bug, but it took me by surprise. it seemed to only overwrite .pde -files with the same name, but everything else in that project folder -stays as is. - -X sketch renaming fixed -X rename, change, was asking about the old sketch name -Minor issue, but caused me a couple seconds of confusion. If you -rename your sketch then try to close the application without saving -first, it asks you if you want to save but mentions the pre-rename -name. But I hit yes, quit, came back in, and all seemed right in the -world. - -X "save as" not actually saving properly -File>New -edit file... -File>Save As -File>Open some other file -File>Open original file -file is empty. -the only way to make File>Save As actually save new files, as far as i -can tell, is to Save As once, make at least one change, then Save. - -X fix hide/unhide bug... just was dumb code -create a new sketch -create a new tab named "a" -create a new tab named "a_2" -hide tab named "a_2" -hide "a" -unhide "a_2" -unhide "a" -where did "a_2" go ? - - -085 pde -_ list of changes since rev 69? run through revisions.txt - +0085 pde +X list of changes since rev 69? run through revisions.txt +X update and finalize the faq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .