Chaos Corona Forum
Chaos Corona for 3ds Max => [Max] Corona Goodies - User Contributions => Topic started 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
-
Thanks for the script, The cathedral looks great in panorama!
-
Grand Dead
-
Thanks a lot buddy !
-
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!
-
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.
-
Very good script! Thanks :)
-
Wow, thanks a lot for your script, that's really helpful!
-
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
-
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.
-
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 ;)
-
Thanks for your help
So, there is no way to create a single jpg file in 360° without using A7?
...it's a shame.
-
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 :)
-
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 ;)
-
It's less than a week to A7 ;)
[/quote]
yeeeiiiii :D
-
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
-
You mean as a web control? or in the maxscript exporter?
-
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.......
-
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?
anyway many thanks for the script up untill now!!
-
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?
-
Panotour?... maybe you should try this forum instead:
http://www.kolor.com/forum/ (http://www.kolor.com/forum/)
-
oh thx boris gonna look at it
-
or http://ggnome.com/pano2vr (http://ggnome.com/pano2vr)
-
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
-
Great
thanks Martin
-
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
-
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.
-
TNX!
-
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
-
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
-
I cant make the exporter to work since corona 1.0 does that have anything to do with the script?
-
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 ;)
-
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?
-
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)
-
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 :)
-
Sound fantastic!
Sitting hall day trying to rotate sphere or reorient UWmap of the texture)
Unfortunately, no luck) can't work with threeJS..
-
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 ;)
-
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?
-
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)
-
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 :)
-
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) .
-
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! :)
-
Thank u very much for the new version!
That's works very nice!)
-
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.
-
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.
-
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 :).
-
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 ... ;) ?
-
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.
-
Hello! Have this for Corona in Cinema 4D?
-
No, just 3dsmax
-
works well, thank you!
any way by now to make it work in chrome ofline (or did i miss that?)
-
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).
-
No worries.
I am wondering if someone figured out how to make this work on a portable device?
-
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
-
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.
-
awesome script, works perfectly, thanks!!
vray like VR will be nice to have though, but I guess its coming in future versions of corona!
-
Thank you DeadClown for this amazing script!
I will test it soon!
-
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!
-
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)
-
Thanks, DeadClown for your answer!
Yes, we tested and it is really work when it is online! Which is great!
All best,
Roman
-
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?
-
Balls, Ok. Corona Camera Mod in Modify Stack :)
But.... (<- There it is)
-
Ok, I'm not quite sure now, is the problem solved or do you still have some issues with something ;) ?
-
Hello!
Has it support for touchscreens?
I tried on iPad-safari, iPhone safari and chrome.
It's automaticly spinning, but I cant controll it.
-
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.
-
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 ;)
-
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
-
Is it possible to add the goggles icon? and hot spots to do a virtual tour?
-
Could use CoronaVR, and then you can create the hotspots directly inside 3ds Max - corona-renderer.com/vr/ :)
-
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...
-
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
-
One question. If you edit the panorama jpg in the exported folder, will it change automatically in the web link ?
-
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?
-
well, nothing changed in the script, so it might be something else. Have you switched Max versions?
-
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?
-
THANKS
-
You are a master DeadClown, thank you!
-
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?)
-
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).
-
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.
-
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).
-
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.
-
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?
-
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.
-
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
;)
-
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.
-
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?
-
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.
-
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?
-
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.
-
i am having the same problem, tested with others browsers same thing.