3 ms·
Have you estimated the menory requirements for what you are proposing? Each brush stroke would need to store some image data for this to work. Just storing e.g.
by gmueckl 8y ago
Have you estimated the menory requirements for what you are proposing? Each brush stroke would need to store some image data for this to work. Just storing e.g. pen movement and rendering the result on the fly will likely not recreate the same result in an uodated version of the program, altering the image that the user created. Also, reopening complex files would take longer than users are willing to tolerate. The undo stack (which internally is pretty much an implementation of non-destructive editing) is about as far as you can bring the concept realistically.
Non-destructive workflows also have a huge maintenance problem: you can never again touch code that is involved in the creation of the final result after it has been released because it might break the user's files. It is not just the loading and storing part, but the whole backend can never be evolved in a reasonable way without breaking backward compatibility. After a while you sit on a pile of code for legacy operators and data models that you need to support and stops you from doing meaningful development.
I love non-destructive editing in many cases, but I also have some experiences with implementing that concept and this has shown me how constraining it is and how much effort it takes.
- chongli 8y agoEach brush stroke would need to store some image data for this to work. No, brush strokes would be stored as paths that simply record the input information needed to reproduce what the artist did with her mouse or stylus. I hear you about the issue of breaking changes though. I think it takes real discipline to develop a format that's adaptable and with the capability to let you migrate files without visible changes. It would take one hell of a test suite though.
- gmueckl 8y agoGoogle Tilt Brush saves brush on strokes. It takes roughly a minute to open a moderately complex sketch sketch in that program. The only way to not change the output is to match the the already released operators exactly. This is almost impossible unless you freeze the code for each operation after it has been released originally.
- chongli 8y agoWell, what if your image editor used an interpreter and the nondestructive edits were recorded in the document as scripts which, when replayed, construct that layer of the image. That way you can change the application all you want as long as you don't break the interpreter. As for Google Tilt Brush, well that's just a failure to use proper caching.
- gmueckl 8y agoProper caching brings us back to the question of memory usage that I started out with. For the record, I don't think that Tilt Brush can be accused of a failure to cache properly. It need to recreate sketched 3d models for VR and I thibk there is some kind of LOD stuff going on when creating the final geometry, based on the performance of the computer it is running on. And yes, any descriptions of nondestructive edits is by its nature a script that needs to be replayed by an interpreter to get the final state of the document. No matter the level at which you introduce the interpreter, you cannot upgrade it without risk to backwards compatibility to existing documents. And if you you want the script language to be low level enough so that the implementations of your operators need to be dumped into the document, then you need to (a) write about half of your program in said scripting language and (b) end up duplicating that in every dicument that is created.
- chongli 8y agoProper caching brings us back to the question of memory usage that I started out with. For the record, I don't think that Tilt Brush can be accused of a failure to cache properly. It need to recreate sketched 3d models for VR Oh, so Tilt Brush is 3D? So it's not at all comparable to a 2D image editor. I don't see how proper caching of a fully nondestructive editor should use any more space than a Photoshop document with a ton of layers. In fact, I think it could use a lot less, since Photoshop wastes tons of space when you duplicate source images in order to build up filtered layers with masks and so on. A nondestructive editor could save the space by not duplicating those source images so much. And if you you want the script language to be low level enough so that the implementations of your operators need to be dumped into the document, then you need to (a) write about half of your program in said scripting language and (b) end up duplicating that in every dicument that is created. Yes, this is what I had intended. But I don't think it's as bad as you say. You don't need to dump the bytecode (or equivalent) of your entire editor into every document, you only need to include the bytecode needed to reconstruct each of the edits made by the artist. The editor itself could even include the source code of all its operators and let the artist modify it as she goes. It would be like the Emacs of image editors!