New tool I am working on, feedback wanted [message #473286] |
Sun, 19 August 2012 23:17 |
|
Renegade supports a feature called "alternate materials". That is, when a building is killed (or when it goes low power), the materials on its meshes get changed. This can mean changes to such things as vertex materials, shaders, textures and texture coordinates.
This feature was originally created for use by the Westwood light-mapping system (so as to change the lightmaps over to "dead" ones when the building is killed/low power and as far as I can tell is not supported by the w3d export plugin at all.
I am the process of writing a tool that will let you make use of this feature for your own maps. (and before anyone says otherwise, no, using tiles for your building exteriors and interiors rather than terrain is not the answer, it uses more RAM, GPU, CPU etc)
The current thinking of how this would work is that you would produce your mesh with the texturing/materials/etc for the normal state and export it. Then you would change the materials without changing the geometry (there would be details available of whats safe to change and whats not) to create the "dead" state and export that. Then you would take both w3d files and run them through a tool that would combine both w3d files into one w3d file.
Does anyone have any comments on this idea? Does anyone have any suggestions for a better way to do this? Or a way to make it easier for the modelers?
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
|
Re: New tool I am working on, feedback wanted [message #473291 is a reply to message #473286] |
Mon, 20 August 2012 02:07 |
|
That other tool (to generate proper prelit light-map chunks) isn't going to happen at this point. But combine the tool in this thread with other 4.0RC1 changes and you will be able to do something that's pretty close to WS style light-mapping (assuming you know how to build the actual light-map textures that is)
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
Re: New tool I am working on, feedback wanted [message #473304 is a reply to message #473286] |
Mon, 20 August 2012 20:12 |
|
Mauler
Messages: 448 Registered: May 2003 Location: Alberta, Canada
Karma: 0
|
Commander |
|
|
All this is great but light mapping is not easy and it very time consuming, so experience with unwrapping and graphic software is needed
Also the method you mentioned would be the easiest imho, all that really needs changing in the main interior or exterior of the structure would be the lightmap
I would love to know how alternate materials can be applied.. Seems there are some w3d flags we do not have access to in the current max tools
And the animated tiles is only thing to come close to what Westwood had done with their structures, not to mention the ability to disable vertex lighting from max also brought it a lot closer than anyone else has, without custom tools.
|
|
|
|
Re: New tool I am working on, feedback wanted [message #473314 is a reply to message #473286] |
Tue, 21 August 2012 04:33 |
|
I have now written this tool and it (along with other things appearing in the latest scripts build) will allow modders to do lighting that is as close to proper Westwood style lightmaps as its possible to get without the tools Westwood used.
Details of this tool will be posted as appropriate when the next scripts build is released.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
|
|
|