Tree Improvement Project (Full Version)

All Forums >> [Current Games From Matrix.] >> [Discontinued Games] >> Panzer Command: Kharkov >> Maps, Models and Mods



Message


RyanCrierie -> Tree Improvement Project (1/24/2009 6:42:02 AM)

So guys, how many polygons is acceptable for a tree? I'm seeing 100~ cited as common for a low poly tree on the net; with about 1,000 trees on a map, that means 100,000 polys will be eaten up by vegation. Or should we shoot down for 50 polys?




benpark -> RE: Tree Improvement Project (1/24/2009 7:19:56 AM)

Can we split the difference? Can 75 polys be done?





Stridor -> RE: Tree Improvement Project (1/24/2009 8:10:20 AM)


quote:

ORIGINAL: RyanCrierie

So guys, how many polygons is acceptable for a tree? I'm seeing 100~ cited as common for a low poly tree on the net; with about 1,000 trees on a map, that means 100,000 polys will be eaten up by vegation. Or should we shoot down for 50 polys?


NewTree.x

100 polys is just fine

remember that if you define a LOD model like this

NewTree_LOD.x

along with your main model and make it a lower poly version again (say 25 polys) then the high level tree version gets unloaded at distance. So up close you have detail, but far away you save polys.

Thanks for taking on the tree improvement business Ryan. It is sorely needed.

Regards

S.




spellir74 -> RE: Tree Improvement Project (1/24/2009 8:57:50 AM)

I've avoided the maps, I know. But I have a comment about the stock trees...

The blue green deciduous (leavy seasonal) ones gotta go. Other than that the stock green proper ones are tolerable.

-----
Autumn red yellow ones would be trippy, for some maps. (And someday the ability to switch seasons for a map.)




RyanCrierie -> RE: Tree Improvement Project (1/25/2009 1:26:48 AM)

Trees are damned hard to do right properly, due to their complexity. I'm still learning various methods used to generate trees...




Mraah -> RE: Tree Improvement Project (1/25/2009 1:32:58 AM)

Ryan,

Go back to this old post by Benpark ...

Sticks and Twigs .... http://www.matrixgames.com/forums/tm.asp?m=1869746

I bumped the thread to the front.

I don't know if it's much help ... I figure you want to make some really high detailed models from scratch so it may not be of any help [:(]




Dean J -> RE: Tree Improvement Project (1/25/2009 3:21:41 AM)

This link may be of interest:

http://panda3d.org/phpbb2/viewtopic.php?t=4550&postdays=0&postorder=asc&start=0&sid=fa14269cfdef465293cb4770aa4197e0

It's on the Panda3D site (not a bad 3d engine for any 3d programmers amongst you, provided you like programming in Python) and is a decent summary of available tools for content creation.  All of the links are interesting, but it is the first link - to a program called Tree[d] - that I want to draw your attention to.  I haven't tried it myself, but it may be worth a look.  Anyway, FWIW ...

-Dean




benpark -> RE: Tree Improvement Project (1/25/2009 3:50:34 AM)

That's one cool program (the tree generator). If we can get these into the game, it would improve the looks of the maps immensely.

They seem to be pretty high vertice models once exported. Is there a way to scale them without ruining the appearance too much?




RyanCrierie -> RE: Tree Improvement Project (1/25/2009 4:46:03 AM)

I've got Tree D installed and have been playing with it sorta. It's very high poly, and each X file is like 2~ MB. Might be because of the animation though....It's looking like a good billboard tree generator though.




Stridor -> RE: Tree Improvement Project (1/25/2009 5:29:12 AM)

quote:

ORIGINAL: Dean J

This link may be of interest:

http://panda3d.org/phpbb2/viewtopic.php?t=4550&postdays=0&postorder=asc&start=0&sid=fa14269cfdef465293cb4770aa4197e0

It's on the Panda3D site (not a bad 3d engine for any 3d programmers amongst you, provided you like programming in Python) and is a decent summary of available tools for content creation.  All of the links are interesting, but it is the first link - to a program called Tree[d] - that I want to draw your attention to.  I haven't tried it myself, but it may be worth a look.  Anyway, FWIW ...

-Dean



Dean, you have been a goldmine in your precious few posts.

EarthSculptor:

Remind anyone of anything ... similar? [:D]


[image]local://upfiles/26427/CD77D23197454A7A98C7D918A931C363.jpg[/image]




Mraah -> RE: Tree Improvement Project (1/25/2009 8:15:02 AM)

quote:

ORIGINAL: Stridor

Dean, you have been a goldmine in your precious few posts.

EarthSculptor:

Remind anyone of anything ... similar? [:D]



Yeah ... I saw that ... and wondered which came first ... the chicken or the egg. [:)]

Very nice.

EDIT NOTE .... Or is this very bad? [:(]




benpark -> RE: Tree Improvement Project (1/30/2009 5:19:06 AM)

I'm getting ready to rededicate myself to "sprucing up" the trees. As my free time is severely limited for the next 4 months, this may be a slow process.

For our purposes, these great programs seem to produce models that are too high poly- is this correct? So are we stuck with the system that the game currently uses, and will I/we just need to make better looking textures?




Stridor -> RE: Tree Improvement Project (1/30/2009 6:02:46 AM)

quote:

ORIGINAL: benpark

I'm getting ready to rededicate myself to "sprucing up" the trees. As my free time is severely limited for the next 4 months, this may be a slow process.

For our purposes, these great programs seem to produce models that are too high poly- is this correct? So are we stuck with the system that the game currently uses, and will I/we just need to make better looking textures?


Thank goodness you are taking these on board. With your artistic prowess we should start getting some nice looking trees!

My 2 cents

TreeD produces some really nice trees and if you get the settings right they are not too expensive (see SS below). The trick is to model the tree in planes which are then mapped to a whole branch via a texture (again see SS right corner).

TreeD can make virtually any tree (see the included examples), so it will be a great start, but you will need to do some post processing in MS3D or fM I bet.

The trick is to have a high quality tree model of ~ 200 -300 triangles and then a low poly LOD version ~ 20 - 30 polys. That will keep the frame rate up.

Regards

S.



[image]local://upfiles/26427/DF33732F60874D4891FD2F09A6D3BDDB.jpg[/image]




Stridor -> RE: Tree Improvement Project (1/30/2009 6:17:56 AM)

So the other nice thing about treeD is that it will basically make your LODS for you by just changing a few settings (see below)


[image]local://upfiles/26427/D2DA232ED4EF429A8348C48F7B0D74D6.jpg[/image]




Stridor -> RE: Tree Improvement Project (1/30/2009 6:39:18 AM)

Basically stay away from the leaf subsection (turn leaves off as they are the biggest triangle eater [;)])

Amazing what treeD can do, a poor mans speed tree [&o]

195 triangles



[image]local://upfiles/26427/DF7AB3EA9D384B48A807CE7D29394840.jpg[/image]




Stridor -> RE: Tree Improvement Project (1/30/2009 6:46:46 AM)

For when PC+ goes to Afrika!

(only 78 triangles and not very good frond texture - but you get the idea)

[image]local://upfiles/26427/0D9C23011114438A9CD2B3889968B767.jpg[/image]




benpark -> RE: Tree Improvement Project (2/8/2009 5:17:02 PM)

Anyone tried this program?:

http://www.aliencodec.com/product_treemagik.php

I see that it exports .x files. There's a demo, so I'm going to have a quick look today.





benpark -> RE: Tree Improvement Project (2/8/2009 6:35:20 PM)

I think Tree[d] is the better of the two after a quick look.

Here is a first test of a tree. It's roughly 300 triangles. It's marginally better than the stock trees, so I'm still working on color schemes and such. I also am still tweaking them in MS3D, as fM seems to map the textures differently.

[image]local://upfiles/7373/9FD3682FBD044F63A889273D17C8DC16.jpg[/image]




benpark -> RE: Tree Improvement Project (2/8/2009 7:38:06 PM)

Same tree, changed .dds texture.

I did the output of this one in fM. It looks fine in the game, but the textures are odd in the fM program. I'm using the exports as Stridor has them listed, so I hope all will be well with lighting effects etc once I get the models looking better.

[image]local://upfiles/7373/388BBA34DC1B4462A425AAF45DC90462.jpg[/image]




Rick -> RE: Tree Improvement Project (2/8/2009 8:01:40 PM)

Ben,

How does the poly count for revised trees compare to the existing trees. I like the looks of your trees, and I like lots of trees and on map to help break up sight lines, but if there is a big performance hit, that would be a problem for me at least.

Thanks
Rick




benpark -> RE: Tree Improvement Project (2/8/2009 8:03:31 PM)

Rick- I'm going to have to compare them, but it's my goal to keep them as low as I can. These are just the first steps.




benpark -> RE: Tree Improvement Project (2/13/2009 5:34:49 PM)

Alright, I have a day to deal with this again (and maybe part of Sunday).

After looking at a few schemes, I think the complex 3D model of the tree isn't working. The lighting ends up reflecting in odd ways on the planar "leaves", and we risk taking a bit of a hit for the lower end users with little return.

I am trying different textures on the existing 2-plane rectangular models we now have, and they look good in fM so far. If anyone knows the answer to these following problems, it would help a great deal:

I am having some issues with the way the game handles alpha channels. In fM, you can set the color for a transparent area. Does this over-ride any alpha settings? Or is it better to just do the alpha channel in PSD? If PSD is the solution, what are the best settings to save as- .bmp, .dds etc. PzC has 3 different texture types for trees(!), though one must be the LoD one.




Stridor -> RE: Tree Improvement Project (2/13/2009 8:52:39 PM)


quote:

ORIGINAL: benpark

Alright, I have a day to deal with this again (and maybe part of Sunday).

After looking at a few schemes, I think the complex 3D model of the tree isn't working. The lighting ends up reflecting in odd ways on the planar "leaves", and we risk taking a bit of a hit for the lower end users with little return.

I am trying different textures on the existing 2-plane rectangular models we now have, and they look good in fM so far. If anyone knows the answer to these following problems, it would help a great deal:

I am having some issues with the way the game handles alpha channels. In fM, you can set the color for a transparent area. Does this over-ride any alpha settings? Or is it better to just do the alpha channel in PSD? If PSD is the solution, what are the best settings to save as- .bmp, .dds etc. PzC has 3 different texture types for trees(!), though one must be the LoD one.


Ben,

The reason why PzC has some many different texture types is the following.

The game engine wants everything in dds (DXT1 bit alpha) for video memory reasons. However as you have noticed this is a compressed format which does some compression damage to your original pure/pristine source textures. For this reason K released the source textures as bmps and pngs so users would have their original source to make changes to.

Unfortunately this really swelled the size of PC for very very little benefit (most true moders are gonna start from scratch anyway).

So in terms of the engine you want do all transparency in your dds (eg via your nvidia photoshop plugin). However make sure you set your fM material settings correctly:

Diffuse 0xFF FF FF FF
Ambient 0xFF FF FF FF
Specular 0xFF 00 00 00
Emissive 0xFF 00 00 00
Shininess 1
Transparency 0%

This way it will be consistent with all the new model lighting and work in different lighting conditions.

As a special note lets assume that you were building a House which had lights on in the window at night. Then you would define a window material as

Diffuse 0xFF FF FF FF
Ambient 0xFF FF FF FF
Specular 0xFF 00 00 00
Emissive 0xFF 7F 7F 40
Shininess 1
Transparency 0%

This would give a slight yellow glow to the window at night!

Likewise lets assume you wanted to do a factory fresh tank which was shiny from the factory then

Diffuse 0xFF FF FF FF
Ambient 0xFF FF FF FF
Specular 0xFF FF FF FF
Emissive 0xFF 00 00 00
Shininess 32
Transparency 0%

This will give the tank strong highlights on its textures! (or you could do this for a window or bino glass, etc)

Howvever as no stock model (or mod model) has yet done any of that, and there were lots of emissive and specular errors in the code, my fix up program basically defaulted all the materials to the very first set of numbers so at least everything was reasonable and consistent and worked in different lighting conditions. However a good texture/material designer can do better for the future I think.

Regards

S.




benpark -> RE: Tree Improvement Project (2/14/2009 6:59:25 PM)

Thanks for that, it will help keep the trees from looking like they are made of shiny tin!

The .dds processing is brutal on the sharpening. I'm trying to get rid of as much black background "fringe" around the model as possible, but the .dds plugin keeps resharpening it back. I've tried multiple blurs on alpha layers to try to fool it, but it keeps coming back. The picture below is the best I could get it thus far.

These are the two intersecting, very low poly tests. Rick, these are probably going to run faster than the current ones, as those utilize 3 or more extra faces.

I fired up CM last night, and re-noticed that the trees look pretty good as plain billboards (as another possible option). There are lots of ways to do this, so I will get some more done then put up samples for gauging what people prefer in the future (as my schedule will allow).


[image]local://upfiles/7373/2CC3E9194E7B4D99AEF08126CC39D076.jpg[/image]




Rick -> RE: Tree Improvement Project (2/14/2009 7:11:04 PM)


Hey - thanks Ben! - one of these days I'll reak down and buy a faster rig.

Rick




benpark -> RE: Tree Improvement Project (2/14/2009 8:07:18 PM)

Edit- never mind, I figured it out. Like most problems, it was the user.

When facing the camera, the billboard test looks pretty good. I wonder if the simplest solution isn't maybe the best in this case. We gain lots on the processing for lower spec comps, the tree models don't look like a vehicle after an accident and they are (fairly) simple to make.




benpark -> RE: Tree Improvement Project (2/14/2009 8:47:49 PM)

The same tree, billboard version:

[image]local://upfiles/7373/19E3EF21C8B641CCB52C809E967D2BD9.jpg[/image]




benpark -> RE: Tree Improvement Project (2/14/2009 9:50:17 PM)

Last for today- a version that is made up from 4 faces. I must have changed the lighting between the first and second two screen shots, but this gives an impression of what the basic shapes might be.

[image]local://upfiles/7373/577280AF3FF84BC3948CD15BE6A55261.jpg[/image]




Mraah -> RE: Tree Improvement Project (2/14/2009 10:51:13 PM)


quote:

ORIGINAL: benpark

The same tree, billboard version:



Ben,

The trees are looking good.

You may want to test the "billboard" trees in the game ... I don't know how the dynamic LOS would behave when it's a rotating flat plane. I'm thinking it would block LOS in reference to it's initial palcement on the map ... and 90 degrees from that facing it wouldn't block LOS.

[&:]

Rob




benpark -> RE: Tree Improvement Project (2/14/2009 11:07:24 PM)

Hmmm. Good point.

Maybe the models need be adapted in some fashion to allow more LOS around the trunk area, and less in the leafy area. Like a "T" shape. I've seen some of the models have this form, so I'll try some tests on those in a few days.




Page: [1] 2 3 4   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.65625