The Steppenwulf Posted October 29, 2016 Share Posted October 29, 2016 1 minute ago, sbobovyc said: I just pushed an update to unmdr which makes it compatible with Python 3 and from now on I will be developing it as a Python 3 codebase. This will ensure a smooth transition into a Blender plugin. Thanks for your continuing work on this. I'm sure there will be a flood of interest once we have a working export script for blender. 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted October 31, 2016 Author Share Posted October 31, 2016 Latest unmdr script is able to dump T-90AM: https://goo.gl/photos/ZkC9x8sq54XvD9jW7 0 Quote Link to comment Share on other sites More sharing options...
Scipio Posted October 31, 2016 Share Posted October 31, 2016 I'll test it in the next days, I'm working on something different right now. 0 Quote Link to comment Share on other sites More sharing options...
SchnelleMeyer Posted October 31, 2016 Share Posted October 31, 2016 Thank you so much for this ! That T-90AM is just beautifull! 0 Quote Link to comment Share on other sites More sharing options...
Scipio Posted October 31, 2016 Share Posted October 31, 2016 On 30.10.2016 at 1:34 AM, sbobovyc said: I just pushed an update to unmdr which makes it compatible with Python 3 and from now on I will be developing it as a Python 3 codebase. This will ensure a smooth transition into a Blender plugin. Excellent, seems it's working now as it should, a lot of files were unpackt. 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted November 16, 2016 Author Share Posted November 16, 2016 Source for the tools is moving to https://github.com/sbobovyc/CM2Tools 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted December 13, 2016 Author Share Posted December 13, 2016 Figured out how transparency on some vehicle windows worked. Instead of alpha channel in the texture file, the object's meta data in the mdr file contains a float constant representing the alpha value for that object's material. https://drive.google.com/file/d/0B982H8gQa3LZT0lodDh1TXJKeDA/view?usp=sharing 0 Quote Link to comment Share on other sites More sharing options...
The Steppenwulf Posted December 13, 2016 Share Posted December 13, 2016 15 hours ago, sbobovyc said: Figured out how transparency on some vehicle windows worked. Instead of alpha channel in the texture file, the object's meta data in the mdr file contains a float constant representing the alpha value for that object's material. https://drive.google.com/file/d/0B982H8gQa3LZT0lodDh1TXJKeDA/view?usp=sharing Do you have a byte address? 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted December 13, 2016 Author Share Posted December 13, 2016 (edited) python3 unmdr.py -p -v myfile.mdr > out.txt Now, open out.txt with any text editor and search for "Alpha." Every sub-model will have an alpha constant except for the very first one. Right above this output, will be a bunch of hex addresses followed by a float: 0x35884 1.000000 0x35888 0.000000 0x3588c 0.000000 0x35890 0.000000 0x35894 12.8000000x35898 1.000000 // This is alpha Alpha 1.000000 Using your hex editor, you can modify the float at 0x35898 to change the object alpha. Edited December 13, 2016 by sbobovyc 0 Quote Link to comment Share on other sites More sharing options...
pappagoat Posted January 4, 2017 Share Posted January 4, 2017 (edited) . Edited January 4, 2017 by pappagoat 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 16, 2017 Author Share Posted January 16, 2017 (edited) That's a strange looking rock1.mdr https://drive.google.com/open?id=0B982H8gQa3LZTlJKSk0tWGl2d0E Edited January 16, 2017 by sbobovyc 0 Quote Link to comment Share on other sites More sharing options...
The Steppenwulf Posted January 18, 2017 Share Posted January 18, 2017 On 16/01/2017 at 11:15 PM, sbobovyc said: That's a strange looking rock1.mdr https://drive.google.com/open?id=0B982H8gQa3LZTlJKSk0tWGl2d0E You must have managed to convert an .obj (or .blend ) to .mdr format?? 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 18, 2017 Author Share Posted January 18, 2017 I have a very basic Blender mdr exporter script 0 Quote Link to comment Share on other sites More sharing options...
The Steppenwulf Posted January 18, 2017 Share Posted January 18, 2017 (edited) 29 minutes ago, sbobovyc said: I have a very basic Blender mdr exporter script Superb - I congratulate you! There are lots of ideas for alternative objects; Vehicles, ( lorries, buses), train coaches, storage containers, skips, industrial plant machinery (silos), greenhouses, satellite phone masts, electricity pylons.... * Barricades!! Edited January 18, 2017 by The Steppenwulf 0 Quote Link to comment Share on other sites More sharing options...
tankcrew Posted January 21, 2017 Share Posted January 21, 2017 (edited) Why unpacking the .brz file may stop at 99% without any error? And the unpacked folder does not appear. Edited January 21, 2017 by tankcrew 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 22, 2017 Author Share Posted January 22, 2017 3 hours ago, tankcrew said: Why unpacking the .brz file may stop at 99% without any error? And the unpacked folder does not appear. Can you show me the whole command you are executing? Are you using Python 3? 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 22, 2017 Author Share Posted January 22, 2017 Exporter now has the capability of exporting multi-mesh objects with anchor points. For example, here is an ACW-R with working muzzle and ejection. 0 Quote Link to comment Share on other sites More sharing options...
tankcrew Posted January 22, 2017 Share Posted January 22, 2017 10 hours ago, sbobovyc said: Can you show me the whole command you are executing? Are you using Python 3? I used Python 2.7.13 I still don't know why it shows 99%, but I found the unpacked .brz file in a other location - My C:\Users\folder. And it seems that all is well, thank you for your work! Is there a way to set a different place for the unpacked file? My C:\ drive has little space... 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 22, 2017 Author Share Posted January 22, 2017 9 hours ago, tankcrew said: I used Python 2.7.13 I still don't know why it shows 99%, but I found the unpacked .brz file in a other location - My C:\Users\folder. And it seems that all is well, thank you for your work! Is there a way to set a different place for the unpacked file? My C:\ drive has little space... You can use the -o flag to specify an output directory. 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 30, 2017 Author Share Posted January 30, 2017 0 Quote Link to comment Share on other sites More sharing options...
The Steppenwulf Posted January 30, 2017 Share Posted January 30, 2017 (edited) Fantastic tool - It's a massive thumbs up from me. Good idea to provide some instructions with the import/export scripts for beginners, though it's texture mapping that I find challenging with blender for some reason. Regardless I must get to work with this soon enough! Thanks sooo much for all your work on this! Edited January 30, 2017 by The Steppenwulf 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted January 30, 2017 Author Share Posted January 30, 2017 Thanks! Can't wait to see what he community comes up with. Keep in mind you can use whatever tool you like to model, texture, map, etc and then import your work into Blender then export into MDR. 0 Quote Link to comment Share on other sites More sharing options...
SchnelleMeyer Posted January 30, 2017 Share Posted January 30, 2017 Thanks for your continued effort on making this Sbobovyc! - A lot of good stuff will surely come out of your scripts! Combat Mission modding future seems bright! 0 Quote Link to comment Share on other sites More sharing options...
TheForwardObserver Posted February 1, 2017 Share Posted February 1, 2017 Awesome work @sbobovyc. With your tools I've finally been able to tweak the soldiers' gear to my liking. Much appreciated. 0 Quote Link to comment Share on other sites More sharing options...
sbobovyc Posted February 26, 2017 Author Share Posted February 26, 2017 Have not put out updates in a while, so just wanted to let you guys know that I am still working on the mdr tools. For now, I leave you with this bull shot of a BMP-2 with a few "enhancements". https://drive.google.com/open?id=0B982H8gQa3LZaG8za1dEZ3JpamM 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.