Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started by: racoonart on 2014-04-16, 23:59:32

Title: Panorama Exporter
Post by: racoonart on 2014-04-16, 23:59:32
(https://forum.corona-renderer.com/index.php?action=dlattach;topic=3544.0;attach=28826;image)

Well, what can I say, it's a Script that exports panoramas ;)  Ondra had the idea, I've just been scripting it.
The script either takes a 360x180° jpg file or grabs the image directly from CoronaVfb and generates 3 or 4 files (depends on your settings). The Html file uses the awesome threejs library http://threejs.org/ (http://threejs.org/).

(https://forum.corona-renderer.com/index.php?action=dlattach;topic=3544.0;attach=28828;image)

How to use:
- Choose a Name for your panorama
- Set an output path for your panorama files (you can use the browse button)
- Either pick a jpg file (Browse)
- .. or grab the current image from the CoronaVfb
- you can turn off the automatic rotation if you want it static
- you can also turn off the Corona Logo display (but why would you want to do that ;-) )
- now you can use it locally on your machine or upload all the files to your webspace. Paths are all relative, so it's portable.

P.S. Some browsers like IE or Chrome seem to disallow running the js library on a local machine. Once it's uploaded to a webserver, all Browser show the content. Firefox seems to be working fine locally and web. Don't ask me why this happens, I'm not a web developer :D

Example:
http://www.racoon-artworks.de/panorama/Cathedral_6k.html (http://www.racoon-artworks.de/panorama/Cathedral_6k.html)   (old logo)

changelog:
*v0.3 - [2015/03/07] -----------------------------
- changed corona logo
- added speed spinner: from -1.0 (rotates left) to 1.0 (rotates right)
- view center is now the image center
*v0.2 - [2014/10/20] -----------------------------
- mouse wheel zoom can now be disabled
*v0.1 - [2014/04/16] -----------------------------
- initial release
Title: Re: Panorama Exporter
Post by: Alex Abarca on 2014-04-17, 00:26:12
Thanks for the script, The cathedral looks great in panorama!
Title: Re: Panorama Exporter
Post by: rafpug on 2014-05-01, 21:05:45
Grand Dead
Title: Re: Panorama Exporter
Post by: Chakib on 2014-05-02, 06:46:29
Thanks a lot buddy !
Title: Re: Panorama Exporter
Post by: ikercito on 2014-05-03, 15:30:25
Wow, the cathedral looks amazing. Nice script

BTW, is the blooming in the bigger windows been generated naturally inside Corona, or elsewhere? Can't get it to look anything close to that. How did you go about it?

Thanks!
Title: Re: Panorama Exporter
Post by: racoonart on 2014-05-03, 23:36:20
Glad you all like it :)

BTW, is the blooming in the bigger windows been generated naturally inside Corona, or elsewhere? Can't get it to look anything close to that. How did you go about it?

It's not from Corona, it was made with several layered glows in eyeon Fusion.
Title: Re: Panorama Exporter
Post by: b24 on 2014-05-23, 06:21:15
Very good script! Thanks :)
Title: Re: Panorama Exporter
Post by: PlayvilleStudios on 2014-06-04, 17:14:57
Wow, thanks a lot for your script, that's really helpful!
Title: Re: Panorama Exporter
Post by: benjamincillo on 2014-06-25, 18:15:33

Well, what can I say, it's a Script that exports panoramas ;)  Ondra had the idea, I've just been scripting it.
The script either takes a 360x180° jpg file or grabs the image directly from CoronaVfb and generates 3 or 4 files (depends on your settings). The Html file uses the awesome threejs library http://threejs.org/ (http://threejs.org/).

How to use:
- Choose a Name for your panorama
- Set an output path for your panorama files (you can use the browse button)
- Either pick a jpg file (Browse)
- .. or grab the current image from the CoronaVfb
- you can turn off the automatic rotation if you want it static
- you can also turn off the Corona Logo display (but why would you want to do that ;-) )
- now you can use it locally on your machine or upload all the files to your webspace. Paths are all relative, so it's portable.



Hi Deadclown

I'm currently trying to make it work, I have some questions

If I use the script with default values, it request for a "jpg" file...which I suppossed it has to be already in 360° Panorama format... :S
If I choose get from VFB it only takes current image, but it doesnt convert such image in 360°, the final result is black html page

How do you set how many images are going to be taken? (..."or grabs the image directly from CoronaVfb and generates 3 or 4 files (depends on your settings...")

What I'm doing wrong?

Ps. I've also noticed first time I use the script on a empty scene it creates a camera, but everytime It try to use it on an existing scene it doesnt work
I'm using A6 + Max 2014

thanks
Title: Re: Panorama Exporter
Post by: ukajali on 2014-06-25, 18:30:50
in case of black html page, try first to use another browser...mine was black in chrome, but firefox worked.

but i think thats not your problem.
you need to choose spherical cam in corona cam mod and render. then there's no question how many images you need...it's only one.
Title: Re: Panorama Exporter
Post by: racoonart on 2014-06-25, 18:35:55
If I use the script with default values, it request for a "jpg" file...which I suppossed it has to be already in 360° Panorama format... :S
If I choose get from VFB it only takes current image, but it doesnt convert such image in 360°, the final result is black html page
Yes - you need a 360°x180° image.
The html file is black if you test it on your machine and your browser forbids running javascript locally (Chrome and IE). Firefox works fine. If you load it up to a webserver all browsers should display it properly.

How do you set how many images are going to be taken? (..."or grabs the image directly from CoronaVfb and generates 3 or 4 files (depends on your settings...")
It's only 1 image, it's not working like the max internal panorama exporter. It doesn't render several pictures and stitches them together. You need to render a full spherical camera view first (with the new spherical camera mode in corona, still only daily builds I guess)

Ps. I've also noticed first time I use the script on a empty scene it creates a camera, but everytime It try to use it on an existing scene it doesnt work
I'm using A6 + Max 2014
I tested it here and it didn't create a camera. It would be quite funny too because there is no code for doing such a thing in the script ;)
Title: Re: Panorama Exporter
Post by: benjamincillo on 2014-06-25, 19:09:24
Thanks for your help

So, there is no way to create a single jpg file in 360° without using A7?
...it's a shame.
Title: Re: Panorama Exporter
Post by: ukajali on 2014-06-25, 19:14:16

The html file is black if you test it on your machine and your browser forbids running javascript locally (Chrome and IE). Firefox works fine. If you load it up to a webserver all browsers should display it properly.


ah...thanks for the pointer, didn't know that :)
Title: Re: Panorama Exporter
Post by: racoonart on 2014-06-25, 19:32:29
So, there is no way to create a single jpg file in 360° without using A7?
...it's a shame.
It's less than a week to A7 ;)

ah...thanks for the pointer, didn't know that :)
I'm not sure if my explanation is exact, but that's how I interpreted the black pages ;)
Title: Re: Panorama Exporter
Post by: benjamincillo on 2014-06-25, 20:20:03

It's less than a week to A7 ;)
[/quote]

yeeeiiiii :D
Title: Re: Panorama Exporter
Post by: johan belmans on 2014-10-16, 09:58:12
Hi Martin

would it be possible to add the following option in your script:
a thick box for enabling or disabeling zooming (scroll middle mouse bottom) inside of the panorma?

thanks
Title: Re: Panorama Exporter
Post by: racoonart on 2014-10-16, 10:00:45
You mean as a web control? or in the maxscript exporter?
Title: Re: Panorama Exporter
Post by: johan belmans on 2014-10-16, 10:03:48
I was thinking in the script.

But if the other combined with the option for switching on or off the automatic rotation thing would be possible as web control.......
Title: Re: Panorama Exporter
Post by: racoonart on 2014-10-16, 10:06:07
I have no idea about web development, so maxscript would be the only option for me anyway ;)
I'll have a look, as soon as I have some time for scripting =/
Title: Re: Panorama Exporter
Post by: johan belmans on 2014-10-16, 10:18:55
NO problem to have the option in maxscript only, it would be fine!

What about the option of choosing your own logo?
It is maybe a bit harder to implement, I tried to adapt your script for this and managed to do it with some work around.
But I am not a scripter.

Secondly, it all  (web control) works fine on my desktop, but not on my nexus 5.
But I guess this is due to some Java stuff?

anyway many thanks for the script up untill now!!
Title: Re: Panorama Exporter
Post by: vinbarg on 2014-10-17, 15:32:10
any one help me how to upload panorama tour on the web? this script is perfect for single panorama pictures but i need som. for tour, any help?
Title: Re: Panorama Exporter
Post by: borisquezadaa on 2014-10-17, 15:35:59
Panotour?... maybe you should try this forum instead:
http://www.kolor.com/forum/ (http://www.kolor.com/forum/)
Title: Re: Panorama Exporter
Post by: vinbarg on 2014-10-17, 15:40:44
oh thx boris gonna look at it
Title: Re: Panorama Exporter
Post by: johan belmans on 2014-10-17, 15:58:19
or http://ggnome.com/pano2vr (http://ggnome.com/pano2vr)
Title: Re: Panorama Exporter
Post by: racoonart on 2014-10-20, 11:37:35
What about the option of choosing your own logo?
It is maybe a bit harder to implement, I tried to adapt your script for this and managed to do it with some work around.
Maybe in the next version, we'll see ;)

Secondly, it all  (web control) works fine on my desktop, but not on my nexus 5.
But I guess this is due to some Java stuff?
The script uses a javascript library, don't ask me how and where this stuff works :D


Update v0.02
- added an option to disable mouse-wheel zoom
Title: Re: Panorama Exporter
Post by: johan belmans on 2014-10-20, 11:58:49
Great

thanks Martin
Title: Re: Panorama Exporter
Post by: zombie_farm on 2014-10-21, 01:39:30
So this is fantastic.. an area that Im very interested in. I was wondering if it would be hard to modify the script that does 360 3D panoramas in Mental Ray to work in Corona.
Its called : LatLong Stereo Shader

 This is the fellow that wrote it

http://www.andrewhazelden.com/blog/2012/04/domemaster3d-stereoscopic-shader-for-autodesk-maya/

The way you look at them is with a google cardboard

https://play.google.com/store/apps/details?id=com.google.samples.apps.cardboarddemo&hl=en

I would love to see a corona version with the interactive rendering and speed of corona.

cheers


Title: Re: Panorama Exporter
Post by: racoonart on 2014-10-23, 14:27:04
I don't really understand what you're requesting.. I mean, that doesn't have any relation to the Panorama exporter, right? For me it looks like a stereo render of 2 cameras in eye distance with a 180° fov. Imho you don't need a fancy script for that.
Title: Re: Panorama Exporter
Post by: Shershov on 2014-10-31, 14:11:27
TNX!
Title: Re: Panorama Exporter
Post by: zicher on 2015-01-02, 19:53:22
Hi, a bit late, but just to clarify :)

The latlong shader from Andrew's web page (which I wrote originally) is not just 2 cameras with 180 degrees. It's a real 3D stereo projection where the cameras move for every image sample. This is used to create images for cylindrical projectors or Oculus Rift.

A 2 cameras setup won't be able to reproduce the omnidirectional stereo effect you get with this.

The LatLong shader is a stripped down version of the domemaster shader. You can find more info here:
http://www.robertoziche.com/domemaster/

If Corona allows for custom camera shaders, Andrew and I could help in the porting if someone wants to do some coding :)
The shaders are open source and can be found on Github:
https://github.com/zicher3d-org/domemaster-stereo-shader

Rob
Title: Re: Panorama Exporter
Post by: racoonart on 2015-01-02, 20:13:23
I fear I'm not the right person for such kind of things, I'm only doing a bit of scripting stuff ;) Shader programming etc is something you'd have to contact keymaster
Title: Re: Panorama Exporter
Post by: Tanakov on 2015-02-26, 14:02:03
I cant make the exporter to work since corona 1.0 does that have anything to do with the script?
Title: Re: Panorama Exporter
Post by: racoonart on 2015-02-26, 14:03:40
Probably. I'll have a look soon and fix maxscript properties that have changed for 1.0 . Will post an update here when it's finished ;)
Title: Re: Panorama Exporter
Post by: racoonart on 2015-02-26, 14:16:03
Hmm, I just tested the script with 1.0 and everything seems to work fine. What exactly doesn't work at your side? Can you elaborate what you do exactly?
Title: Re: Panorama Exporter
Post by: pashashch on 2015-03-06, 22:04:46
First of all: THANKS!
really good work)
I've got a one minor problem... and if i may to ask, one request..

Most of the time we r creating panorama, we expect that the camera target would be in the center of image, while i'am using it in interior, i would like to put an eye of the client on the best thing and starting rotation from there. But now it adjust target to left corner of image...
It's very simple to recreate in photoshop, but i hope there is a way to direct camera to another vector.
Please! I think it would be very important for everyone)

Thanks, anyway)
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-06, 23:32:59
Glad you like the script :)

Good point about the center. I never noticed it, but I also didn't use it that often myself ;) . It shouldn't be a big problem to fix it. I'll try to upload a new version soon :)
Title: Re: Panorama Exporter
Post by: pashashch on 2015-03-07, 01:21:38
Sound fantastic!

Sitting hall day trying to rotate sphere or reorient UWmap of the texture)
Unfortunately, no luck) can't work with threeJS..
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-07, 02:13:38
aaaaand here it is

*v0.3 - [2015/03/07] -----------------------------
- changed corona logo
- added speed spinner: from -1.0 (rotates left) to 1.0 (rotates right)
- view center is now the image center

changed the file in post #1

Sitting hall day trying to rotate sphere or reorient UWmap of the texture)
Unfortunately, no luck) can't work with threeJS..
Me neither :D but if you look closely you can see that the rotation is driven by an update function, I just added 180 degrees there ;)
Title: Re: Panorama Exporter
Post by: daniel.reutersward on 2015-03-07, 11:15:38
This works really nice! :)
Your Cathedral looks awesome!

When I render the camera is almost in the left corner.
I was wondering if/how I can place the camera correctly/manually?
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-07, 11:24:43
When I render the camera is almost in the left corner.
I was wondering if/how I can place the camera correctly/manually?

Uhm.. I don't quite understand. Where is the camera? The camera target (the middle of the 360° image) should be the point you look at when you open the html file. That's the fix I did yesterday (v0.3)
Title: Re: Panorama Exporter
Post by: daniel.reutersward on 2015-03-07, 11:33:21
Uhm.. I don't quite understand. Where is the camera? The camera target (the middle of the 360° image) should be the point you look at when you open the html file. That's the fix I did yesterday (v0.3)

I´m probably bad at explaining myself! :D

In the attached image I want to stand more in the middle of the room and not so far away. Is this possible?
Perhaps I´m just slow at understanding :)
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-07, 11:39:55
Ah I see.
Well, you just have to place the camera exactly where you want to be inside the panorama. The camera position is the position of the viewer, so just move it to the middle of the room. Also make sure your horizon is in the middle of the image (camera not looking up or down and not tilted left or right) .
Title: Re: Panorama Exporter
Post by: daniel.reutersward on 2015-03-07, 11:43:10
Ah I see.
Well, you just have to place the camera exactly where you want to be inside the panorama. The camera position is the position of the viewer, so just move it to the middle of the room. Also make sure your horizon is in the middle of the image (camera not looking up or down and not tilted left or right) .

I noticed that the camera was placed exactly at the same position as the panorama. I should really wake up more before I try new things....Thanks for the help! :)
Title: Re: Panorama Exporter
Post by: pashashch on 2015-03-07, 16:31:00
Thank u very much for the new version!
That's works very nice!)
Title: Re: Panorama Exporter
Post by: valwizard on 2015-03-12, 19:54:43
Hi, Thanks a lot for the skcript- is AMAZING! But instantly just stopped working - Everything is working well- It is creating the file but is not visible - only black screen with corona logo. I opened in the morning it worked fine - I stupidly renamed the file- it stopped working. I Create it again in corona and again and  is not working. Any ideas, please? corona 1,0. 
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-12, 21:11:33
A couple of possible solutions:
A) You mustn't rename files ;) Once you rename the jpg or the js file it won't work anymore. The only thing you can rename is the html file, the other have to stay untouched.
B) Some browsers like Internet Explorer and chrome don't seem to allow running the js script on a local machine (=> panorama is black). Once it's uploaded to a web server it's all fine and all browsers show the content (Firefox works both ways, local and on web). Don't ask me why, I'm not a web developer :D
C) Make sure your image is valid and doesn't have a corrupt header (or some other format renamed to .jpg). I also don't know if other formats than jpg work with the js script.
Title: Re: Panorama Exporter
Post by: aleksis on 2015-03-14, 00:27:12
Hi DeadClown, thank you for the script- it's great. The only thing I would like is possibility to add a music file with option to mute :).
Title: Re: Panorama Exporter
Post by: racoonart on 2015-03-19, 18:41:16
My javascript/html5 knowledge is way to bad for such things. But maybe someone wants to provide some code which works in FF, Chrome, IE etc ... ;) ?
Title: Re: Panorama Exporter
Post by: johan belmans on 2015-03-19, 21:09:16
My javascript/html5 knowledge is way to bad for such things. But maybe someone wants to provide some code which works in FF, Chrome, IE etc ... ;) ?

And it doesn't work on Safari either. If someone can fix this that would be great.
Title: Re: Panorama Exporter
Post by: tiagobrazil on 2015-07-10, 07:30:47
Hello! Have this for Corona in Cinema 4D?
Title: Re: Panorama Exporter
Post by: racoonart on 2015-07-10, 09:57:10
No, just 3dsmax
Title: Re: Panorama Exporter
Post by: nomad87 on 2015-07-21, 16:22:34
works well, thank you!

any way by now to make it work in chrome ofline (or did i miss that?)
Title: Re: Panorama Exporter
Post by: racoonart on 2015-07-21, 16:59:25
Not from my side. You somehow have to explicitly allow some javascript stuff in offline mode (but I've no idea where and what exactly).
Title: Re: Panorama Exporter
Post by: nomad87 on 2015-07-24, 09:02:00
No worries.

I am wondering if someone figured out how to make this work on a portable device?
Title: Re: Panorama Exporter
Post by: Alex Abarca on 2015-09-04, 16:30:44
Hi,

Is there a way I can brand the panorama with my own logo and hyperlink to my webpage? I change the PNG to have my logo but it seems I can rename it and the logo retains a hyperlink, I would like to use to point to my services webpage.

Is this possible?

Ale
Title: Re: Panorama Exporter
Post by: racoonart on 2015-09-04, 16:35:51
You can simply edit the html file and point the image link to your own file. Just search for the current png name and you should find the path somewhere in the html file.
Title: Re: Panorama Exporter
Post by: artmaknev on 2015-10-21, 17:02:21
awesome script, works perfectly, thanks!!

vray like VR will be nice to have though, but I guess its coming in future versions of corona!
Title: Re: Panorama Exporter
Post by: romanbuha on 2015-11-13, 20:15:53
Thank you DeadClown for this amazing script!
I will test it soon!
Title: Re: Panorama Exporter
Post by: romanbuha on 2015-11-16, 19:26:52
So here we go!

Here is my test Panorama rendering by using this script and I have to say it works really simple and fast!
Which is just great!
https://www.dropbox.com/s/shd8t3lirdv8eht/Forest_Test_08_Corona.rar?dl=0

The only one issue that it works only in Mozilla. And it doesn't work in Chrome or Safari.
Is there any news about that?

Thanks!
Title: Re: Panorama Exporter
Post by: racoonart on 2015-11-16, 19:38:13
Well, it works in (as far as I know) in all browsers when it's coming from an online source. Only offline is a problem. I don't know why chrome and others do not execute the javascript library =/

First thing I found after googling was this: maybe it helps :)
https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally (https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally)
Title: Re: Panorama Exporter
Post by: romanbuha on 2015-12-01, 23:12:42
Thanks, DeadClown for your answer!

Yes, we tested and it is really work when it is online! Which is great!

All best,

Roman
Title: Re: Panorama Exporter
Post by: darrentomkins on 2016-04-06, 14:03:26
Hi DeadClown,

Damn fine Script I must say, well done and thanks a mil!

There is always a but or a if only... Soooo, If only we could also rende rout spherical panoramas to use in other software instead of 360deg 180 images.

By the way to do that I select my camera and choose Spherical Lens  FOV 360 & use rotary Shutter  Angle 180 deg? Is that correct? Then render the image and use the script choosing the Vbf file?

Title: Re: Panorama Exporter
Post by: darrentomkins on 2016-04-06, 14:09:23
Balls, Ok. Corona Camera Mod in Modify Stack :)

But.... (<- There it is)
Title: Re: Panorama Exporter
Post by: racoonart on 2016-04-06, 15:45:34
Ok, I'm not quite sure now, is the problem solved or do you still have some issues with something ;) ?
Title: Re: Panorama Exporter
Post by: barnadesign on 2016-05-04, 13:45:51
Hello!

Has it support for touchscreens?
I tried on iPad-safari, iPhone safari and chrome.
It's automaticly spinning, but I cant controll it.
Title: Re: Panorama Exporter
Post by: maru on 2016-05-04, 14:29:48
It is originally controlled by mouse. That's all I can tell. But this script will probably become obsolete (sorry Deadclown ;) ) once 1.4 with full VR support is officially out.
Title: Re: Panorama Exporter
Post by: racoonart on 2016-05-04, 14:36:26
Has it support for touchscreens?
I tried on iPad-safari, iPhone safari and chrome.
It's automaticly spinning, but I cant controll it.
I also have no idea. Since it doesn't work I doubt it ;) I have only adapted an official three.js viewer example for my needs here in the script but I don't know the inner workings or what is supported by the library.

It is originally controlled by mouse. That's all I can tell. But this script will probably become obsolete (sorry Deadclown ;) ) once 1.4 with full VR support is officially out.
Haha, no worries. Pretty much all of my scripts are slowly becoming obsolete or are already ;) SavelAllChannels has been added to the vfb shortly after the script, the material converter is used less and less since more users already setting up their scenes in corona and more products are available with corona materials... It's just how progress works ;)
Title: Re: Panorama Exporter
Post by: Iso 88 on 2016-05-19, 20:34:52
Hi guys,

I played around with the exporter and I would like to put it online. I have a squarespace website but I have literally no clue how to upload the files for them to work all together?.. Does that make any sens?

Thanks

Alex
Title: Re: Panorama Exporter
Post by: Alex Abarca on 2017-03-02, 17:46:41
Is it possible to add the goggles icon? and hot spots to do a virtual tour?

Title: Re: Panorama Exporter
Post by: TomG on 2017-03-02, 18:15:54
Could use CoronaVR, and then you can create the hotspots directly inside 3ds Max - corona-renderer.com/vr/ :)
Title: Re: Panorama Exporter
Post by: racoonart on 2017-03-02, 18:44:54
Is it possible to add the goggles icon? and hot spots to do a virtual tour?
Possible? Yes, probably. But not for me ;) It's just a very simple script and I don't have enough experience to extend it further.

I played around with the exporter and I would like to put it online. I have a squarespace website but I have literally no clue how to upload the files for them to work all together?.. Does that make any sens?
I'm probably a bit late for an answer but anyways. Usually you just need to put all the files into 1 folder and it will work. I have no idea how squarespace handles file management however...
Title: Re: Panorama Exporter
Post by: Ando on 2017-06-08, 02:01:56
Hi DeadClown,
I need your help! When i upload the files to my company's website the panorama works fine off a desktop, but on a mobile it doesn't show as interactive-only the front "perspective" as a still image.
Any ideas on why this is and how I can fix it so it works properly on all devices? 

Thanks in advance for any help guys!

Cheers,
Ando
Title: Re: Panorama Exporter
Post by: lucgrap on 2017-07-18, 16:49:44
One question. If you edit the panorama jpg in the exported folder, will it change automatically in the web link ?
Title: Re: Panorama Exporter
Post by: artmaknev on 2017-08-26, 22:06:20
I tried the script some time ago and it worked perfectly, but I tried now again with the latest corona build but its taking really long time to write the .js file, I can literally see 1kb per 3 seconds being added and waiting 10-15 minutes for that operation to finish while the max is frozen.   Any idea why this is happening, is it just me?
Title: Re: Panorama Exporter
Post by: racoonart on 2017-08-28, 22:35:39
well, nothing changed in the script, so it might be something else. Have you switched Max versions?
Title: Re: Panorama Exporter
Post by: crazyhow3 on 2017-11-27, 22:48:56
I am trying to send these files for some1 else to open and im having trouble doing so. is there any way to to combine the .js file with the html so u can just send the html file and it will woork on another computer that i send it to?
Title: Re: Panorama Exporter
Post by: jjgod1 on 2018-05-06, 12:18:22
THANKS
Title: Re: Panorama Exporter
Post by: petrorosengren on 2018-05-21, 10:27:54
You are a master DeadClown, thank you!
Title: Re: Panorama Exporter
Post by: steyin on 2018-05-21, 17:30:20
Is there anyway the script can work with saving the render to another format other than jpeg?

Normally I output as png, then convert to jpeg with a higher resolution before running the script (though the png file always end up being off by 1 pixel in the width, so I assumed maybe this was the reason?)
Title: Re: Panorama Exporter
Post by: racoonart on 2018-05-25, 09:48:48
I think you should be able to use pretty much any format a webbrowser can display, but I don't know for sure. You'll have to try it out. Just export a panorama as usual, replace the image and change the path in the html file.
I'm not aware of any 1-pixel offset, any image you provide for the script is not altered, just copied (as far as I remember).
Title: Re: Panorama Exporter
Post by: steyin on 2018-05-25, 23:12:12
I'm not aware of any 1-pixel offset, any image you provide for the script is not altered, just copied (as far as I remember).

My mistake, the 1 pixel difference came from increasing the DPI of the output png in Photoshop.
Title: Re: Panorama Exporter
Post by: steyin on 2018-05-30, 21:40:29
Since I'm running into this issue:

Can you not change the FOV of the camera for this? I'm trying to do a panorama of a space that is about 16' x 16', but I feel the view to the walls is too close. I've tried playing with camera settings and the CoronaCamMod overrides, but nothing changes the end result. Are you stuck with a set FOV for spherical cameras?

I also increased the scale of the room (scaled it up a few times so that the distance of the viewpoint from the center of the space is double/triple the original), but that didn't change anything either (which is very odd to me).
Title: Re: Panorama Exporter
Post by: racoonart on 2018-05-30, 21:46:58
The field of view for a spherical panorama is always 360x180°, there is no other field of view - it must be that and only that. I don't actually understand what the problem is to be honest. The Panorama is only dependent on position, nothing else. So if you think you're to close to the wall you have to move the camera away from it. It doesn't matter how big or small your room is, it will always look exactly the same.
Title: Re: Panorama Exporter
Post by: steyin on 2018-05-30, 23:11:49
So if you think you're to close to the wall you have to move the camera away from it. It doesn't matter how big or small your room is, it will always look exactly the same.

If I put the camera in the center of a room that is 16'x16' why does the view look exactly like that of a room that is 32'x32'? The walls should twice the distance away and more of view should be visible no?
Title: Re: Panorama Exporter
Post by: racoonart on 2018-05-30, 23:47:39
Imagine you are in the middle of the room and you look at one corner. Now scale up the room from this point where you're standing. The room is bigger but you are still looking in the exact same direction to see this corner. The angles haven't changed. It's about angles. The Spherical camera doesn't have any dimensions, it's an infinite small point, so there is no parallax and you can't determine the distance to the wall, there is no indication on how far a wall is from the view of the camera.
Another example would be watching the stars at night. You can't possibly say how far away they are, no matter if they are 1 or 100000 lightyears away. The only way (without instruments) to determine that distance is by parallax (moving through space, aka measuring the movement of stars over many years). You got 2 eyes for exactly that reason, with just one eye you don't have any depth perception and can't possibly say how far away things are.
Title: Re: Panorama Exporter
Post by: maru on 2018-05-31, 13:52:38
Or in other words, you will see a difference if you:
-move the camera closer to the ground (this simulates being a mouse)
-change DOF
;)
Title: Re: Panorama Exporter
Post by: racoonart on 2018-05-31, 13:55:40
Side note: what actually does make a surprising difference is setting the camera position to chest height, not where your eyes would be. This has proven to somehow preserve the "perceived" scale a lot better.
Title: Re: Panorama Exporter
Post by: yazzmale on 2020-05-13, 18:16:10
Hello I need some help, please.

When I try to browse the .jpg 360, it doesn't upload it. And then, when I click on >>Generate file, this error appears: "Error occured! Is directory writeable?
Title: Re: Panorama Exporter
Post by: maru on 2020-05-14, 17:02:49
Hello I need some help, please.

When I try to browse the .jpg 360, it doesn't upload it. And then, when I click on >>Generate file, this error appears: "Error occured! Is directory writeable?

Hmm, this thread is from 2014 and the last post is a year old. There is a chance that this is not supported any more, or that something has changed.
Title: Re: Panorama Exporter
Post by: emresenoglu on 2020-07-02, 17:31:06
I am having problems with this plugin too, and was wondering if there are any news / changes about the plugin. It successfully exports for me, however the html shows a black page. Anyone still using the plugin?
Title: Re: Panorama Exporter
Post by: steyin on 2021-01-05, 06:41:07
I am having problems with this plugin too, and was wondering if there are any news / changes about the plugin. It successfully exports for me, however the html shows a black page. Anyone still using the plugin?
Try opening the html with a different browser. I find that not all browsers work with this plugin.
Title: Re: Panorama Exporter
Post by: Marvey on 2021-02-08, 21:51:20
i am having the same problem, tested with others browsers same thing.