Terrain cliffs with TerrainDiffuseMethod and Elevation

Software: Away3D 4.x

Rayen123, Member
Posted: 03 April 2013 08:38 PM   Total Posts: 70

Hello,
I know that with TerrainDiffuseMethod I can texture terrain with different textures, and with Elevation I can make height if terrain by heightMap.

Question is:
Is possible create terrain cliffs, like in warcraf3, that the terrain will have rock texture on the side (like in image) ?
(Maybe with some height difference between two vertexes ->.. for example: if(distance>cliffHeight) -> setRockTexture();  , but I dont know how… or another way)

Thanks very much!

 

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 09 April 2013 06:06 AM   Total Posts: 166   [ # 1 ]

I think that it can not make a vertical cliff with the Elevation.
Because it change only y value of each vertices.
x and z value of All of vertices are different from each.
And texturing by TerrainMethod can’t work too.

In a newer similar topic on this forum, Fabrice referred to one of Extrude class. I haven’t know well about other Away extrusion classes yet.
http://away3d.com/livedocs/away3d/4.0/away3d/extrusions/package-detail.html

And I found a his blog post. It seems useful for you.
http://www.closier.nl/blog/?p=57
Maybe, It is implemented as PathExtrude? LinearExtrude?

If you make it,
Please tell me the result.

Cheers.

   

Rayen123, Member
Posted: 10 April 2013 10:03 PM   Total Posts: 70   [ # 2 ]

Thanks, i will check it smile

   

Radiosatch2000, Newbie
Posted: 29 May 2015 09:05 PM   Total Posts: 6   [ # 3 ]

You may want to look into the SandCastle program and API which is built on the Away3D framework.  It allows for much more advanced terrain generation than you can get from Away3D’s Elevation class.

See more at http://www.theyellowthorn.com

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X