Itoo Software Forum

Author Topic: Locate Trees by Map  (Read 2207 times)

mcm770

  • Newbie
  • *
  • Posts: 7
Locate Trees by Map
« on: March 27, 2012, 12:19:20 AM »
Hi there,

it has been a while, but we have had good results with forest pro and we from Visoric love it! Thx a lot.
But now we have a problem to locate the trees right in a huge scenery.
We have a photorealistic scenery from a Digital Terrain Modell. Its textured with Sattlelite View Images as diffuse map.
No we want to locate the trees on there original position - like on the sattlelite photo.
How could we achieve that?

Our first Solution was to create a black and white map and used it as Distribution Map. The Trees where then located on the right place, but there arrangement wasn´t right anymore. All trees were orientated in a grid... The Trees lose there natural chaotic arrangement. After this try, we used splines, but splines where not so accurated as we need the tree position.
How could we use Maps to locate Trees right?


Thank you in advance,
Best Regards,
Michael and Uli

Visoric

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3076
    • iToo Software
Re: Locate Trees by Map
« Reply #1 on: March 27, 2012, 11:33:15 AM »

In this case i suggest using a "Composite" map as Distribution Map: use the bitmap as mask, to define the scattering area, and a "Noise" to randomize the distribution. Next, you can modify the density adjusting the Noise parameters and the "Pixels / Units" values in Forest.

I attached a sample scene (Max 2010).

Carlos Quintero
iToo Software

mcm770

  • Newbie
  • *
  • Posts: 7
Re: Locate Trees by Map
« Reply #2 on: April 04, 2012, 12:53:27 AM »
Hi Carlos,

sorry for my late response.
I tested now around and didnt get it... maybe our scene is to huge.
Its a whole county or district or how you will call it - a huge area.

Do you have maybe an alternative way to solve this?

Thank you,
Best Regards,
Michael

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3076
    • iToo Software
Re: Locate Trees by Map
« Reply #3 on: April 04, 2012, 09:10:49 AM »

Well, this method should work regardless of the area's size. What is the problem exactly ? The map itself, the number of trees, the density... ?

Alternatively you would "Paint" the trees using some Painting areas. Since the areas are parametric, once created you can adjust the density or convert them to splines.

Carlos Quintero
iToo Software

mcm770

  • Newbie
  • *
  • Posts: 7
Re: Locate Trees by Map
« Reply #4 on: April 06, 2012, 11:27:23 AM »
I´m not sure whats exactly the problem. Maybe i´m doing someting wrond.
Let me tell you something about the project
We have created a Digital Terrain based on Sattlelite Measurement, textured with a Satteliteview image. In real size more than 90km. Now we want to create trees on it with your cool plugin from Itoo.

So how yould we do this? We created first a black/white mask based on the Satteliteview Image and replaced it with the Distribution Map. The Trees were placed on the Digital Terrain matching with the image, but not coordinate right.
Then we tried you methode. This works not, because the black/white map in the distribution map slot, is not matching with the satteliteview image. Maybe a  UV Problem or UV Projection Problem. The sattlelite view is simple placed planar mapping.

Now we created a Vector Mask based on the Black and White Map. Imported it into max and now have another problem. If we pick our Terrain, place Forest on it, and pick the Vector mask as Spline Area, the Trees are not placed right. They are still placed over the whole terrain.
Next Try was to use the Vector Mask as our Forest "Surface". This works fine, the Trees are placed right matching the image map. But of course a Terrain has Hills and Valleys - Ups and Downs - the trees are not placed right :)
So now we glue the Vector Mask on the Terrain. A Really complex Vector mask is now glued on the surface. Hopefully this works. :)

And hey"happy eastern"
Michael

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3076
    • iToo Software
Re: Locate Trees by Map
« Reply #5 on: April 06, 2012, 11:59:39 AM »
Quote
We created first a black/white mask based on the Satteliteview Image and replaced it with the Distribution Map. The Trees were placed on the Digital Terrain matching with the image, but not coordinate right.
Then we tried you methode. This works not, because the black/white map in the distribution map slot, is not matching with the satteliteview image. Maybe a  UV Problem or UV Projection Problem. The sattlelite view is simple placed planar mapping.

Yes, that's the problem. Forest can use the mask a plain bitmap (replacing it with the Distribution map), or as a texture map. You can see there is two slots in the Distribution rollout for that (Bitmap/Map).

The alignment of the bitmap is done using the Offset X/Y values (or alternatively using the "Fit to Scene" buttons), but this method would not be enough precise for this work. It's better to use the mask assigning it in the "Map" slot (you need to create a texture map for this). In this case, the alignment is done using the UV coordinates of the Surface (assigned in the "Surface rollout).

So, basically:

- Create a "Bitmap" texture map, assign the mask to it and apply it to the Distribution->Map slot.
- Assign the terrain to Forest->Surfaces.
- To align visually the mask in the terrain, i suggest to use a material with the mask in the Diffuse slot and apply it to the Surface (this has no relation with Forest, but help you to adjust the UV coordinates).
- Be sure the Distribution Map->Map Channel matches with the mapping channel of the Surface.

You can use the above sample scene as reference. It uses exactly this method.

Quote
Now we created a Vector Mask based on the Black and White Map. Imported it into max and now have another problem. If we pick our Terrain, place Forest on it, and pick the Vector mask as Spline Area, the Trees are not placed right. They are still placed over the whole terrain.

Probably the Areas->Surface Areas checkbox is "On". In this case, the full surface is used as a scattering area. You must turn off it when using other "Include" areas (Splines or Paint).

Quote
Next Try was to use the Vector Mask as our Forest "Surface". This works fine, the Trees are placed right matching the image map. But of course a Terrain has Hills and Valleys - Ups and Downs - the trees are not placed right :)

Because the terrain must be assigned in the "Surfaces" rollout (taking care of turning off the checkbox described above).

Quote
So now we glue the Vector Mask on the Terrain. A Really complex Vector mask is now glued on the surface. Hopefully this works. :)

That doesn't work. The elevation of the spline's vertex is not used in Forest.

Quote
And hey"happy eastern"

Thanks ! Same for you.  ;)

Carlos Quintero
iToo Software

mcm770

  • Newbie
  • *
  • Posts: 7
Re: Locate Trees by Map
« Reply #6 on: April 15, 2012, 12:15:32 PM »
Hi Carlos,

Thanks for help. We´re able to put the trees close to there "real" place on the sattlelite texture by using splines.
It seems to be in our case a good method.

Forest is a really cool plugin!

Best Regards,
Michael