Warhammer Dark Omen Forum

Modifications => Tools => Topic started by: crash on December 26, 2013, 09:36:16 PM



Title: Mesh Viewer
Post by: crash on December 26, 2013, 09:36:16 PM
Here is a viewer for the m3d files.  It needs work, but it should be ok for now.  If you load models of vastly different size, sometimes you can't see the new one.  Just close the program and relaunch.  You need dotnet 4.0 and xna 4 redist to run.

https://dl.dropboxusercontent.com/u/21362347/viewer.zip

Here is an early look at my attempt at a scenario tool.  It can't do anything other than import a prj and that's about it.
Hopefully, it wont crash too much.  You need dotnet 4.0 and xna 4 redist to run.  The model viewer on this will only show the model until you load a prj.  when the buffer is resized for the main view, the small one only shows the top left portion of the buffer, so you cant see it.  No texs yet and lotsa fixes to go.

https://dl.dropboxusercontent.com/u/21362347/dost%20test.zip

[attachment=1]


Title: Re: Mesh Viewer
Post by: olly on December 26, 2013, 11:59:44 PM
Wow thanks for the Christmas present Crash, all works well and one step closer to a scenario tool (the Holy Grail of our combined quest)


(http://img809.imageshack.us/img809/7786/m81g.jpg) (http://imageshack.us/photo/my-images/809/m81g.jpg/)

The m3d importer is very useful for me to view the Portrait models, so I can hopefully add new custom model head, taken from the Call of Warhammer heads. As our existing Blender import .m3d script can't open them, only New Boids test engine, when replacing the teapot.m3d.

C:\Program Files (x86)\Dark Omen\Graphics\PORTRAIT\Meshes\11.m3d
(http://img802.imageshack.us/img802/4356/1a2s.jpg) (http://imageshack.us/photo/my-images/802/1a2s.jpg/)

Keep up the good work and can't wait for the future ability to import the Terrain model Height Map data into the 2 .PRJ DO height maps.

:)


Title: Re: Mesh Viewer
Post by: crash on December 28, 2013, 06:22:56 PM
 :D

Here is the source for the editor.  Not much, but its a start.  Delete that other game project you got a while back, because it has to have the m3d files converted to x files.  Since this loads the m3ds, this is what you want.

https://dl.dropboxusercontent.com/u/21362347/dostupload122813.zip

Made a change to the prj parser so you can spit out both of the height maps in the terr block.

https://dl.dropboxusercontent.com/u/21362347/ParsePRJ122813.zip

https://dl.dropboxusercontent.com/u/21362347/ParseBtb122813.zip



Title: Re: Mesh Viewer
Post by: crash on December 28, 2013, 09:57:43 PM
Crap! Just tried to load b207 and it crashed.  be mindful of the map you are loading in case it crashes.  don't use the file called dostupload unless you can fix it. Back to work.


Title: Re: Mesh Viewer
Post by: olly on December 29, 2013, 01:12:06 AM
Thanks for latest BTB and PRJ Parsers, all working well and good to see both height maps. Did find the same with B2_07 but its still awesome progress!

:) 



Title: Re: Mesh Viewer
Post by: crash on December 30, 2013, 07:04:20 PM
It didn't occur to me that they would have empty submeshes in their models.  Jerks.  Oh well, it's fixed now.  Delete the other version.

https://dl.dropboxusercontent.com/u/21362347/dostupload123013.zip

[attachment=1]

[attachment=2]

For the mesh viewer, just don't load any models with an empty submesh like the base for b207, and it should be fine.