Community Forum

Stones and Bushes .i3d

Forum Overview >> Editor

Created26.01.2011 19:58

Dennis Busch (Unknown) 26.01.2011 20:04

Im searching for the .i3d of the Stones and Bushes from the Foliages,to create a new Foliage.
Is there any way to change them or to create new Foliage .i3d`s?


Stefan Geiger - GIANTS Software 01.02.2011 13:55
The mesh of the bushes and stones is defined inside the map i3d.

The mesh is defined as a normal IndexedTriangleSet in the Shape section. The triangle set to use is defined in the Foliage layer with the attribute called blockShapeId.

So the exchange the model of the stones/bushes you need to add a new index triangle set, which you can copy from another i3d you have created, and then specify the the shapeId in the blockShapeId.

Note that the texture not be repeated. So the uv's need to go from 0 to 1.
Also if you use an atlasSize > 1, the uv's of the mesh still need to go from 0 to 1. They are later scaled by the engine according to the number of atlases. So you should create the mesh only with a texture which contains only one part.

The width and height attribute of the foliage layer are scaling values of the mesh. So you should create the mesh going from -0.5 to 0.5 in the x and z directions and from 0 to 1 in the y direction, to make sure that the height and width values really have the meaning of height and width.

Note: Log in to post. Create a new account here.