pipmak-users Mailing List for Pipmak Game Engine (Page 27)
Status: Alpha
Brought to you by:
cwalther
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(16) |
Oct
(4) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(11) |
Jul
(6) |
Aug
|
Sep
(6) |
Oct
(8) |
Nov
(1) |
Dec
(5) |
2006 |
Jan
|
Feb
(1) |
Mar
(36) |
Apr
(2) |
May
(7) |
Jun
|
Jul
(1) |
Aug
(5) |
Sep
(22) |
Oct
(20) |
Nov
(3) |
Dec
(15) |
2007 |
Jan
(9) |
Feb
(2) |
Mar
(10) |
Apr
(14) |
May
(16) |
Jun
(30) |
Jul
(15) |
Aug
|
Sep
(2) |
Oct
(4) |
Nov
(11) |
Dec
(19) |
2008 |
Jan
(42) |
Feb
(8) |
Mar
(6) |
Apr
(12) |
May
(33) |
Jun
(9) |
Jul
(42) |
Aug
(7) |
Sep
(1) |
Oct
(21) |
Nov
(19) |
Dec
(6) |
2009 |
Jan
(22) |
Feb
(2) |
Mar
(5) |
Apr
(8) |
May
(12) |
Jun
(17) |
Jul
(5) |
Aug
|
Sep
(21) |
Oct
(32) |
Nov
(16) |
Dec
(24) |
2010 |
Jan
(1) |
Feb
|
Mar
(4) |
Apr
(5) |
May
(5) |
Jun
(8) |
Jul
|
Aug
|
Sep
(7) |
Oct
(4) |
Nov
(12) |
Dec
(4) |
2011 |
Jan
(7) |
Feb
(12) |
Mar
(13) |
Apr
(4) |
May
|
Jun
(4) |
Jul
(2) |
Aug
(5) |
Sep
|
Oct
(16) |
Nov
(8) |
Dec
(14) |
2012 |
Jan
(7) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(3) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2015 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(4) |
Aug
|
Sep
(4) |
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Wenzler, T. <we...@st...> - 2007-03-30 07:22:36
|
Dear Christian, =20 Since the Pipmak engine is not capable of playing Movies ort he like at the moment, would it be possible to launch some external Application from Pipmak to handle "cut scenes" ? Or is this a possible security hazard beause you don't know what kind of Application is launched to handle the Movieplaying? =20 Best Regards =20 Thomas |
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 |
From: Fabrizio P. <fpi...@li...> - 2007-03-29 09:41:45
|
Hello Andrea, I found yours a great idea! Congratulation! In this way should be possib= le create also complex worlds. Now works enough well but I'm not a progra= mmer so can't help but I want to say good luck! I'm also using PIPMAK for= a game called EternitY, can view some shots from this page up http://ser= yous.altervista.org/forum/index.php?op=3Dtopic&quale=3D1160757712&page=3D= 22 or read all the Italian forum http://seryous.altervista.org/forum/ if you= like to collaborate you're WEEELLLCOOOMEEE!!! :) ...this is harder than= I planned... Greetings, Fabrizio. ---------- Initial Header ----------- >From : pip...@li... To : pip...@li... Cc : Date : Wed, 28 Mar 2007 08:21:11 +0000 (UTC) Subject : Re: [Pipmak-Users] File IO with Pipmak and image manipulation. > I've re-upload a version with some little little improvements: > > Now you it's possible to see something through the doors.. > (but sometime what you see it's wrong...) > > You don't need to dezip the file autocubic.pipmak, and you can use it > in the standard way. > > Any comments? > > Bye > > Andrea > > > > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > =0A=0A=0A------------------------------------------------------=0ALeggi= GRATIS le tue mail con il telefonino i-mode=99 di Wind=0Ahttp://click.li= bero.it/imode=0A |
From: Andrea V. <and...@gm...> - 2007-03-28 08:21:54
|
I've re-upload a version with some little little improvements: Now you it's possible to see something through the doors.. (but sometime what you see it's wrong...) You don't need to dezip the file autocubic.pipmak, and you can use it in the standard way. Any comments? Bye Andrea |
From: Andrea V. <and...@gm...> - 2007-03-27 12:25:33
|
Hi, Here there is a very early development stage of the Autocubic project http://viarengo.altervista.org/download/autocubic.pipmak.zip 1) There aren't textures and objects 2) Through the doors you do not succeed to see the next room content 3) It's possible to pass through the walls without care if there is a door. 4) You have to decompress the zip file in the same folder of pipmak.exe Bye Andrea |
From: Andrea V. <and...@gm...> - 2007-03-27 07:29:08
|
Hi Christian, Thank you for the answer, I try to explain to you what I'm doing. I've written a pipmak project with just one cubic node, but this node is generated through patches reading from a map file. The prototype is working good, for the moment I've work just on indoor views and the effect is quite good (rooms and corridors are substantially cubes. Do you remember my last project "myHome virtual tour"?). Using this system you can create some spaces without the necessity to use a 3D/CAD application, So you can navigate inside space with hundred of panoramic views automatically generated... you have only to define some texture for the walls, the doors, the floors and the objects like furniture and so on... I believe this could approach more people to Pipmak, what do you think about that? Off course the views generated using 3D program is better, but sometime to do that is tedious... So you can automatically generate some parts of a project (not all), at least the simple parts... The internal views are more simple because I can use only one level of height (if the eyes of a man are located about at 1.75 meters, the height of my view, and of my cube is about 3.5 meters) The external view are more complicated because one level isn't sufficient to represent the reality with terrain, building with roofs etc.. I will think to the exteriors in a second time. The maps now is a tridimensional array loaded using dofile(), 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. You understand also the the possibility to distort patch is very important to this project... for the moment I use a square patch, and a trapezoidal view of the same square divided in 3 patch: an upper triangle,a middle rectangle and a lower triangle; this work good with walls without texture (only colored) but less good with far walls with texture... If you are interested, I can show you my first prototype. Bye Andrea |
From: Christian W. <cwa...@gm...> - 2007-03-26 17:47:38
|
Andrea Viarengo wrote: > I need to write and to read info from external file, I tried standard Lue IO lib > without success: > > for line in io.lines(filename) do ... end > > and > > for line in file:lines() do ... end > > How I can do that? The Lua IO library (along with the OS library) has deliberately been left out of Pipmak - it's considered a feature that Pipmak projects are not able to mess around with a user's files. Can you explain what exactly you want to do? We might find a solution that meets both goals. Also, you always have the option of compiling your own version of Pipmak that includes the IO library. If the file you want to read lives inside the project and can be brought into Lua form, you could also use pipmak.dofile(). > Second one: > It would be difficult implement in pipmak a method to distort a patch in a > perspective manner? > That is, a function which deform a rectangular patch in a > trapezial one, > passing 4 arbitrary points that lie on the surface of a cubic face. That should be quite easy, given that Pipmak uses OpenGL. Well, perspective distortion would only work on panoramic nodes because on flat nodes the camera is orthographic - you'd have to live with linear distortion there. > Another useful method would be a function to crop a patch. That shouldn't be too difficult either. It might get a bit messy together with the support of rigid margins/stretchable center for patches on flat nodes that's already in SVN, but it should be manageable. What are you trying to do with that? Maybe it could already be done using two overlapping patches, one covering the portions of the other that you want cropped away? -Christian |
From: Andrea V. <and...@gm...> - 2007-03-26 08:07:53
|
Hi Chris, I have two questions for you. The first: I need to write and to read info from external file, I tried standard Lue IO lib without success: for line in io.lines(filename) do ... end and for line in file:lines() do ... end How I can do that? Second one: It would be difficult implement in pipmak a method to distort a patch in a perspective manner? That is, a function which deform a rectangular patch in a trapezial one, passing 4 arbitrary points that lie on the surface of a cubic face. This think would be very usefull, so I haven't to create with photoshop a lot of different views of the same patch, but I could generate those with script. Another useful method would be a function to crop a patch. Thank you for your answers Ciao. Andrea |
From: Christian W. <cwa...@gm...> - 2007-02-01 18:56:45
|
I wrote: > Spam is getting worse now on this list as well. To stop this, I am > considering switching the list to subscriber-only posting, as I already > did on the Pipmak-Devel list three months ago. OK, done, after no negative and some (private) positive feedback. Posting on Pipmak-Users is now only allowed for list members, posts by non-members are held back for moderation. This should take care of the spam, which hopefully outweighs the slight inconvenience. -Christian |
From: Babette C. <fa...@ma...> - 2007-02-01 00:11:47
|
Hi, Purchase your medication from our site because it costs less. http://www.vodrx*.com - Remove "*" to make the link working! -- Knows what? said Ron, leaning forward. Knows what its like to be out there doing it, said George impressively. Doing what? said Harry. |
From: Christian W. <cwa...@gm...> - 2007-01-10 19:50:44
|
Fabrizio Pistonesi wrote: > local token > onenternode ( > function() token = pipmak.pushmousemode(pipmak.getmousemode()) > pipmak.setmousemode(pipmak.joystick) > end > ) > onleavenode ( > function() pipmak.popmousemode(token) end) > > -- (this node is overlayed) > _________________________________________________ > > Mouse cursor remains in the some mode of the previous node and "M" > keys doesn't work any more, not even reloading the nodes but "Shift" > key work. That sounds like the expected behavior to me. setmousemode (which is just what the M key uses) does work, but it affects the standard setting, i.e. the bottommost in the stack, which is not in effect when there are others above it on the stack, like the one you just pushed (and you explicitly set that to the previous standard setting). > On popmousemode() 'token' is not recognized as mode type Not sure what you mean by that. Yes, it's not a mode, it's an opaque token (or cookie or ticket or whatever you want to call it) that you can't use for anything but popmousemode(). If you can explain to me what you're trying to achieve with that code, I can perhaps clarify the documentation. I suspect that you're confused about how pushmousemode/popmousemode work (and if so, that's probably my fault for not explaining it properly, or maybe even mis-designing it). -Christian |
From: Fabrizio P. <fpi...@li...> - 2007-01-10 18:49:58
|
Hello, Maybe is a bug or only my stupid error but I report it however... local token onenternode ( function() token =3D pipmak.pushmousemode(pipmak.getmousemode()) pipmak.setmousemode(pipmak.joystick) end ) onleavenode ( function() pipmak.popmousemode(token) end) -- (this node is overlayed) _________________________________________________ Mouse cursor remains in the some mode of the previous node and "M" keys d= oesn't work any more, not even reloading the nodes but "Shift" key work. = On popmousemode() 'token' is not recognized as mode type Regars, Fabrizio.=0A=0A=0A-----------------------------------------------= -------=0APassa a Infostrada. ADSL e Telefono senza limiti e senza canone= Telecom=0Ahttp://click.libero.it/infostrada10gen07=0A |
From: Fabrizio P. <fpi...@li...> - 2007-01-08 21:02:26
|
> Fabrizio Pistonesi wrote: > > pipmak.schedule( > > 0.25, > > function() > > --mouth =3D math.mod(mouth + 1, 3) > > mouth =3D math.floor(math.random() * 3) > > --pipmak.dissolve() > > Jassy2:setimage("speech_" .. mouth .. ".png") > > i =3D i +1 > > if i =3D=3D 25 then pipmak.gotonode(4)end > > return 0.25 > > end > > ) > > > > the problem is when i come back to node 4 pipmak is still looking for= > > speech_x.png files and doesn't find it so the exclamation point > > picture is shown instead the "Jassy" patch therefore I need that the > > schedule stops. In the reference PDF is written that leaving a node > > removes all of its timers but seems it isn't true... (Using Pipmak v > > 0.2.6) > > Good catch. That's a bug. I didn't anticipate that a timer could change= > nodes when I wrote the timer code. (This stuff is written in Lua, by th= e > way, if you'd like to have a go at fixing it yourself: > pipmak_internal.runtimers() in Pipmak Resources/resources/defaults.lua = > (line 234 in rev. 133).) > > What happens (I assume, at least - I haven't actually tried it yet) is = > that by the time the timer is re-scheduled because it returned > something, you're already on node 4, and the > deleting-timers-on-node-change is already past. You should be able to > work around it by conditionalizing the return too: > > if i =3D=3D 25 then pipmak.gotonode(4) > else return 0.25 end > > I'll try to come up with a proper solution. I somehow suspect that ther= e > might be other problems of this nature hiding in there... > > > Thanks for the report! > > -Christian Maybe this bug could be useful for some purpose however I've fixed it wit= h if i =3D=3D 25 then pipmak.gotonode(4)else return 0.25 end but removing "return 0.25" in the last line. with 'return 0.25' the patch on node 4 appears ok but after this delay th= e schedule restart. I guess, I didn't understood it very well but it seems works! Thanks, Fabrizio.=0A=0A=0A-----------------------------------------------= -------=0APassa a Infostrada. ADSL e Telefono senza limiti e senza canone= Telecom=0Ahttp://click.libero.it/infostrada08gen07=0A |
From: Christian W. <cwa...@gm...> - 2007-01-08 20:19:26
|
Fabrizio Pistonesi wrote: > pipmak.schedule( > 0.25, > function() > --mouth = math.mod(mouth + 1, 3) > mouth = math.floor(math.random() * 3) > --pipmak.dissolve() > Jassy2:setimage("speech_" .. mouth .. ".png") > i = i +1 > if i == 25 then pipmak.gotonode(4)end > return 0.25 > end > ) > > the problem is when i come back to node 4 pipmak is still looking for > speech_x.png files and doesn't find it so the exclamation point > picture is shown instead the "Jassy" patch therefore I need that the > schedule stops. In the reference PDF is written that leaving a node > removes all of its timers but seems it isn't true... (Using Pipmak v > 0.2.6) Good catch. That's a bug. I didn't anticipate that a timer could change nodes when I wrote the timer code. (This stuff is written in Lua, by the way, if you'd like to have a go at fixing it yourself: pipmak_internal.runtimers() in Pipmak Resources/resources/defaults.lua (line 234 in rev. 133).) What happens (I assume, at least - I haven't actually tried it yet) is that by the time the timer is re-scheduled because it returned something, you're already on node 4, and the deleting-timers-on-node-change is already past. You should be able to work around it by conditionalizing the return too: if i == 25 then pipmak.gotonode(4) else return 0.25 end I'll try to come up with a proper solution. I somehow suspect that there might be other problems of this nature hiding in there... Thanks for the report! -Christian |
From: Fabrizio P. <fpi...@li...> - 2007-01-08 18:25:52
|
Hello, On node 4 I've a patch called Jassy, when I click on an hotspot i go to n= ode 5 where is another patch called Jassy2 and i use this code to animate= it: local Jassy2 =3D patch { face =3D 4, x =3D 100, y =3D 0, w =3D 768, h =3D= 768, image =3D "speech_0.png" } local mouth =3D 0 local i =3D 1 onenternode ( function() pipmak.schedule( 0.25, function() --mouth =3D math.mod(mouth + 1, 3) mouth =3D math.floor(math.random() * 3) --pipmak.dissolve() Jassy2:setimage("speech_" .. mouth .. ".png") i =3D i +1 if i =3D=3D 25 then pipmak.gotonode(4)end return 0.25 end ) end ) the problem is when i come back to node 4 pipmak is still looking for spe= ech_x.png files and doesn't find it so the exclamation point picture is s= hown instead the "Jassy" patch therefore I need that the schedule stops. = In the reference PDF is written that leaving a node removes all of its ti= mers but seems it isn't true... (Using Pipmak v 0.2.6) Thanks, Fabrizio.=0A=0A=0A-----------------------------------------------= -------=0APassa a Infostrada. ADSL e Telefono senza limiti e senza canone= Telecom=0Ahttp://click.libero.it/infostrada08gen07=0A |
From: Christian W. <cwa...@gm...> - 2007-01-03 21:03:54
|
Spam is getting worse now on this list as well. To stop this, I am considering switching the list to subscriber-only posting, as I already did on the Pipmak-Devel list three months ago. Are there any objections against this? It would mean that if you're not subscribed and send e-mail to <pip...@li...> (or post through Gmane), your post will be held for moderation and may only appear on the list a few days later when I have had time to review it. For subscribers, posting will continue to work as it always did. If you're reading the list through Gmane or on the web and don't want to receive its posts by e-mail, but still want to be able to post directly, note that you can subscribe and turn off e-mail delivery in your subscription options <https://lists.sourceforge.net/lists/options/pipmak-users>. -Christian |
From: Christian W. <cwa...@gm...> - 2007-01-03 11:09:59
|
The Pipmak web site now includes a wiki: <http://pipmak.sourceforge.net/wiki/index.php>! This is intended as a community-maintained repository of notes, hints, how-tos, answers to frequently asked questions, tutorials, Lua code snippets, and other articles related to Pipmak. It's still somewhat empty at the moment, but I hope it will grow into a useful resource over time. So, if you've got anything to share, any contributions are welcome! -Christian |
From: Andrew B. <ab...@re...> - 2006-12-26 22:21:37
|
-------------------------------- Andrew Ballard Business Guru & All-round Nice Guy ab...@re... mob: 0410 533 150 REBUSINESS work smarter. look better. |
From: Christian W. <cwa...@gm...> - 2006-12-24 20:15:33
|
Pipmak 0.2.6 is out! This release includes a variety of bug fixes and minor new features. Most important among them a 'New Project' button in the main menu that creates a skeleton project to build on - a feature that I hope will make Pipmak more accessible to newcomers, even though it does not actually do much. There are also some improvements in the way mouse modes (direct/joystick) are handled. Download Pipmak for Mac OS X, Windows, or Linux as well as the updated demo project from <http://pipmak.sourceforge.net/downloads.php> or read the detailed release notes at <http://sourceforge.net/project/shownotes.php?release_id=473726&group_id=112801>. -Christian |
From: Nathan W. <nat...@ma...> - 2006-12-24 00:41:10
|
For me: (this includes a good PipMak game too) 1. Gameplay - Good Puzles, but, not stupid hard (something that's logical). I like puzzles that aren't like those little pictures on a 3x3 grid and one's missing so that you can slide another in it's place. Puzzles like that, to me at least, are very boring. Others may like them though. 2. Storyline - For a PipMak game this wouldn't be critical if the other game elements are on key, but, if they're lacking then this would have to be very intriguing. 3. Graphics - Photo real 4. Music - Good music is a must. Sound effects would be up there too if the graphics were photo real. The tool I use mainly is LightWave, but, you could use Maya, 3dS Max (Myst III), XSI, Blender, etc... I wouldn't use Strata as they use some weird calculations in there renders so the images aren't seamless if you render out a cube. Plus, the lighting changes when you change camera angles. -----Original Message----- From: pip...@li... [mailto:pip...@li...] On Behalf Of Urs Holzer Sent: Friday, December 22, 2006 3:36 PM To: pip...@li... Subject: [Pipmak-Users] What is a good game? Hello Since it is rather silent on this mailing list, I ask some questions: 1. A good game, what does this mean for you? Why do you play a game? Which requirements does it have to fullfill? How do you play it? 2. How about a good Pipmak-game: How should it look like? Which tools should be used to create it? I'm looking forward to see your answers! Merry Christmas Urs ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |
From: Urs H. <ur...@an...> - 2006-12-22 21:32:09
|
Hello Since it is rather silent on this mailing list, I ask some questions: 1. A good game, what does this mean for you? Why do you play a game? Which requirements does it have to fullfill? How do you play it? 2. How about a good Pipmak-game: How should it look like? Which tools should be used to create it? I'm looking forward to see your answers! Merry Christmas Urs |
From: Fabrizio P. <fpi...@li...> - 2006-12-09 21:11:26
|
> fpistonesi wrote: > > I' have to make a slide control, to do so I have to move a panel > > Are you sure you want to move a panel, not a patch? Panels are not > really made for this. (Though perhaps that could be changed if you can = I haven't thought to use a patch! Thanks! Fabrizio=0A=0A=0A------------------------------------------------------=0A= Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom=0A= http://click.libero.it/infostrada09dic06=0A |
From: Christian W. <cwa...@gm...> - 2006-12-09 15:47:19
|
fpistonesi wrote: > I' have to make a slide control, to do so I have to move a panel Are you sure you want to move a panel, not a patch? Panels are not really made for this. (Though perhaps that could be changed if you can explain why using a panel for this is useful.) > using moveby() method with x or y value of mouseminusclickloc() but how can I limit the range? I don't think moveby() is the right tool for this. The purpose of moveby() is to adjust both the relative and the absolute part of the panel's position in such a way that the panel moves sensibly when the window is resized - if you put it in the center of the window, then resize the window, it will stay centered; if you put it 10 pixels from the right edge, it will stay at 10 pixels from the edge, etc. Assuming that the slider track is on a slide, the proper solution is to keep the absolute part fixed (to the negative of the center of the panel, or whichever point is "attached" to the track) and only modify the relative part. That would work about as follows (it's a mess because, as I said, you're using panels in ways that they weren't intended for): While dragging, add the difference from the click location to the center (or the "fixed point") of the panel to the mouse location. Convert this point from the panel's coordinate system to screen-relative coordinates using the panel's current location and the pipmak.screensize() function. Then clamp that value to the allowed range, and set the relative part of the panel position to it. (I hope you can work out the math on your own, I'd have to spend more time on it as well.) Oh wait, I just found that there's no public method that returns the position of a panel - that's a deficiency that I'll have to fix for 0.2.6. Meanwhile, you can use the <panel>.relx, <panel>.rely, <panel>.absx, <panel>.absy instance variables, but that's not officially supported and might cease to work in a future version. > I think I have to use the mouseloc() coords of the background node but I cannot understand how to pass it to the overlayed panel. To pass things between nodes, you generally use "messages { ... }" and the "message()" method of a node. As an example, have a look at the inventory in the demo project (node 50) and how it's used from node 16. > Another doubt:if on node A MyNode = pipmak.thisnode(),on node B MyNode is still node A? Yes. Each node is represented by a distinct Lua object that is not modified by Pipmak once it's created (I think) (except to invalidate it when the node is left), and Pipmak doesn't assign any new values to global variables you define either. > There's a method that returns the coordinates(x,y) of a node? I can't think of any meaningful definition of the coordinates of a panorama or a slide, but for panels you're right that such a method should exist. As I said above, it currently doesn't, but I just fixed this in Subversion. Thanks for spotting this. If you don't want to wait for the release, you can apply the fix yourself to resources/defaults.lua in the "Pipmak Resources" archive: <http://svn.sourceforge.net/viewvc/pipmak/trunk/pipmak/resources/resources/defaults.lua?r1=119&r2=133> Hope this helps Christian |
From: fpistonesi <fpi...@li...> - 2006-12-08 20:23:34
|
I' have to make a slide control, to do so I have to move a panel using m= oveby() method with x or y value of mouseminusclickloc() but how can I li= mit the range? I think I have to use the mouseloc() coords of the background node but I = cannot understand how to pass it to the overlayed panel. Another doubt:if on node A MyNode =3D pipmak.thisnode(),on node B MyNode = is still node A? There's a method that returns the coordinates(x,y) of a node? Maybe are too many questions ^_^ but I'm a little confused... Thanks.=0A=0A=0A------------------------------------------------------=0A= Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom=0A= http://click.libero.it/infostrada08dic06=0A |
From: trap t. <hsa...@oz...> - 2006-12-05 14:08:36
|
47082 |