PDA

View Full Version : Cornfield



Fancy Sweetroll
01-05-2013, 03:37 PM
Cornfield

http://imageshack.us/a/img22/1702/96349747.jpg

Here is a picture of our lod's for the plant. There is an extra lod which was an x-tree consisting of 8 triangles.

What we wanted to achieve with the cornfield was to make it so huge that entering it might be as dangerous as standing in the front line, since you might never be able to find your way out. This demanded a huge amount of cornstalks. Like 60000 plants. Another important thing was that the player was able to see the cornfield from very far away which made our initial approach seem impossible. Another thing we wanted was that the blades on the plant had touch bending.

We realized that the issue wasn't the amount of triangles on screen, but the amount of instances on screen. So we considered making a single object of about 20 plants. But we expected this would give our touch bending some problems.

Then it occurred to us that we could just make the plant with 2 lod's without the x-tree and give it a very short view range like 20 meters. And then have another object consisting of 240 x-trees. This object would be the lod1 of a box which was given a nodraw shader. This enabled us to make the x-trees only start to appear about 20 meters away from the player. We still had to spawn about 60000 of the original cornstalk's and then on top of that we had the patches of x-trees.

http://imageshack.us/a/img832/9818/58935307.jpg

In the end, this enabled us to have a huge cornfield with touch bending at a very low performance cost compared to it's size.

http://img593.imageshack.us/img593/7421/asdurb.jpg

http://img560.imageshack.us/img560/1750/asdasdasul.jpg

http://img716.imageshack.us/img716/6362/frame000000.jpg

In reality the player will never see the cornfield from as high as this, so the border wont be that noticeable ingame.

TrustyJam
01-05-2013, 11:10 PM
I'll be looking forward to the field being finished, trust me! (I'm the unlucky bastard who has to plant them all) :)

Glad we figured out a way to save performance though!

- Trusty

t.mclaughlin
01-06-2013, 11:29 AM
Looks great, What size is the texture map?

Fancy Sweetroll
01-06-2013, 03:15 PM
At the moment the trunk is 512*1024 being tiled and all the other details are on a single texture of 2048*2048. The X-patch has a 256*256 texture.

TrustyJam
01-16-2013, 12:40 AM
This is how it looks in practice. The First 20 meters or so are the actual 3D models. The rest are the billboard squares.

2

- Trusty

kai08
11-18-2024, 11:30 AM
Here is a picture of our LODs for the plant, including an additional LOD—a unique X-tree structure composed of 8 triangles. cox internet (https://www.thetripleplay.net/cox-internet/) This extra LOD adds complexity, providing a more detailed and dynamic representation, enhancing the overall design and visualization of the plant.