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/.
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
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?
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
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.
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.
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)
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
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?
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 =/
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?