Thread: [Pipmak-Devel] Authoring features: What I am doing...
Status: Alpha
Brought to you by:
cwalther
From: Andrea V. <and...@gm...> - 2007-07-31 12:17:31
|
Hello Christian and Fabrizio, I want to show you what I'm doing. I have post a build (for Windows only, I'm sorry Chris, but I'm sure you could execute the same...) with preliminary Authoring features as I described in the Wiki. I want to clean up and tidy up the code before show it to you... My build is based on SVN 157 (i.e.: there aren't windows icon and fullscreen management). Download here: http://viarengo.altervista.org/download/Pipmak-157av.zip Try and tell me what you think about!! First exercise: Create a new project, close new project panel and after press F1 to enter "Authoring mode". Click (with Right or Left button) to view menu Go to "Face selection mode" and after click on a face to select it, click another time to load an image (you can choice a file in all your computer) Second exercise: With no face selected, click to show menu and select "Open project map". Try to add new nodes. Third exercise: Open demo.pipmak and view the project map and navigate in the project. All the dialog boxes are pipmak panels in the "Pipmak Resources" (I have leave this uncompressed) loaded as overlay node. There are nothing as definitive, the contents of menus and/or dialog boxes will change... I have added 4 source files: parserLua.c/.h and gui.c/.h with all the C function which I have added. Pay attention that you cannot modify project inside zipped file *.pipmak but only in uncompressed directory *.pipmak (Seems that Physfs can only read from zip, but cannot write into - Christian, do you confirm?) If you try to open "EthernitY" or "My House Virtual tour" and visualize the project map, after some pages (clicking on down arrow) you get an assertion failed on image->isFile=0 You can go ahead clicking on "ignore"... I'm not understand why until now: I'm loading a dialog background and after I write inside using drawtext, this panel is closed and opened a lot of time during project map navigation (if project have a lot of nodes, and therefore a lot of pages). Pipmak should set image->isFile to 0 when someone modify the image, so when the dialog background will be recalled, pipmak reload the original file and not the image in the cache, but sometime (randomly) doesn't work...and isFile=0 as data=0. 1) Christian, there is something wrong in how I build panel -40? 2) Christian, you think that this could be integrated with what you have in mind? Andrea |
From: Christian W. <cwa...@gm...> - 2007-08-06 19:45:04
|
Andrea Viarengo wrote: > Create a new project, close new project panel and after press F1 to > enter "Authoring mode". > Click (with Right or Left button) to view menu > Go to "Face selection mode" and after click on a face to select it, > click another time to load an image (you can choice a file in all your > computer) It crashes when I click on a face in "face selection" mode. > With no face selected, click to show menu and select "Open project map". > Try to add new nodes. Seems to work nicely. I wouldn't call this a "map" but rather a "list" (what I have in mind for a "map" looks different). I can definitely see having such a thing in Pipmak until the full project map is ready, or even permanently as an alternative to the map. Why does it mess with the interpolation setting? > Pay attention that you cannot modify project inside zipped file *.pipmak > but only in uncompressed directory *.pipmak (Seems that Physfs can only > read from zip, but cannot write into - Christian, do you confirm?) Yes, that's right. Files inside a zipped project must just be treated as read-only by any editing features. > If you try to open "EthernitY" or "My House Virtual tour" and visualize > the project map, after some pages (clicking on down arrow) you get an > assertion failed on image->isFile=0 I already get this when opening the node list for the first time in "My House Virtual Tour". I'll see if I can reproduce it on Mac OS X and debug it. Perhaps something unexpected happens when images are tossed out of the cache, or something. > 1) Christian, there is something wrong in how I build panel -40? Not that I can see at first sight. I never considered the possibility that anyone would draw on the background image of a panel, but of course that should work. "../" .. nodeList[i].id .. "/" .. nodeList[i].images[j] doesn't work if nodeList[i].images[j] starts with "..", but I haven't checked if that occurs. > 2) Christian, you think that this could be integrated with what you have > in mind? Parts of it, sure. In particular, the node list looks promising. On others, I feel I'm unable to judge because I haven't approached the problem myself yet. First, a few random subjective comments purely from a user's perspective, without having examined the code: - Too many modes for my taste. Don't mode me in. I often found myself wanting to do something like move to another node and thinking, "Hey, why doesn't that work? Ah, right, I'm still in authoring mode." - I'm confused as to under what circumstances authoring mode switches to the pan tool. - The node editing menu behaves as a weird mixture of a utility window and a menu - e.g. it doesn't go away when you click outside of it. I realize that's not your fault because the "panel" node type is just designed for utility windows, not for menus. - Since bringing up the menu is the only thing you can do in authoring mode, why not display it all the time when in that mode, as a real utility window? That would even serve as a more obvious visual indication that we're in authoring mode (whether that's enough of an excuse to get away with modes remains to be seen). To save space, it could slide out of the way when unused (like the inventory in the demo project). I feel a bit bad for leaving you working on this without any guidance from my part on where I intend things to be going. I should probably sit down and try to write up at least the parts that have been floating around in my head up until now. On the one hand I welcome your desire to get something done at a time where my own development activity on Pipmak is all but dormant. On the other hand, this GUI design stuff just happens to be a domain where I tend to have very specific ideas on how things should work, and I fear that I'd end up rejecting a great part of your hard work because it doesn't fit with my ideas of a pixel-perfect, user-friendly GUI, when that is not your fault because I never told you what these ideas are. :/ -Christian |
From: Fabrizio P. <fpi...@li...> - 2007-08-10 19:23:17
|
Hi Christian, I would like to help you but I think I can't do much but maybe as user I can suggest you something: 1. The only difficult thing I encountered was making hotspots: whatever way that help to set navigation could be ok. If there are problems with the hotspots drawing, handles could be ok anyway. Do you remeber as I used the color palette as hotspot-map? somthing like this? not very efficient but helpful! 2. A simple system with previous and next to browse the nodes is always better than press L and type "pipmak.gotonode(..)" and close the command line ;-) 3. What about video patches? I've found libsmpeg (http://icculus.org/smpeg/) but I've seen with Andrea that occur some problems during the compiling process but I've found an old working version in Phobia III (http://www.redlynx.com/phobiaIII/) many users will appreciate it as some eye-candy effects like water etc. I hope this would be helpful. Best regards, Fabrizio. |
From: Christian W. <cwa...@gm...> - 2007-08-11 12:13:41
|
Hello Fabrizio > If there are problems with the hotspots drawing, handles could be ok anyway. The only problem I can see with hotspot drawing is that nobody has gotten around to finish it so far. :) Interactive handle placement hasn't even been started yet. > 2. A simple system with previous and next to browse the nodes is > always better than press L and type "pipmak.gotonode(..)" and close > the command line ;-) Sure, why don't you implement such a thing? Doesn't sound too hard, and it should be possible without any changes on the C side. > 3. What about video patches? As far away as ever... I'm aware of SMPEG but I have not decided whether it's the way to go. For the foreseeable future I really need to focus on the stuff needed to get the long overdue release out - finish the Lua command line panel and fix the patch placement bug introduced with the arbitrary 3D placement, off the top of my head. As always, the problem is not lack of ideas on what to do, but lack of time to do it. -Christian |
From: Andrea V. <and...@gm...> - 2007-09-05 15:51:37
|
Hi, Fab I tried your code, but I didn't get the error message!!! Can you send me a pipmak project which generate the error? Some note: 1) There aren't message written in italian inside the code of build 160 modified by me, I think that the language of the message depend from language of your OS (Windows), Also I get some error message in Italian... 2) Do you have a node "31" in your project? (or the error is relative to node "-31" which I have added to official build 160) 3) I image that you are in running mode and not in authoring mode, it's true? 4) Did you use txtSystem in other part of the project? 5) Had you tried with my previous build 155 (you can found it on my site) ? Andrea 2007/8/18, Fabrizio Pistonesi <fpi...@li...>: > > Hi Christian, > If doesn't the metter or is already fixed, sorry to bother you... > I've encountered a strange error message in Pipmak-SVN-157 for Windows > built by Andrea. > It say: *"Error loading image "31/[Salva | Carica | Esci]": The sintax of > file name or directory or volume is incorrect".* > The string above is only a Text to draw into an image. All is displayed > correctly and this message is shown only once. > > [...] > local imgSystem = pipmak.newimage(640,20) > imgSystem:color(0,0,0) > local txtSystem = "[Salva | Carica | Esci]" > imgSystem:drawtext(320, 0, txtSystem, "../fonts/anger.ttf", 12, pipmak. > center) > local System = patch {image = imgSystem, x = -5, y = 75} > [...] > executed on an overlaying node. > > Fabrizio. > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Pipmak-Devel mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.devel > https://lists.sourceforge.net/lists/listinfo/pipmak-devel > |
From: Fabrizio P. <fpi...@li...> - 2007-09-11 17:09:12
|
Hi Andrea, Andrea Viarengo wrote: > Hi, Fab > > I tried your code, but I didn't get the error message!!! > Can you send me a pipmak project which generate the error? > Some note: > > 1) There aren't message written in italian inside the code of build > 160 modified by me, I think that the language of the message depend > from language of your OS (Windows), Also I get some error message in > Italian... Is your build 157. Infact sound me strange that there was some Italian inside > 2) Do you have a node "31" in your project? (or the error is relative > to node "-31" which I have added to official build 160 Yes, is this node indeed. > 3) I image that you are in running mode and not in authoring mode, > it's true? Right, it happens in run mode. > > 4) Did you use txtSystem in other part of the project? Yes, but I ain't no problems > > 5) Had you tried with my previous build 155 (you can found it on my > site) ? Ehrm... no :-) ... I haven't had this idea Here is the project : http://rapidshare.com/files/54971189/Engine.zip.html It's very strange, I can't understand how it happens |
From: Fabrizio P. <fpi...@li...> - 2007-08-18 20:59:22
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi Christian,<br> If doesn't the metter or is already fixed, sorry to bother you...<br> I've encountered a strange error message in Pipmak-SVN-157 for Windows built by Andrea.<br> It say: <i>"Error loading image "31/[Salva | Carica | Esci]": The sintax of file name or directory or volume is incorrect".</i><br> The string above is only a Text to draw into an image. All is displayed correctly and this message is shown only once.<br> <br> [...]<br> <style type="text/css"> .S0 { color: #808080; } .S4 { color: #007F7F; } .S6 { color: #7F007F; } .S10 { font-weight: bold; color: #000000; } span { font-family: 'Verdana'; color: #000000; font-size: 10pt; } </style><span>local<span class="S0"> </span>imgSystem<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>pipmak<span class="S10">.</span>newimage<span class="S10">(</span><span class="S4">640</span><span class="S10">,</span><span class="S4">20</span><span class="S10">)</span><br> imgSystem<span class="S10">:</span>color<span class="S10">(</span><span class="S4">0</span><span class="S10">,</span><span class="S4">0</span><span class="S10">,</span><span class="S4">0</span><span class="S10">)</span><br> local<span class="S0"> </span>txtSystem<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span><span class="S6">"[Salva | Carica | Esci]"</span><br> imgSystem<span class="S10">:</span>drawtext<span class="S10">(</span><span class="S4">320</span><span class="S10">,</span><span class="S4"> 0</span><span class="S10">,</span><span class="S0"> </span>txtSystem<span class="S10">,</span><span class="S0"> </span><span class="S6">"../fonts/anger.ttf"</span><span class="S10">,</span><span class="S0"> </span><span class="S4">12</span><span class="S10">,</span><span class="S0"> </span>pipmak<span class="S10">.</span>center<span class="S10">)</span><br> local<span class="S0"> </span>System<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>patch<span class="S0"> </span><span class="S10">{</span>image<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>imgSystem<span class="S10">,</span><span class="S0"> </span>x<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span><span class="S10">-</span><span class="S4">5</span><span class="S10">,</span><span class="S0"> </span>y<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span><span class="S4">75</span><span class="S10">}</span></span> <br> [...]<br> executed on an overlaying node.<br> <br> Fabrizio.<br> <br> <br> <br> </body> </html> |
From: Christian W. <cwa...@gm...> - 2007-08-19 08:22:40
|
Fabrizio Pistonesi wrote: > I've encountered a strange error message in Pipmak-SVN-157 for Windows > built by Andrea. > It say: /"Error loading image "31/[Salva | Carica | Esci]": The sintax > of file name or directory or volume is incorrect"./ Hmm... seeing as there's an italianism (syntax -> sintax) in it, I suppose that error message must have been written by Andrea. Also, I can't see how the string you give to drawtext() would end up in the path field of the image. My code doesn't do that, and as far as I can see the patch that Andrea sent me doesn't do it either. Unless something *really* wrong is going on. So, unless you can reproduce this with an unmodified Pipmak, my conclusion for the moment is that only Andrea can answer this question. -Christian |
From: Fabrizio P. <fpi...@li...> - 2007-08-19 22:25:12
|
Hello Christian, the last unmodified version i can use is the 0.2.6 because I'm still unable to compile from source. I confirm that the message was in italian, I've just trnslated it. I've also noticed that this error seems happens every 10 time that the node is loaded and not only the first time, strange! I will wait Andrea for make some test with another versions of Pipmak... Fabrizio Christian Walther wrote: > Fabrizio Pistonesi wrote: > >> I've encountered a strange error message in Pipmak-SVN-157 for Windows >> built by Andrea. >> It say: /"Error loading image "31/[Salva | Carica | Esci]": The sintax >> of file name or directory or volume is incorrect"./ >> > > Hmm... seeing as there's an italianism (syntax -> sintax) in it, I > suppose that error message must have been written by Andrea. > > Also, I can't see how the string you give to drawtext() would end up in > the path field of the image. My code doesn't do that, and as far as I > can see the patch that Andrea sent me doesn't do it either. Unless > something *really* wrong is going on. > > So, unless you can reproduce this with an unmodified Pipmak, my > conclusion for the moment is that only Andrea can answer this question. > > -Christian > |