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
1 registered members (TipmyPip), 18,606 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
Page 1 of 2 1 2
import models #401955
05/26/12 22:06
05/26/12 22:06
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
this is the code:

void Import_files()
{
OPENFILENAME ofd;
char buf[256];
FillMemory(&ofd,sizeof(ofd),0);
FillMemory(buf,256,0);
ofd.Flags=OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST;
ofd.lStructSize=sizeof(ofd);
ofd.hwndOwner=hWnd;
ofd.lpstrFilter = "Models *.x *.obj *.tga *.bmp *.pcx *.dds\0*.x;*.tga;*.bmp;*.pcx;*.mdl;*.obj;*.dds\0\0";
ofd.lpstrInitialDir = "Import";
ofd.lpstrFile=buf;
ofd.nMaxFile=255;
ofd.lpstrTitle="Import Models";
if (GetOpenFileName(&ofd)){
ent_create(ofd.lpstrFile,vector(camera1.x,camera1.y,NULL),bu_pan);
}
}

but i want to add New Formats like .fbx and .3ds plz give me the way

Re: import models [Re: Tonyjack221] #401956
05/26/12 22:18
05/26/12 22:18
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
ofd.lpstrFilter = "Models *.x *.obj *.tga *.bmp *.pcx *.dds\0*.x;*.tga;*.bmp;*.pcx;*.mdl;*.obj;*.dds\0\0";

becomes

ofd.lpstrFilter = "Models *.x *.obj *.tga *.bmp *.pcx *.dds\0*.x;*.tga;*.bmp;*.pcx;*.mdl;*.obj;*.dds *fbs; *3ds; \0\0";

Next you could look at stiro.c in the include folder. Made my life a lot easier when loading files.

STRING* filename = " ";
filename = file_dialog("SAVE a FSA file","*.filetype_here",0);
if(!filename)return;

Last edited by FoxHound; 05/26/12 22:19.

---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: import models [Re: FoxHound] #401958
05/26/12 22:41
05/26/12 22:41
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
Does not work this give me a error
malfunction w1305
house.3ds: Invalid file name
The same problem with fbx

Re: import models [Re: Tonyjack221] #401959
05/26/12 23:08
05/26/12 23:08
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
looks like i wrote it wrong.

.....................*.dds *.fbx; *.3ds; \0\0";

I forgot the dot in front of fbx and 3ds.

If that is not it then where is the error? If it is ent_creat are you sure ent_create can load those files?


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: import models [Re: FoxHound] #401960
05/26/12 23:16
05/26/12 23:16
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
ent_create can't load .3ds or .fbx that is the problem
So I want a way to load these files

Re: import models [Re: Tonyjack221] #401961
05/26/12 23:29
05/26/12 23:29
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Open MED, File->Import->FBX Importer or 3ds-Importer, then save to mdl


Visit my site: www.masterq32.de
Re: import models [Re: MasterQ32] #401963
05/27/12 08:57
05/27/12 08:57
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
no no no
i make game editor i need that for load .fbx .3ds from my game editor
??????

Re: import models [Re: Tonyjack221] #401964
05/27/12 09:08
05/27/12 09:08
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Not possible, you can load only *.mdl, *.x or *.obj for models with ent_create. (See in the manual for suportet files.)

Last edited by Widi; 05/27/12 09:09.
Re: import models [Re: Widi] #401965
05/27/12 09:09
05/27/12 09:09
Joined: Jun 2011
Posts: 75
algeria
T
Tonyjack221 Offline OP
Junior Member
Tonyjack221  Offline OP
Junior Member
T

Joined: Jun 2011
Posts: 75
algeria
any other way to load those files ??

Re: import models [Re: Tonyjack221] #401966
05/27/12 09:10
05/27/12 09:10
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
See my last post: NOT POSSIBLE !!!

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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