Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » New tool I am working on, feedback wanted
New tool I am working on, feedback wanted [message #473286] Sun, 19 August 2012 23:17 Go to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

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 #473288 is a reply to message #473286] Mon, 20 August 2012 01:38 Go to previous messageGo to next message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma: 0
General (3 Stars)
It sounds great, custom maps don't often have this feature, and I guess if they do, they're using the only method available to them, which you said isn't the best way to do it.
Does it work only for buildings, or would this open up possibilities for other objects, too?

That other tool you were working on would also be pretty neat:
http://www.renegadeforums.com/index.php?t=msg&th=22644&start=0&rid=3 415

Good job!



Re: New tool I am working on, feedback wanted [message #473291 is a reply to message #473286] Mon, 20 August 2012 02:07 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

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 Go to previous messageGo to next message
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 #473313 is a reply to message #473304] Tue, 21 August 2012 03:31 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
/me wants bumping maps/better lighting/shadows (in one word, better shaders) Smile

this is nice too. Keep up the good work Thumbs Up


Creator of Mutant Co-Op
Developer of LuaTT
Re: New tool I am working on, feedback wanted [message #473314 is a reply to message #473286] Tue, 21 August 2012 04:33 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

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
Re: New tool I am working on, feedback wanted [message #473473 is a reply to message #473286] Fri, 24 August 2012 18:10 Go to previous messageGo to next message
OWA is currently offline  OWA
Messages: 647
Registered: May 2006
Location: W3D Hub
Karma: 0
Colonel

The method sounds great for modellers jonwil. Nice one!

Re: New tool I am working on, feedback wanted [message #473476 is a reply to message #473286] Fri, 24 August 2012 20:21 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
So disabling the vertex lighting won't be included with these tools?
Re: New tool I am working on, feedback wanted [message #473519 is a reply to message #473286] Sat, 25 August 2012 12:43 Go to previous message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
Actually, taking it from the Test Build Changelog, there are two new features coming soon. One is a User-Defined property set in 3ds max/Gmax that disables vertex lighting. And the other is a fix to a certain LE tool.

[Updated on: Sat, 25 August 2012 12:43]

Report message to a moderator

Previous Topic: muzzle flash
Next Topic: Vertex Solve question
Goto Forum:
  


Current Time: Fri Nov 22 07:31:26 MST 2024

Total time taken to generate the page: 0.00851 seconds