Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
The MDL7 model format #421495
04/18/13 11:48
04/18/13 11:48
Joined: Apr 2013
Posts: 17
Q
qwe Offline OP
Newbie
qwe  Offline OP
Newbie
Q

Joined: Apr 2013
Posts: 17
Hi every one.

Can someone explain to me the format of MDL7 model
I want some thing like this
The MDL5 model format ->
Internal File Formats
but that was for MDL5 and not for MDL7.

thanks

Last edited by qwe; 04/18/13 14:08.
Re: The MDL7 model format [Re: qwe] #421496
04/18/13 11:59
04/18/13 11:59
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I asked for that, too. The best description you can get are the SDK examples from the download page. A description as it exists for MDL5 has never been written.

Re: The MDL7 model format [Re: PadMalcom] #421499
04/18/13 12:10
04/18/13 12:10
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
The format isn't described anywhere and you should use the SDK to read, write and modify MLD7, HMP7 or WMP7 files programmatically.

Re: The MDL7 model format [Re: HeelX] #421505
04/18/13 14:06
04/18/13 14:06
Joined: Apr 2013
Posts: 17
Q
qwe Offline OP
Newbie
qwe  Offline OP
Newbie
Q

Joined: Apr 2013
Posts: 17
I try to use SDk in VS2012
project name: example_LoadMDL7

when build Project, I get this errorsb shocked
Error 1 error C2072: '_errno' : initialization of a function
Error 2 error C2205: '_errno' : cannot initialize extern variables with block scope
Error 3 error C2440: 'initializing' : cannot convert from 'int' to 'int *(void)'
Error 4 IntelliSense: function "_errno" may not be initialized
I correct this by change of locl variable "errno" in main block to new name: "int errn"

I build Project again i get this errors and some warnings.
Error 1 error LNK2026: module unsafe for SAFESEH image.
Error 2 error LNK1104: cannot open file 'LIBCD.lib'
I try to solve this by write "LIBCD.lib" in Project Properties -> Linker -> Input -> Ignore specific Default Libararies

I build Project again i get this errors and one warning
Warning 1 warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/SAFESEH' specification
Error 2 error LNK2026: module unsafe for SAFESEH image.
Error 3 error LNK1281: Unable to generate SAFESEH image.
I try to solve this by write " /SAFESEH:NO " in Project Properties -> Linker -> Command Line ->
Additional Options
So now it work very well sick
I want to use File instructions that provided by Gamestudio to read and write to file,So I HAVE TO Understand the format of the MDL7

Thanks


Last edited by qwe; 04/18/13 14:17.
Re: The MDL7 model format [Re: qwe] #421508
04/18/13 14:15
04/18/13 14:15
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
For me it worked without any problems in VS2010.

If you want to save and write MDL files look at the samples. They show exactly how to do it! laugh

Re: The MDL7 model format [Re: PadMalcom] #421509
04/18/13 14:28
04/18/13 14:28
Joined: Apr 2013
Posts: 17
Q
qwe Offline OP
Newbie
qwe  Offline OP
Newbie
Q

Joined: Apr 2013
Posts: 17
I want the person who wrote WmpMdlSdk or anyone who knew the structure of formats of MDL7 to give us the structure of formats of MDL7 Like the do in MDL5. That all I need to be able to create my one eidtor to eidt MDL7 files.


Thanks cool

Re: The MDL7 model format [Re: qwe] #421510
04/18/13 15:02
04/18/13 15:02
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
qwe, the SDK is very easy to use, it comes with a VS solution which you can open up and start to write your own plugin.

Re: The MDL7 model format [Re: HeelX] #421512
04/18/13 16:08
04/18/13 16:08
Joined: Apr 2013
Posts: 17
Q
qwe Offline OP
Newbie
qwe  Offline OP
Newbie
Q

Joined: Apr 2013
Posts: 17
Oh my friend thank

Re: The MDL7 model format [Re: qwe] #421516
04/18/13 18:03
04/18/13 18:03
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
If you need an editor, then check the Open Asset Import Library.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: The MDL7 model format [Re: rojart] #421853
04/26/13 11:44
04/26/13 11:44
Joined: Apr 2013
Posts: 17
Q
qwe Offline OP
Newbie
qwe  Offline OP
Newbie
Q

Joined: Apr 2013
Posts: 17
If i knew tho format of mdl7 i can do something like this
Code:
#include <acknex.h>
#include <default.c>
typedef struct {
  char v[4]; // "MDL3", "MDL4", or "MDL5"
  long unused1;    // not used
  float scale[3];  // 3D position scale factors.
  float offset[3]; // 3D position offset.
  long unused2;    // not used
  float unused3[3];// not used
  long numskins;   // number of skin textures
  long skinwidth;  // width of skin texture, for MDL3 and MDL4;
  long skinheight; // height of skin texture, for MDL3 and MDL4;
  long numverts;   // number of 3d wireframe vertices
  long numtris;    // number of triangles surfaces
  long numframes;  // number of frames
  long numskinverts; // number of 2D skin vertices
  long f;     // always 0
  long unused4;   // not used
} mdl_header;
mdl_header* qaz;
var h;
char b[84];
void main()
{

  	video_screen = 0;
	wait(1);
	h=file_open_read("A.mdl");/*name of mdl5 file change it if you want to use another file*/
	qaz=&b[0];
	int i;
	for( i=0;i<84;i++)
		b[i]=file_asc_read(h);
	printf("\nscale-x : %6.4f ; scale-y : %6.4f ; scale-z : %6.4f",(double)(*qaz).scale[0],(double)(*qaz).scale[1],(double)(*qaz).scale[2]);
	printf("\noffset-x : %6.4f ; offset-y : %6.4f ; offset-z : %6.4f",(double)(*qaz).offset[0],(double)(*qaz).offset[1],(double)(*qaz).offset[2]);
	printf("\nversion : %s",(*qaz).v);
	printf("\nskinwidth: %i",(*qaz).skinwidth);
	printf("\nskinheight: %i",(*qaz).skinheight);
	printf("\nnumskins: %i",(*qaz).numskins);
	printf("\nnumskinverts: %i",(*qaz).numskinverts);
	printf("\nnumverts: %i",(*qaz).numverts);
	printf("\nnumtris: %i",(*qaz).numtris);
	printf("\nnumframes: %i",(*qaz).numframes);
	printf("\nunused1 : %i",(*qaz).unused1);
	printf("\nunused2 : %i",(*qaz).unused2);
	printf("\nunused3[0] : %6.4f ; unused3[1] : %6.4f ; unused3[2] : %6.4f",(double)(*qaz).unused3[0],(double)(*qaz).unused3[1],(double)(*qaz).unused3[2]);
	printf("\nunused4 : %i",(*qaz).unused4);
	printf("\nflags : %i",(*qaz).f);
	
	file_close(h);	
}



Last edited by qwe; 04/26/13 11:47.

Moderated by  HeelX, rvL_eXile 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1