Modifications to defensive building models needed
Re: Modifications to defensive building models needed
I can't answer all your questions, but there are really only a few structure types you need to make basements for:
- fortress
- hardpoint (use the new ones!)
- wood tower
- hardened tower
- bunker
- emplacement (round)
- emplacement (cross)
- pit
- fortress
- hardpoint (use the new ones!)
- wood tower
- hardened tower
- bunker
- emplacement (round)
- emplacement (cross)
- pit
Re: Modifications to defensive building models needed
There are wood towers?Zarel wrote:- wood tower
Aren't there only concrete and metal towers?
Re: Modifications to defensive building models needed
Well, whichever kind of tower the MG Guard Tower and Sensor Tower are. I guess they're metal; I always think of them as wood.
Re: Modifications to defensive building models needed
Ok that's a start... Thanks a lot.Zarel wrote:I can't answer all your questions, but there are really only a few structure types you need to make basements for:
- fortress
- hardpoint (use the new ones!)
- wood tower
- hardened tower
- bunker
- emplacement (round)
- emplacement (cross)
- pit
I guess the meshes are in data/base/structs; file names there are not very descriptive though
Also where would I find the corresponding textures to them?
Edit: Are the new hardpoints in the Beta4 source release? It not where can I get them?
Re: Modifications to defensive building models needed
data/base/texpages/ (i.e. base.wz/texpages/)poVoq wrote:Ok that's a start... Thanks a lot.
I guess the meshes are in data/base/structs; file names there are not very descriptive though![]()
Also where would I find the corresponding textures to them?
Feel free to upgrade the textures and models while you're at it. But keep in mind we prefer to keep the number of polygons/vertices as low as possible, after all, at a normal zoomlevel, you're only going to be able to see a few pixels of the structure, anyway.
For the bunkers, refer to this guide:
It also illustrates roughly how far down the basements should go.
Yes, they're in the beta 4 source release.poVoq wrote:Edit: Are the new hardpoints in the Beta4 source release? It not where can I get them?
Re: Modifications to defensive building models needed
Hmm... those tex pages are a complete mess
Doesn't look like they are even really thematically sorted.
How does the project deal with new models and textures?
The quickest (but messiest) solution would be to either just reuse some texture space, or to look for some free space on one of the pages (page-11-player-buildings comes into mind). But I don't really like either.
How does the project deal with new models and textures?
The quickest (but messiest) solution would be to either just reuse some texture space, or to look for some free space on one of the pages (page-11-player-buildings comes into mind). But I don't really like either.
Re: Modifications to defensive building models needed
If we're ever going to have bigger textures, we're going to need additional texture pages, right?
I think that creating a 256x256 page for foundation textures only wouldn't be that bad. (the only direct problem I can see is that, when we have many additional pages, the game will gain some 1-5 Mb, which a better quality is absolutely worthy of).
I think that creating a 256x256 page for foundation textures only wouldn't be that bad. (the only direct problem I can see is that, when we have many additional pages, the game will gain some 1-5 Mb, which a better quality is absolutely worthy of).
Re: Modifications to defensive building models needed
We generally just add new texture pages.poVoq wrote:Hmm... those tex pages are a complete messDoesn't look like they are even really thematically sorted.
How does the project deal with new models and textures?
Re: Modifications to defensive building models needed
Well bigger textures could just use 512x512 or so... that isn't a problem which would force the creation of new texpages.
Just adding new texpages for new stuff of course works, but IMHO from a editing point of view having individual textures for each model (like it is done in newer games that are not so severely limited in texture memory like the old Playstation) would be the much better option. I even doubt that from a coding/performance point of view it will make much of a difference, but someone with more knowledge about that would need to confirm this.
So if I will actually find the time to update the defensive structures, I would propose that each building and it's corresponding base should share an single texture (a 64x64 or a 128x128 should be ok for now) and if possible there should also be a subdirectory for defensive structures and proper naming of the files.
How much work would it be to restructure the code according to this idea?
It might not make much of a difference for the game itself, but since it is a fully GPLed game one should also try to ease future modifications by cleaning up the file structure.
Just adding new texpages for new stuff of course works, but IMHO from a editing point of view having individual textures for each model (like it is done in newer games that are not so severely limited in texture memory like the old Playstation) would be the much better option. I even doubt that from a coding/performance point of view it will make much of a difference, but someone with more knowledge about that would need to confirm this.
So if I will actually find the time to update the defensive structures, I would propose that each building and it's corresponding base should share an single texture (a 64x64 or a 128x128 should be ok for now) and if possible there should also be a subdirectory for defensive structures and proper naming of the files.
How much work would it be to restructure the code according to this idea?
It might not make much of a difference for the game itself, but since it is a fully GPLed game one should also try to ease future modifications by cleaning up the file structure.
Re: Modifications to defensive building models needed
I love this idea, when do we get to see it?
"No, you don't want to buy this Sh[beep]t from me. It shoots sideways, it was built by retard zombies in some f[beep]king outreach program." HL:G
- Terminator
- Regular

- Posts: 1077
- Joined: 05 Aug 2006, 13:46
- Location: Ukraine
- Contact:
Re: Modifications to defensive building models needed
What if to increase terrain poly count ? each tile divide on 4 smaller. But don't do it for structures. so if bunker is on 1 tile now it would stand on 4 smaller tiles. 
Will it solve that "collision problem" ?
Will it solve that "collision problem" ?
Death is the only way out... sh*t Happens !
Russian-speaking Social network Group http://vk.com/warzone2100
Russian-speaking Social network Group http://vk.com/warzone2100
Re: Modifications to defensive building models needed
I didn't get the idea and multiplying the polygons from the terrain by 4 is something BIG, really. The problem is that the current system makes calculations that slow down the game, the objective is to make the game run more smoothly and faster. If making the foundations for all the defensive buildings would free up space for the Artists to implement more detailed models withou significant reduction in performance, then I really think it's worth the "bad appearance" of the foundation.Terminator wrote:What if to increase terrain poly count ? each tile divide on 4 smaller. But don't do it for structures. so if bunker is on 1 tile now it would stand on 4 smaller tiles.
Will it solve that "collision problem" ?
If I manage to, I'll be glad to make the necessary modifications to the models, if still needed. And I don't actually see any problem in simply adding a new "foundations" texpage, with all the foundations' textures. By what I've seen from the folder structure, it isn't hard to find things.
Hmm... Was this already decided for good? Those foundations are sure to be implemented?
Re: Modifications to defensive building models needed
Speaking of wooden towers, don't we need basements for the scavenger strutures, too?Zarel wrote:I can't answer all your questions, but there are really only a few structure types you need to make basements for:
- fortress
- hardpoint (use the new ones!)
- wood tower
- hardened tower
- bunker
- emplacement (round)
- emplacement (cross)
- pit
Philipp
Re: Modifications to defensive building models needed
I have made a short guide on how to fix this It works in trunk and I suspect it will work in 2.3.# I have added an untested pie file to the guide for 2.3 https://sourceforge.net/apps/trac/wzgra ... evelopment
For more info wzgm.net or talk to someone in IRC ##wzgm.
If the pie file don't work remember its not been tested. IT IS A GUIDE
For more info wzgm.net or talk to someone in IRC ##wzgm.
If the pie file don't work remember its not been tested. IT IS A GUIDE
-
cybersphinx
- Inactive

- Posts: 1695
- Joined: 01 Sep 2006, 19:17
Re: Modifications to defensive building models needed
That is a simple and elegant solution to the problem that the side textures get distorted. But those models still have their bottom vertices modified to fit the terrain, and that makes it difficult to render them faster. Though I'm wondering (and yes, I'm too lazy to reread the thread to see if it was mentioned already) if it's possible to cache each modified model, then the modifications only have to be done once when it's constructed, and possibly redone when the terrain changes.


