Can't find the detailed WMP format.

Posted By: NeutronBlue

Can't find the detailed WMP format. - 11/05/15 18:16

I see in the manual where it says the type of things that are in the WMP file, but I don't see any details of it. (Structs, pointers, etc..)
Do I need new reading glasses?
I'm writing an app (not a game) that will use 3DGS for final rendering.
Unfortunately, I'm also going to have to write a stripped down version of WED ("WED for Dummies"?).
It will basically ask you series of questions, and from that, build an internal file that will need to be converted to WMP format.
I've looked at the SDKs, but I don't "do" C++.

Any suggestions?
Posted By: Superku

Re: Can't find the detailed WMP format. - 11/05/15 18:24

There are WED/ MED and WMP SDKs on the download page: http://www.3dgamestudio.com/download.php

If you figure out how to use them (if possible even with Visual Studio Community/ 2015) please let me know!

EDIT: Oh I'm sorry, I've completely overlooked your last sentence. shocked
Posted By: NeutronBlue

Re: Can't find the detailed WMP format. - 11/05/15 18:51

Yes, I've looked at them - I can grasp the C# stuff in the AcknexWrapper.
Problem is, is that the only WED/MED stuff is in C++.
I'd almost pay somebody to convert all that to VB.net or C#..!
Strike that - how's $50 sound (... like an insult <grin> )
Posted By: FBL

Re: Can't find the detailed WMP format. - 11/05/15 23:13

You are searching for this: http://server.conitec.net/down/wmpmdlsdk7.zip
The samples are in C.

If you want to use the included wmpio.dll from VS.NET, you will need to marshal the interfaces.
http://www.codeproject.com/Articles/66245/Marshaling-with-Csharp-Chapter-1-Introducing-Marsh.aspx
Posted By: jcl

Re: Can't find the detailed WMP format. - 11/06/15 13:05

A WMP file is for WED only and has no structs and pointers. Maybe you mean WMB? I think the WMB 7 level format is described in the manual under "WMB 7 level format".
Posted By: NeutronBlue

Re: Can't find the detailed WMP format. - 11/06/15 16:10

Wow! - a reply from the top man himself..!

What I'm trying to do is write a program (vb.net) to quickly create a building (with number of floors/basement levels, etc.) using 3 questions that any dummy could answer.

1: What are the height/width dimensions of the foundation in feet.
2: How many floors does the building have?
3: Now many basement levels?

Ignoring the dimensions, say the responses are 5 floors and 3 basements.
The program would create: A foundation level, 5 floor levels, and 3 basement levels. (With the same dimensions as the foundation).
The resulting dataset I wish to turn into a WMP file that can be loaded into WED for further detail work, by somebody else.

(My target audience is "simple folk" - no knowledge of CAD, 3DGS, etc.)

If you have any suggestions of better ways to do this (WMP vs WMB) I'm all ears..
(I guess that would really by "all eyes" since this is a forum)

Thanks,

~Neut.
Posted By: NeutronBlue

Re: Can't find the detailed WMP format. - 11/06/15 16:50

To Firoball: I already downloaded every SDK available.
(But thanks anyway for the link!)

As for your next link: Ye Gods..!!! Marshaling, the topic I absolutely hate the most!!!
Posted By: FBL

Re: Can't find the detailed WMP format. - 11/06/15 19:17

That's what wmpio.dll exactly is for.

You could of course also use WMP2, which is the old format of A5 and can still be loaded by A8. It is plain text, however you'll need to find out how those blocks are defined (the base shape does not seem to be that complicated, though).

Here's a rather simple level.. good luck with reverse engineering wink

https://paste.ee/p/LTnxv
© 2024 lite-C Forums