Plugin: DayNight  

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Plugin: DayNight

by 360-compunics-com-ni » Thu Sep 08, 2016 11:51 pm

I would like to present my version of a "Day/Night"-plugin to enable the creation of "Hybrid-tours", which is avaliable for free at: http://dev.compunics.com.ni/

Any number of correlated pano-pairs can be made switchable keeping the current view by following this naming convention:

Name both scenes identical, then append the value of the 'Identifier for Day/Night-scenes' to the 'Night'-scene only.
You can define any identifiyng string in the configuration settings (this is: ' by night' by default).
This way, the two panos named "Tiergarten" and "Tiergarten by night" would become switchable.
IMPORTANT: if the identifier string contains blanks, it has to be enclosed in single quotes!.

If you untick the 'Restrict Day/Night-matching panos'-checkbox the plugin searches for matches looking up ALL panonames of your project, otherwise it only looks in the current group. Be sure to not use the same panoname multiple times, that is for more than the two 'Day and Night'-panos.

The plugin has been tested with PTP V2.5.3 on Linux, feel free to use at your own risk!
Attachments
DayNight-Settings-V1-0.png
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Fri Jul 28, 2017 9:52 pm

hello. I have your plugin but trying to figure it out. At the moment the only two photos I have in the tour are the ones I want to use for day night. I have named both images the same but do not know how append the value. Also the button isn't showing to switch between them. I have loaded png files for the buttons. Sorry but I am new to this.

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Sat Jul 29, 2017 2:26 am

The names need to have the same base, with the suffix defined via "identifier for the Night scenes" added to the end of the night scenes' name. So, for example, you can have the two panos switchable:
"My Pano" and "My Pano by night", where " by night" is set to be the identifier.
You can define whatever text string you like, if it contains whitespaces the whole string must be enclosed with single quotes.
Have you grouped your panos together? There is a switch to only look for matching pano names within the same group, so this might be an issue here as well.

EDIT:
corrected the example identifier string.
Last edited by 360-compunics-com-ni on Thu Jan 18, 2018 9:55 pm, edited 1 time in total.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Sat Jul 29, 2017 2:30 am

The graphic buttons fail to appear, even if they are called in...

Destiny...

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 4:07 am

Ok I am missing something here. That I know of I have them named properly.
Screen Shot 2017-07-28 at 23.02.28.png
Attachments
Screen Shot 2017-07-28 at 23.03.03.png

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 4:08 am

Destiny wrote:The graphic buttons fail to appear, even if they are called in...

Destiny...

I am sorry but I don't know what you me by 'called in'
I am still trying to learn all this on my own.

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Sat Jul 29, 2017 4:29 am

Ok, you have set the identifier to be " by night" (text string with two blanks), and the suffix to be "bynight" (0 blanks).
Fix that -either the name or the identifier- and it should work.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

360Trooper likes this post.

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Sat Jul 29, 2017 5:17 am

Called in meaning I have provided a path for the graphics since by default as you have found the buttons do not appear...

Destiny...

360Trooper wrote:
Destiny wrote:The graphic buttons fail to appear, even if they are called in...

Destiny...

I am sorry but I don't know what you me by 'called in'
I am still trying to learn all this on my own.
Attachments
DayNightButtons-1.jpg

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Sat Jul 29, 2017 5:29 am

XML paths are correct, however the graphics fail to display... The Graphics folder has been created..

Destiny...

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Sat Jul 29, 2017 5:23 pm

The display of the graphics file works for me, don't know what might go wrong here.
You could send me the "*_skin.xml"-file, and i will have a look.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 6:50 pm

Thank you. I changed the space and everything including the icon is working. Really looking forward to playing with this. THANK YOU

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 6:51 pm

Side note are there way to may different style transitions or does that need to be done in KRPano?

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Sat Jul 29, 2017 8:08 pm

Not sure if i got your question right, maybe you are looking for the "blendmode" called PTP standard plugin.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 9:04 pm

Yes but i know I have seen someone else do a transition that was like a tile wipe. I believe his was made with krpano though.

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Sat Jul 29, 2017 10:49 pm

I have removed the user location for the buttons.. This is a default build.. I might have done it wrong so please advise me if I have....

Destiny...

360-compunics-com-ni wrote:The display of the graphics file works for me, don't know what might go wrong here.
You could send me the "*_skin.xml"-file, and i will have a look.
Attachments
Archive.zip
(2.22 MiB) Downloaded 317 times

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sat Jul 29, 2017 11:26 pm

Destiny wrote:I have removed the user location for the buttons.. This is a default build.. I might have done it wrong so please advise me if I have....

Destiny...

360-compunics-com-ni wrote:The display of the graphics file works for me, don't know what might go wrong here.
You could send me the "*_skin.xml"-file, and i will have a look.



The buttons have appeared for me now. Once it was working with the two images the button appeared.

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Sat Jul 29, 2017 11:30 pm

Perhaps I have done it wrong then.. Using a Mac should not make a difference....

I will try again from scratch...

Did you try with my zip file attached above. Does that work for you...??

Destiny...

no avatar
360Trooper
Member
 
Posts: 20
Likes: 2 posts
Liked in: 1 post
Joined: Sat Mar 19, 2016 11:51 pm
Info

Re: Plugin: DayNight

by 360Trooper » Sun Jul 30, 2017 4:26 am

i didn't bother playing with the zip cause it started to work
Destiny wrote:Perhaps I have done it wrong then.. Using a Mac should not make a difference....

I will try again from scratch...

Did you try with my zip file attached above. Does that work for you...??

Destiny...

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Thu Aug 17, 2017 1:06 am

Hi Destiny,

sorry for not coming back earlier, i was not aware of additional posts to this thread.

From your xml-file i see the following pano names:
pano11 - 'My Pano by night'
pano10 - 'by night'
with the identifying string set to be: ' by night'

First the panonames have to be set identical, then the identifying suffix has to be added to one of them, for example:
"Tiergarten" and "Tiergarten by night" will become switchable.
IMPORTANT: if the identifier string contains blanks as in this example, it has to be enclosed in single quotes!

Hope that helps, best wishes,
Michael
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Thu Aug 17, 2017 7:10 am

Hi.. Sorry but it still does not work.. I have used your same wording.. I have tried adding single quotes to the single name too.. Strange it does not work... I have tried a multiple times with different wording..

Destiny..
Attachments
2.jpg
1.jpg

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Thu Aug 17, 2017 11:51 am

You have activated the option "look for panos in the same group only", but there is no pano grouping in your example, that's why it cannot work. And please remove the single quotes from the panoname.

Best wishes,
Michael
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
Destiny
Moderator
 
Posts: 7886
Likes: 6 posts
Liked in: 228 posts
Joined: Mon Apr 26, 2010 11:55 pm
Info

Re: Plugin: DayNight

by Destiny » Thu Aug 17, 2017 12:19 pm

Yes, you are right. I sent the wrong screen shots.. Actually, I have had it in groups and out.. With quotes and without.. Underscore on naming and more.. For me its not working so for now I will give up..

I thought it was an interesting feature.. Well done for making it...

Destiny...

no avatar
tatsuro
Member
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Sun Dec 10, 2017 4:58 am
Info

Plugin: DayNight

by tatsuro » Wed Dec 13, 2017 3:47 pm

誰かアドバイスを下さい。
同じ画像で昼と夜を切り替えます。デフォルトの位置で切り替える事は出来ました。
昼もしくは夜の画像をデフォルト位置以外の任意のYawで切り替えると、同じYawで切り替わらず、必ずデフォルトの位置に
戻って切り替わります。切り替えた後も任意の位置をKeepさせるには、どうしたら良いでしょうか?

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Wed Dec 13, 2017 4:38 pm

Sorry, cannot read that.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

User avatar
360-compunics-com-ni
Member
 
Topic author
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Plugin: DayNight

by 360-compunics-com-ni » Thu Jan 18, 2018 10:03 pm

V1.3 is out, the plugins' switch button now can respond to "show/hide controls" requests and it also is hidden during the intro if the tour gets started with the LittlePlanet-effect.
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

Next

Who is online

Users browsing this forum: No registered users and 2 guests