Jump to content
Sign in to follow this  
kjjj11223344

Ortho4XP for FSX/P3D

Recommended Posts

3 minutes ago, Raheem Adeleke Quadri said:

I can't find this line "ESP_resample_loc=F:\\ortho4xpvm\\resample.exe" in Ortho4xp.CFG and I couldn't find "Build for ESP"

resample.exe is in fsx/p3d sdk.


Zicheng Cai

Share this post


Link to post
Share on other sites

Hi kjjj

This program has the potential to be a real game changer for P3D but I am having problems getting it to work right.

1)   Python3.5 and all required packages are installed correctly

2)   resample.exe is in place

3)   ortho4xp.cfg modifiedas instructed to locate resample.exe

4)   latest version of your program in use and ortho4xp_v130.exe  from the dist folder runs without errors and outputs "stuff" (see d) and e) below).

BUT

a)   there is no sign of "Build for ESP" an a check box

b)   BGLs are not created/output to the orthophotos folder  

c)   there is no sign of an ADDON_SCENERY folder

d)  the orthophotos folder contains downloaded orthoimagery JPGs 

e)   the tiles folder contains (for area +49-001:

earth nav data folder

terrain folder containing .TER files

textures folder containing DDS and PNG files

ortho4xp_+49-001.cfg

Data+49-001.mesh

Data+49-001.poly

Data+49-001.node

Data+49-001.alt

Data+49-001.apt

 

What have I done wrong???

Aussibob

Share this post


Link to post
Share on other sites

Great program, Ortho looks great in P3D.

Although it takes extremely long time to generate a tile. Generating a ZL16 tile would generally take me 10-20 minutes for X-Plane but generating a ZL16 tile for P3D took me 2 hours and 30 minutes. Any reason for this?


Tim Rosander

signature-dark.png

Share this post


Link to post
Share on other sites
3 hours ago, aussibob1 said:

Hi kjjj

This program has the potential to be a real game changer for P3D but I am having problems getting it to work right.

Here's what I have figured out. You have to compile the scenery into bgl files yourself using P3D SDK. I have written a MATLAB script to do so in batch and parallel, and you can translate into whatever language you code in.

 

clear classes;close all;clc
sceneryFolder = "H:\Ortho4XP_FSX_P3D-airport_auto_patch\Orthophotos\+30-100\+30-098\BI_18";
resampleFilePath = "C:\Program Files\Lockheed Martin\Prepar3D v4 SDK 4.3.29.25520\World\Terrain\resample.exe";
fileList = dir(sceneryFolder);
fileList(1:2,:) = [];
infList = [];
infFolder = fileList.folder
for index = 1:size(fileList,1)
	if strcmp(extractAfter(fileList(index).name,"."),'inf')
		infList = [infList;fileList(index).name];
	end
end
fprintf("Inf Search Complete\n")
parfor infIndex = 1:size(infList,1)

	cmdStr = strcat('"',resampleFilePath,'"'," ",infFolder,"\",infList(infIndex,:))
	system(cmdStr)

end

 


Zicheng Cai

Share this post


Link to post
Share on other sites
On 7/14/2018 at 3:38 PM, Cai Zicheng said:

Just one question though, the tool generates two folders - terrain/ and texture/. How do you add these to P3D?

If you select build for esp, it will create an ADDON_SCENERY folder inside the folder for the area you selected inside the Orthophotos folder.


Boeing777_Banner_Pilot.jpgsig_TheBusIveBeenWaitingFor.jpg

Alfredo Terrero

Share this post


Link to post
Share on other sites
On 7/14/2018 at 4:24 PM, Raheem Adeleke Quadri said:

I can't find this line "ESP_resample_loc=F:\\ortho4xpvm\\resample.exe" in Ortho4xp.CFG and I couldn't find "Build for ESP"

Weird, can you try the download again? I will post a video with the steps required.


Boeing777_Banner_Pilot.jpgsig_TheBusIveBeenWaitingFor.jpg

Alfredo Terrero

Share this post


Link to post
Share on other sites
15 hours ago, 09tir98 said:

Great program, Ortho looks great in P3D.

Although it takes extremely long time to generate a tile. Generating a ZL16 tile would generally take me 10-20 minutes for X-Plane but generating a ZL16 tile for P3D took me 2 hours and 30 minutes. Any reason for this?

What step took the longest? Besides creating different image formats than for xplane, the only extra step that’s extra for P3D is running resample, which can take a while.


Boeing777_Banner_Pilot.jpgsig_TheBusIveBeenWaitingFor.jpg

Alfredo Terrero

Share this post


Link to post
Share on other sites
17 hours ago, aussibob1 said:

Hi kjjj

This program has the potential to be a real game changer for P3D but I am having problems getting it to work right.

1)   Python3.5 and all required packages are installed correctly

2)   resample.exe is in place

3)   ortho4xp.cfg modifiedas instructed to locate resample.exe

4)   latest version of your program in use and ortho4xp_v130.exe  from the dist folder runs without errors and outputs "stuff" (see d) and e) below).

BUT

a)   there is no sign of "Build for ESP" an a check box

b)   BGLs are not created/output to the orthophotos folder  

c)   there is no sign of an ADDON_SCENERY folder

d)  the orthophotos folder contains downloaded orthoimagery JPGs 

e)   the tiles folder contains (for area +49-001:

earth nav data folder

terrain folder containing .TER files

textures folder containing DDS and PNG files

ortho4xp_+49-001.cfg

Data+49-001.mesh

Data+49-001.poly

Data+49-001.node

Data+49-001.alt

Data+49-001.apt

 

What have I done wrong???

Aussibob

I will post a video with a quick tutorial :).


Boeing777_Banner_Pilot.jpgsig_TheBusIveBeenWaitingFor.jpg

Alfredo Terrero

Share this post


Link to post
Share on other sites
4 hours ago, kjjj11223344 said:

What step took the longest? Besides creating different image formats than for xplane, the only extra step that’s extra for P3D is running resample, which can take a while.

The resample step is what took so long. That step took 2 hours.


Tim Rosander

signature-dark.png

Share this post


Link to post
Share on other sites

I ran creation of a single BI17 tile yesterday using exe version and shut the process down eventually as still in progress after 7 hours ... also noted a high overhead in storage space required.... 61 GB ..... surely something must be amiss???

 

PS ... run a reasonably fast PC .... will check out the video, see if anything jumps out at me ....

Edited by AKStirling

Share this post


Link to post
Share on other sites

Thank you for an excellent video tutorial - clearly shows the steps. Feeling rather embarrassed that I could not see the "Build for ESP" before!!!

All I have to do now is figure out why the "Batch Build" will not work as shown in the video. Followed all the steps shown in tutorial - click on Batch Build" and nothing happens.

As a test I used the "Assemble Vector Data' in the Ortho4XP_v130 panel and the program worked fine - it's just getting the damned "Batch Build" button to work.

Share this post


Link to post
Share on other sites

Aussibob ..... trying out your 'Assemble Vector Data' approach .... currently at step: BuildImagery/DSF .... did you then click on 'All in one'????   

Request to kjjj - would you mind posting the video to YouTube as my ESP won't let me access the link given .....????

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...