Thread: [Pipmak-Users] [pipmak-users] hotspot maps
Status: Alpha
Brought to you by:
cwalther
From: Riko-kun <wa...@ma...> - 2007-11-21 00:15:38
|
Hi. I have just find this engine and it looks nice i have to say. I have just one question. How can i create the hotspot map? Oh yeah, i know there is some tutorial on wiki, but let's say that it's little bit vage. I was looking at hotmaps in demo and such, but i still don't get it. Is it some kind of puzzle? ^_^ -- View this message in context: http://www.nabble.com/hotspot-maps-tf4847257.html#a13868750 Sent from the pipmak-users mailing list archive at Nabble.com. |
From: Andrea V. <and...@gm...> - 2007-11-21 08:33:45
|
Hi, And before all, Welcome to this forum! Pipmak is still in a development stage, some parts are quite finished, other could be improved. The idea is to create hotspots directly from the Pipmak window, but this feature is in a very initial stage, and you should wait next and next releases. But isn't difficult create hot spot with a graphic application like The Gimp, Paintshop Pro or Photoshop. You have only to create the "equirect image" of your node, this is simple, because is sufficient to add some extra code to your node.lua: ---------------------------- cubic {"front.jpg","left.jpg","back.jpg","right.jpg","top.jpg","bottom.jpg"} onenternode( function() pipmak.saveequirect() end) ---------------------------- When you enter in the node, The onenternode section execute statement pipmak.saveequirect() which reprojects the current (panoramic) node to an equirectangular image and saves it as equirect.bmp inside the node folder. After that you can open "equirect.bmp" with a graphic program which support layers , create a second, empty layer over the image, and color the area which you want to use as an hotspot, different hotspots have different colors taked from palette, Color index 0 means background, color index 1 is the first hotspot, index 2 the second etc, you can found a particularly suitable palette with easily distinguishable colors in the source distribution of Pipmak in "hotspot-palette.gif" located in the "extras" folder, or you can use palette taken from the hotspot maps in the demo. Now you can save the second layer created as a PNG 24 bits and use it as hotspot map. Another way (only programmatic, i.e.: you don't need any extra program) is to use "handle" instead "hotspots". With "handles" you can specify rectangular regions (using elevation and azimuth) in your panoramic node: handle { az = 90, el = 45, w = 90, h = 90, onmouseup = function(self) pipmak.dissolve(2) pipmak.gotonode(next_node) end, cursor = pipmak.hand_forward } Where az,el,w,h are expressed in degrees and next_node is you target node. You can create every handles you need, the limitation respect hotspots is which handle can be only rectangular, instead hotspot could have every shape. I hope that this could be useful for you. Bye. |
From: Riko-kun <wa...@ma...> - 2007-11-21 09:29:39
|
Hi. Thank you very much. I have found about this function already, but i wasn't able to implement it yet, cause i have never used lua scripts before. I will try it and hopefully it will work. Thanks Riko -- View this message in context: http://www.nabble.com/hotspot-maps-tf4847257.html#a13873783 Sent from the pipmak-users mailing list archive at Nabble.com. |
From: Riko-kun <wa...@ma...> - 2007-11-21 13:53:15
|
Ok, it works. I just needed to know, how to export that panoramatic view. Thank you very much. Have you any clue, whne can we expect new version of Pipmak, by the way? I'm using SVN build 157 now, because of it's authoring features, but some new features woul'd be greate. The fulscreen handling from build 160 for exmple. And i'm still hoping for divx support for FMVs in my games ^_^ Riko -- View this message in context: http://www.nabble.com/hotspot-maps-tf4847257.html#a13877575 Sent from the pipmak-users mailing list archive at Nabble.com. |
From: Christian W. <cwa...@gm...> - 2007-11-21 20:08:03
|
Riko-kun wrote: > How can i create the hotspot map? Oh yeah, i know there is > some tutorial on wiki, but let's say that it's little bit vage. I was > looking at hotmaps in demo and such, but i still don't get it. Is it some > kind of puzzle? ^_^ As it seems Andrea's answer has helped you solve the puzzle, I was going to suggest that you improve the vague description on the wiki, but I've just seen that Andrea has already taken care of that - thanks Andrea! > Have you any clue, whne can we expect new version of Pipmak, by the way? When it's done :). There are still a couple of bugs that need to be fixed, and I need to finish the Lua command line panel and table inspector that I'm working on. As you've probably noticed, I haven't had much time to work on Pipmak lately (I haven't even gotten around to have a look at Andrea's months-old contributions on the developer list - sorry Andrea). I hope I'll be able to complete the long overdue release over the holidays, but no promises, as usual. > And i'm still hoping for divx support for FMVs in my games ^_^ Hmm, isn't divx some kind of MPEG-4 and therefore patent-encumbered? That would pretty much rule out its use in Pipmak, as I don't want to have potential users for commercial projects turned away by fear of lawsuits. And paying licence fees isn't much of an option for an open-source project either. -Christian By the way, if you plan to continue using this mailing list, please consider subscribing on https://lists.sourceforge.net/lists/listinfo/pipmak-users . That would save me the work of manually approving all your posts. You can turn off mail delivery if you only read the list on Nabble or Gmane. |
From: Riko-kun <wa...@ma...> - 2007-11-22 10:40:17
|
Thank you for your answers. >> And i'm still hoping for divx support for FMVs in my games ^_^ >Hmm, isn't divx some kind of MPEG-4 and therefore patent-encumbered? >That would pretty much rule out its use in Pipmak, as I don't want to >have potential users for commercial projects turned away by fear of >lawsuits. And paying licence fees isn't much of an option for an >open-source project either. That's true. so what about ffmpeg? http://en.wikipedia.org/wiki/FFmpeg That shoul'd be ok, even Blender is using it in some builds. Anyway, video support woul'd be awsome ^_^ >By the way, if you plan to continue using this mailing list, please >consider subscribing on >https://lists.sourceforge.net/lists/listinfo/pipmak-users . That would >save me the work of manually approving all your posts. You can turn off >mail delivery if you only read the list on Nabble or Gmane. Done that, hope it works... Riko -- View this message in context: http://www.nabble.com/hotspot-maps-tf4847257.html#a13894440 Sent from the pipmak-users mailing list archive at Nabble.com. |
From: Christian W. <cwa...@gm...> - 2007-11-22 21:33:28
|
Riko-kun wrote: > That's true. so what about ffmpeg? http://en.wikipedia.org/wiki/FFmpeg > That shoul'd be ok, even Blender is using it in some builds. Anyway, video > support woul'd be awsome ^_^ FFmpeg implements a lot of patented algorithms as well. I don't know if it can be compiled in a way that only includes unproblematic codecs. Right now I'm leaning towards using Ogg Theora exclusively, at least for the first step, as I already did with Vorbis for sound. But nothing has been decided yet, and video support is still a considerable way off in the future. -Christian |
From: Riko-kun <wa...@ma...> - 2007-11-22 22:11:41
|
Ok. I just walked through the wiki page real quickly. I was looking for Xvid too, but it is problematic too. Vorbis is good for me. It's good to know you are considering implementing video support. It's just that i vould like to have some FMVs in my "game". Going back to learning about lua and stuff, see you later. Riko Christian Walther wrote: > > Riko-kun wrote: >> That's true. so what about ffmpeg? http://en.wikipedia.org/wiki/FFmpeg >> That shoul'd be ok, even Blender is using it in some builds. Anyway, >> video >> support woul'd be awsome ^_^ > > FFmpeg implements a lot of patented algorithms as well. I don't know if > it can be compiled in a way that only includes unproblematic codecs. > > Right now I'm leaning towards using Ogg Theora exclusively, at least for > the first step, as I already did with Vorbis for sound. But nothing has > been decided yet, and video support is still a considerable way off in > the future. > > -Christian > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pipmak-Users mailing list > Pip...@li... > news://news.gmane.org/gmane.games.devel.pipmak.user > https://lists.sourceforge.net/lists/listinfo/pipmak-users > > -- View this message in context: http://www.nabble.com/hotspot-maps-tf4847257.html#a13904167 Sent from the pipmak-users mailing list archive at Nabble.com. |