_thumb_SX2-04.jpg

Getting Started with Scene Express 2
Part 4. Virtual Terrain Project (VTP) Export
 
The VTP format uses the Enviro viewer.
For more information visit the Virtual Terrain Project site.

Screen captures are from the VNS 3.
Scene Express for WCS 6 does not include VNS-specific features.


1. Open the Atlantis project from the WCSProjects\SX folder on your hard drive. Save the project as AtlantisVTP.

VTP03-0010.jpg

2. Go to the Render Task Mode in the Scene-at-a-Glance and add a Scene Exporter Component.

VTP03-0020.jpg

3. Name it VTP and change the Output Format to VTP. Replace Exports\AtlantisVTP in the Output File target with VTP\AtlantisVTP. This will create a VTP folder in the SX project folder to hold the VTP files. Temporary files will be saved in an Exports folder.

VTP03-0030.jpg

4. VNS Only. Go to the Terrain page. Choose Geographic - WGS 84 from the Coordinate System dropdown list.

VTP03-0040.jpg

5. We're creating a VTP file for realtime use so let's limit the size of exported terrain to speed VTP viewer response. Set Bounds in a View. VNS will remind you that the next two points clicked in any view will become the new bounds.

VTP03-0050.jpg . . . . VTP03-0051.jpg

6. Left-click corners in the Overhead view near these locations.

VTP03-0060.jpg . . . .VTP03-0061.jpg

7. The editor will update with new Top, Left, Right, and Bottom bounds. The VTP format is limited to a single terrain tile with a power of 2 plus 1 columns and rows. Use the Size increase widget to change it to 257. That will give us a Grid Cell Size of about 2 meters.

VTP03-0070.jpg

8. The VTP format uses CLOD (Continuous Level of Detail) so most of the LOD (Level of Detail) page parameters aren't available.

VTP03-0080.jpg

9. Turn to the Texture page. This controls the texture draped on the terrain. The Image Format field also applies to the sky texture. Increase the Columns and Rows to 512. This will give us a terrain texture resolution of about 1 meter per image pixel.

VTP03-0090.jpg

10. The Foliage and Sky page defaults will serve us nicely so leave them alone. On the Misc page, select Create all new object files.

VTP03-0100.jpg . . . .VTP03-0101.jpg

VTP03-0102.jpg

11. Go to the Misc2 page Cameras section and select the Theater Camera. Select the Afternoon Light and deselect Export Haze.

VTP03-0110.jpg

12. Return to the General page and Export Scene Now.

VTP03-0120.jpg

13. This will open the VNS Export Control window. Go to start exporting.

VTP03-0130.jpg

14. VNS will ask you to confirm the creation of new directories in the SX project folder. If you've already done other Scene Express tutorials you won't get the WCSProjects:SX\Exports window.

VTP03-0140.jpg

15. VNS Export Control will let you know when export is complete.

VTP03-0150.jpg

16. Your WCSProjects\SX\VTP folder contains all the data files the VTP Enviro viewer needs.

VTP03-0160.jpg

17. For Enviro to find the files, they must reside in a Data folder within a folder that also contains the Enviro Apps folder. For more information, visit the Virtual Terrain Project site. Find the Data folder created by the VTP installer and copy your exported VTP files to it.

VTP03-0170.jpg

18. Launch VTP Enviro. Select Terrain and chose AtlantisVTP from the dropdown list.

VTP03-0180.jpg

19. Edit Properties.

VTP03-0190.jpg

20. The Camera page lets us change the navigation speed, among other things. Navigation instructions that follow are for the Panoramic Flyer. A navigation speed of 5 meters/frame is a good place to start with this terrain area and level of detail.

VTP03-0200.jpg

21. The original project Light is 2 PM on April 7. If you want the realtime lighting to match it, go to the Ephemeris page Time section and Set. Change the Month to 4, the Day to 7, and the hour to 14 (1400 hours=2 PM).

VTP03-0210.jpg

22. OK out of the Terrain Creation Parameters window and Enviro Startup. The scene will load and drop you in, ready to navigate.

VTP03-0220.jpg

23. Here's how to navigate in the Panoramic Flyer mode. Viewer response will vary within the scene. Areas of high foliage density will reduce the number of frames per second (FPS). The viewer will pause the first time the 3D Object is encountered as its texture is loaded into memory.

Move the mouse pointer left and right of center to pan left and right, respectively. The more off-center your pointer is, the faster you'll pan. Move the pointer above and below screen center to pan up and down. Each press of the f key goes faster and s goes slower.

Left-click and move the pointer off-center to fly in the desired direction. The more off-center your pointer is, the faster you'll fly.

Right-click and move the pointer up and down relative to screen center to change the camera elevation. Right-click and move the pointer left and right relative to screen center to slide the camera left and right.


VTP03-0230.jpg

24. The theater has lost its VNS pitch and is resting on the water plane. This is a limitation of the VTP format. The 3D Object must be lowered and pitch and bank applied before import into VNS. Go to the 3D Object Task Mode and add another 3D Object Component. Load 3D Object from Disk Load3DOfromDisk.gif.

VTP03-0240.jpg

25. Navigate to the WCSProjects\SX\objectsfolder and open Theater VTP.w3o.

VTP03-0250.jpg

26. Expand the Theater 3D Object Component in the Scene-at-a-Glance and move the Theater vector to the Theater VTP 3D Object.

VTP03-0260.jpg

27. Add the vector for Position.

VTP03-0270.jpg

28. The vector is already applied to the Theater object, so VNS asks us to confirm the move to Theater VTP and to disable its Geographic Instance rendering. Agree to both.

VTP03-0280.jpg . . . .VTP03-0281.jpg

29. Go to the 3D Object Editor and turn on Detail Preview.

VTP03-0290.jpg

30. The object looks too submerged, but that's because it's placed relative to ground elevation (under water). The VTP version of the object will be relative to its ground level, the water plane.

VTP03-0300.jpg

31. Go to the Render Task Mode and clone the VTP Scene Exporter.

VTP03-0310.jpg

32. Change the clone name to VTP2. Change VTP\AtlantisVTP in the Output File target to VTP2\AtlantisVTP. This will create a VTP2 folder in the SX project folder to hold the new VTP files.

VTP03-0320.jpg

33. Export Scene Now to open the Export Control window.

VTP03-0330.jpg

34. Disable the VTP export event and Go to start exporting.

VTP03-0340.jpg

35. Confirm the creation of the new VTP2 directory in the SX project folder.

VTP03-0350.jpg

36. Copy the exported VTP2 files to your VTP Data folder.

VTP03-0360.jpg

37. Launch Enviro and choose the VTP2 terrain. The theater is now tilted and submerged.

VTP03-0370.jpg

38. Exported files from this tutorial are the VTP and VTP2 folders in the WCSProjects\SX\Tutorial Output folder on the VNS 3 DVD. The completed project file is in the WCSProjects\SX\Tutorial Projects folder on your hard drive.


 
Produced by Scott Cherba for 3DNature

 

 

Warning: file_put_contents(/extra/home/webdude/3dnature.com/files/cache/pages/4/b/4/4b48b4a0182cd272af6604381751f485768d8b2cbf617c89037ad9c7cfdeadca.cache): failed to open stream: No such file or directory in /extra/home/webdude/3dnature.com/updates/concrete5.6.3.4/concrete/core/libraries/page_cache/types/file.php on line 62