sphere mapped sky to sky box conversion

aeffertz
Posts: 4039
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: sphere mapped sky to sky box conversion

Post by aeffertz »

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...
Image
aeffertz
Posts: 4039
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: sphere mapped sky to sky box conversion

Post by aeffertz »

Oh, it's not able to create them because it says it can't read the width and height from the PPM image.
Image
aeffertz
Posts: 4039
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: sphere mapped sky to sky box conversion

Post by aeffertz »

Okay, apparently Photoshop wasn't saving the PPM file correctly. Got it squared away now.
Image
Jakob Hubbard
Posts: 1202
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: sphere mapped sky to sky box conversion

Post by Jakob Hubbard »

Is there any possible way to figure out how to find the sun vector for your lighting file?
Image
Jakob Hubbard
Posts: 1202
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: sphere mapped sky to sky box conversion

Post by Jakob Hubbard »

Nevermind, found DJ's Tutorial.
Image
Jakob Hubbard
Posts: 1202
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: sphere mapped sky to sky box conversion

Post by Jakob Hubbard »

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
Image
Jakob Hubbard
Posts: 1202
Joined: Fri Nov 24, 2017 3:16 am
Team: Phil's
Location: Cold
Contact:

Re: sphere mapped sky to sky box conversion

Post by Jakob Hubbard »

Yeah I give up on this custom skybox, having too many issues lol.
Image
ColtonD719
Posts: 631
Joined: Tue Jun 21, 2016 4:15 am
Team: Privateer
Location: Oregon
Contact:

Re: sphere mapped sky to sky box conversion

Post by ColtonD719 »

jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
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!
jlv
Site Admin
Posts: 15113
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: sphere mapped sky to sky box conversion

Post by jlv »

ColtonD719 wrote:
jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
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!
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".
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.
AtlasZoor
Posts: 369
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: sphere mapped sky to sky box conversion

Post by AtlasZoor »

jlv wrote: Sun Jun 14, 2020 2:17 am
ColtonD719 wrote:
jlv wrote:- Run "makeskybox.bat". You might have to edit the first line depending on where you have POV-Ray installed.
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!
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".
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?
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
jlv
Site Admin
Posts: 15113
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: sphere mapped sky to sky box conversion

Post by jlv »

AtlasZoor wrote: Thu Apr 24, 2025 3:27 am
jlv wrote: Sun Jun 14, 2020 2:17 am
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!
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".
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?
Where did you extract skybox.zip?
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.
AtlasZoor
Posts: 369
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: sphere mapped sky to sky box conversion

Post by AtlasZoor »

jlv wrote: Fri Apr 25, 2025 2:34 am
AtlasZoor wrote: Thu Apr 24, 2025 3:27 am
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".
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?
Where did you extract skybox.zip?
my desktop
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
jlv
Site Admin
Posts: 15113
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: sphere mapped sky to sky box conversion

Post by jlv »

AtlasZoor wrote: Fri Apr 25, 2025 6:26 pm
jlv wrote: Fri Apr 25, 2025 2:34 am
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?
Where did you extract skybox.zip?
my desktop
Probably need to use
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.
AtlasZoor
Posts: 369
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: sphere mapped sky to sky box conversion

Post by AtlasZoor »

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

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

Here is what my makeskybox.sh looks like

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
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
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
AtlasZoor
Posts: 369
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: sphere mapped sky to sky box conversion

Post by AtlasZoor »

jlv wrote: Sat Apr 26, 2025 1:45 am
Sorry for dp forgot to quote you
If you like my tracks and wanna support, paypal or venmo @evanwebb110
Image
Post Reply