sphere mapped sky to sky box conversion
Re: sphere mapped sky to sky box conversion
So, after I run the bat file, where does it save the sky images to? I run the bat file and I see it open and close the POV program numeroous times but I have no idea where it's saving the pictures or if it even is. Searching for sky-n on my computer only comes up with skyboxes for tracks I've downloaded...

Re: sphere mapped sky to sky box conversion
Oh, it's not able to create them because it says it can't read the width and height from the PPM image.

Re: sphere mapped sky to sky box conversion
Okay, apparently Photoshop wasn't saving the PPM file correctly. Got it squared away now.

-
- Posts: 1202
- Joined: Fri Nov 24, 2017 3:16 am
- Team: Phil's
- Location: Cold
- Contact:
Re: sphere mapped sky to sky box conversion
Is there any possible way to figure out how to find the sun vector for your lighting file?

-
- Posts: 1202
- Joined: Fri Nov 24, 2017 3:16 am
- Team: Phil's
- Location: Cold
- Contact:
-
- Posts: 1202
- Joined: Fri Nov 24, 2017 3:16 am
- Team: Phil's
- Location: Cold
- Contact:
Re: sphere mapped sky to sky box conversion
Nvm that tutorial was totally useless with the method I used, anyone have any suggestions on how to get the sun vector with the google maps method?
http://forum.mxsimulator.com/viewtopic.php?t=33005
http://forum.mxsimulator.com/viewtopic.php?t=33005

-
- Posts: 1202
- Joined: Fri Nov 24, 2017 3:16 am
- Team: Phil's
- Location: Cold
- Contact:
Re: sphere mapped sky to sky box conversion
Yeah I give up on this custom skybox, having too many issues lol.

-
- Posts: 631
- Joined: Tue Jun 21, 2016 4:15 am
- Team: Privateer
- Location: Oregon
- Contact:
Re: sphere mapped sky to sky box conversion
I am able to render the images manually one at a time, but when I try to run the batch file, I get "Possible parse error: cannot find skybox.pov" Any ideas on how to fix this?jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
I am using POV-Ray 3.7 on Windows 10 via Parallels on my iMac. I have edited the makeskybox.bat to point to the correct POV-Ray directory, and the makeskybox.bat, skybox.pov, and spheremap are all in the same folder.
Thanks!
Re: sphere mapped sky to sky box conversion
Your current directory has to be the folder where you extracted the zip. So for Windows, first "cd c:\wherever\you\unzipped\skybox" then "makeskybox.bat".ColtonD719 wrote:I am able to render the images manually one at a time, but when I try to run the batch file, I get "Possible parse error: cannot find skybox.pov" Any ideas on how to fix this?jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
I am using POV-Ray 3.7 on Windows 10 via Parallels on my iMac. I have edited the makeskybox.bat to point to the correct POV-Ray directory, and the makeskybox.bat, skybox.pov, and spheremap are all in the same folder.
Thanks!
If you're on a Mac the shell script (makeskybox.sh) will probably work. Just edit the "povray=/opt/povray/bin/povray" line to point to where you have POV-Ray installed, then "cd /wherever/you/unzipped/skybox" then "./makeskybox.sh".
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: sphere mapped sky to sky box conversion
I am getting a similar problem to colton and I assume its because I don't understand what to do here "cd c:\wherever\you\unzipped\skybox". I have changed the install directory in the bat to point to the povray install location. When I run the bat and get a bunch of different errors from pov ray when it flashes, but can't really read it as it flashes too fast. Do I have to add that text to that bat on this line?jlv wrote: ↑Sun Jun 14, 2020 2:17 amYour current directory has to be the folder where you extracted the zip. So for Windows, first "cd c:\wherever\you\unzipped\skybox" then "makeskybox.bat".ColtonD719 wrote:I am able to render the images manually one at a time, but when I try to run the batch file, I get "Possible parse error: cannot find skybox.pov" Any ideas on how to fix this?jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
I am using POV-Ray 3.7 on Windows 10 via Parallels on my iMac. I have edited the makeskybox.bat to point to the correct POV-Ray directory, and the makeskybox.bat, skybox.pov, and spheremap are all in the same folder.
Thanks!
If you're on a Mac the shell script (makeskybox.sh) will probably work. Just edit the "povray=/opt/povray/bin/povray" line to point to where you have POV-Ray installed, then "cd /wherever/you/unzipped/skybox" then "./makeskybox.sh".
set povray="c:\Program Files\POV-Ray\v3.7\bin\pvengine"
or somewhere in the skybox.pov file?
Re: sphere mapped sky to sky box conversion
Where did you extract skybox.zip?AtlasZoor wrote: ↑Thu Apr 24, 2025 3:27 amI am getting a similar problem to colton and I assume its because I don't understand what to do here "cd c:\wherever\you\unzipped\skybox". I have changed the install directory in the bat to point to the povray install location. When I run the bat and get a bunch of different errors from pov ray when it flashes, but can't really read it as it flashes too fast. Do I have to add that text to that bat on this line?jlv wrote: ↑Sun Jun 14, 2020 2:17 amYour current directory has to be the folder where you extracted the zip. So for Windows, first "cd c:\wherever\you\unzipped\skybox" then "makeskybox.bat".ColtonD719 wrote: I am able to render the images manually one at a time, but when I try to run the batch file, I get "Possible parse error: cannot find skybox.pov" Any ideas on how to fix this?
I am using POV-Ray 3.7 on Windows 10 via Parallels on my iMac. I have edited the makeskybox.bat to point to the correct POV-Ray directory, and the makeskybox.bat, skybox.pov, and spheremap are all in the same folder.
Thanks!
If you're on a Mac the shell script (makeskybox.sh) will probably work. Just edit the "povray=/opt/povray/bin/povray" line to point to where you have POV-Ray installed, then "cd /wherever/you/unzipped/skybox" then "./makeskybox.sh".
set povray="c:\Program Files\POV-Ray\v3.7\bin\pvengine"
or somewhere in the skybox.pov file?
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: sphere mapped sky to sky box conversion
my desktopjlv wrote: ↑Fri Apr 25, 2025 2:34 amWhere did you extract skybox.zip?AtlasZoor wrote: ↑Thu Apr 24, 2025 3:27 amI am getting a similar problem to colton and I assume its because I don't understand what to do here "cd c:\wherever\you\unzipped\skybox". I have changed the install directory in the bat to point to the povray install location. When I run the bat and get a bunch of different errors from pov ray when it flashes, but can't really read it as it flashes too fast. Do I have to add that text to that bat on this line?jlv wrote: ↑Sun Jun 14, 2020 2:17 am
Your current directory has to be the folder where you extracted the zip. So for Windows, first "cd c:\wherever\you\unzipped\skybox" then "makeskybox.bat".
If you're on a Mac the shell script (makeskybox.sh) will probably work. Just edit the "povray=/opt/povray/bin/povray" line to point to where you have POV-Ray installed, then "cd /wherever/you/unzipped/skybox" then "./makeskybox.sh".
set povray="c:\Program Files\POV-Ray\v3.7\bin\pvengine"
or somewhere in the skybox.pov file?
Re: sphere mapped sky to sky box conversion
Probably need to useAtlasZoor wrote: ↑Fri Apr 25, 2025 6:26 pmmy desktopjlv wrote: ↑Fri Apr 25, 2025 2:34 amWhere did you extract skybox.zip?AtlasZoor wrote: ↑Thu Apr 24, 2025 3:27 am I am getting a similar problem to colton and I assume its because I don't understand what to do here "cd c:\wherever\you\unzipped\skybox". I have changed the install directory in the bat to point to the povray install location. When I run the bat and get a bunch of different errors from pov ray when it flashes, but can't really read it as it flashes too fast. Do I have to add that text to that bat on this line?
set povray="c:\Program Files\POV-Ray\v3.7\bin\pvengine"
or somewhere in the skybox.pov file?
cd C:\Users\YourUsername\Desktop\skybox
in that case. Obviously replace "YourUsername" with your actual username.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Re: sphere mapped sky to sky box conversion
Finally got around to this but I am still getting the same problem. its still on my desktop as well.
Here is what my makeskybox.bat looks like
Here is what my makeskybox.sh looks like
Additionally my sky dome size is 8192 x 4096. I am not sure if thats too large or not. Likewise, if I wanted to make a 2k skybox would I just change the width and heights on both files 2048? I appreciate the help
Here is what my makeskybox.bat looks like
Code: Select all
set povray="C:\Program Files\POV-Ray\v3.7\bin\pvengine"
%povray% /EXIT +FN +A -D -w1024 -h1024 -k0 -osky-n.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k1 -osky-e.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k2 -osky-s.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k3 -osky-w.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k4 -osky-u.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k5 -osky-d.png skybox.pov
%povray% /EXIT +FN +A -D -w1024 -h1024 -k6 -osky-env.png skybox.pov
Code: Select all
#!/bin/bash
povray=cd C:\Users\Evdog\Desktop\skybox
${povray} +A -D -w1024 -h1024 -k0 -osky-n.png skybox.pov
${povray} +A -D -w1024 -h1024 -k1 -osky-e.png skybox.pov
${povray} +A -D -w1024 -h1024 -k2 -osky-s.png skybox.pov
${povray} +A -D -w1024 -h1024 -k3 -osky-w.png skybox.pov
${povray} +A -D -w1024 -h1024 -k4 -osky-u.png skybox.pov
${povray} +A -D -w1024 -h1024 -k5 -osky-d.png skybox.pov
${povray} +A -D -w1024 -h1024 -k6 -osky-env.png skybox.pov