Author Topic: Getting serious now  (Read 1094 times)

Offline Voss

  • Silver Member
  • ****
  • Posts: 1261
      • http://www.bombardieraerospace.com
Getting serious now
« Reply #15 on: February 01, 2003, 04:04:20 AM »
10Bears, doesn't the map editor take in bitmaps? I still haven't gone through the entire process, but let me outline my planned approach.

1) generate terrain mesh
2) generate black & white bitmap from mesh (Pov-Ray color_map from 0 = rgb 0 to 1 = rgb 1)
3) import bitmap into editor
4) so on...

Will this not work? I don't have any idea what .typ or .elv files are but feel free to enlighten me. If I'm about to hit a brick wall I'd like to know it.

Offline Voss

  • Silver Member
  • ****
  • Posts: 1261
      • http://www.bombardieraerospace.com
Getting serious now
« Reply #16 on: February 01, 2003, 04:04:51 AM »
dp bug...
« Last Edit: February 01, 2003, 05:12:17 AM by Voss »

Offline BenDover

  • Platinum Member
  • ******
  • Posts: 5803
Getting serious now
« Reply #17 on: February 01, 2003, 06:57:01 AM »
Quote
Originally posted by 10Bears
Orge simply wrote a config file for mapmaker.. Maybe you can examine that config and see if it could be applied to other utilities.



hmm, i'm sure he wrote the program

Offline Voss

  • Silver Member
  • ****
  • Posts: 1261
      • http://www.bombardieraerospace.com
Getting serious now
« Reply #18 on: February 01, 2003, 11:18:19 AM »
It sure looks like I have it figured out. The placement of the fields and strategic objects will take the most time, of course, but the mesh creation is pretty easy.

I decided to start with islands. I am using  the plane object in TrueSpace and then quad dividing it to give me a mesh or patch object with which I can create varying elevations. The plus side to that is you know for a fact that any area you want to place a field or factory in is flat and level. I've been making field and factory areas larger then they need to be so I know I have plenty of space to work in.

So, okay, repeat that for several islands or various meshes. Then I take a plane and scale it beyond the perimeter of the map and set it at elevation 0 and it becomes the water.

Open Pov-Ray and render with the ground plane set for color 0 and the terrain mesh will have the universal colormap as follows:

pigment { gradient y
   color_map {
      [0 color rgb 0]
      [1 color rgb 1] } }

Output should be set as +w512 +h512, if I read the help file properly. The rest should be done in the editor.

Did I miss anything?