Re: [Pipmak-Users] File IO with Pipmak and image manipulation.
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2007-03-29 18:53:03
|
Andrea Viarengo wrote: > Here there is a very early development stage of the Autocubic project Wow, that's cool! Impressive how well that works. Reminds me of the semi-3D games on my TI calculator... A great example of creative misuse of Pipmak, too :) - it would never have occurred to me to use Pipmak for such a thing. I'm eager to see how far you can push this before hitting the limits of Pipmak... On to your questions: > Therefore I need to write a map editor (always using Pipmak), > for this reason I need the possibility to write and to read a text file. OK. How do you imagine locating the files? You'd need functions to display open/save dialogs, right? Thinking out loud, we could probably completely short-circuit the handling of paths by connecting file writing and reading directly to these dialogs via some opaque "file" objects. That would still disallow a script to read or write files without the user's permission, and it would also avoid stupid things like a developer working on Windows hardcoding paths with backslashes that don't work anywhere else. Another idea: Maybe you could store the world created using your system in the "state" table (conceptually considering it as a state of the Autocubic project) and load and save it using Pipmak's existing saved game functionality? > You understand also the the possibility to distort patch is very important to > this project... Yeah, obviously being able to place the corners of a patch arbitrarily in 3D would be very useful here. There would still be no depth testing, however, so you'd still have to create the patches ordered from back to front. -Christian |