Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AndrewAMD, Nymphodora, Quad, TipmyPip, Imhotep), 852 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
ent_create and .obj #450610
04/19/15 15:29
04/19/15 15:29
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hello,

I get an E1198: Bad file format error when trying to place a .obj through ent_create:

Code:
ent_create("Block.obj", nullvector, NULL);



while I can import it without problems in MED (with non-broken mesh etc.). The Block.obj is in the folder (its .mtl too if that helps) and was exported with the latest version of Blender.

Maybe it helps if I upload the file?

Thanks in advance.

Re: ent_create and .obj [Re: Reconnoiter] #450616
04/19/15 15:49
04/19/15 15:49
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Have you tried opening other .obj files at runtime with success..?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: ent_create and .obj [Re: DLively] #450619
04/19/15 15:56
04/19/15 15:56

M
Malice
Unregistered
Malice
Unregistered
M




Last edited by Malice; 04/19/15 15:57.
Re: ent_create and .obj [Re: ] #450620
04/19/15 16:05
04/19/15 16:05
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thats what I figured. Only MDL -- But I didn't want to say otherwise if he was actually getting success with other .obj models laugh

Last edited by DLively; 04/19/15 16:05.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: ent_create and .obj [Re: DLively] #450623
04/19/15 16:17
04/19/15 16:17

M
Malice
Unregistered
Malice
Unregistered
M



As a side note, not sure why you would want another file format, however if it is for consumers to customize, then remember that forcing them to get their models converted by you could be a added source of revenues.

anyway just a side note.

Re: ent_create and .obj [Re: ] #450631
04/19/15 18:13
04/19/15 18:13
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Hi Dlively and Malice,

Quote:
Have you tried opening other .obj files at runtime with success..?
, sadly no. I have tried .obj exported by Blender (several ones) and by photoshop (3D layer, really buggy but funny grin ). I can try some more, but MED does import them so the .obj except for the photoshop ones seem to be perfectly fine.

The manual says that ent_create should be possible with .obj:
Quote:
The following file formats are supported: wmb (map entities), hmp (terrain), mdl, x, obj (models), tga, pcx, bmp, dds (sprites). Note that some formats have restrictions, f.i. the obj format requires loading the skin through ent_setskin, and the compressed dds format offers no access to single pixels of the bitmap. A cache with hash function is used for storing the file when it was already loaded before; for this, file names must not exceed 30 characters.


Quote:
As a side note, not sure why you would want another file format, however if it is for consumers to customize, then remember that forcing them to get their models converted by you could be a added source of revenues.

anyway just a side note.
, yes it is for users to customize. You bring up an interesting point however, thanks for that. Though in this case I want it load obj directly.

Last edited by Reconnoiter; 04/19/15 18:14.
Re: ent_create and .obj [Re: Reconnoiter] #450636
04/19/15 20:27
04/19/15 20:27
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
nice idea laugh what if you imported it to med from obj, and re-exported back to obj. see if that makes a difference?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: ent_create and .obj [Re: DLively] #450659
04/20/15 10:08
04/20/15 10:08
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
It looks like MED doesn't has an export to .obj format though, only import (could be I am overlooking it though, there is some stuff of exporting it too ASC [text format] though).

Anyway since .obj is so easy to export to with almost every program, I think an ent_create with .obj would be a very nice feature to have (even though it is limited to non-animated models I think).

I also saw that ent_create should be able to place .x models (direct x format), which would also be interesting but to a lesser degree since it is more difficult to export to than .obj. I have found this nice little website though where one can import many model formats and export them to some (.x included but sadly not .mdl). Though the ent_create did not work too with the .x format. So perhaps I am just doing something wrong? I will try to export .obj with some other programs and see how that works.

Re: ent_create and .obj [Re: Reconnoiter] #450744
04/21/15 20:10
04/21/15 20:10
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Exported models from Sketchup as .obj also gives bad file format error.
It seems like .obj does not work with ent_create, in contrary to what the manual says frown .

Re: ent_create and .obj [Re: Reconnoiter] #450752
04/22/15 06:02
04/22/15 06:02
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
I'm not sure, but just make sure that your skins is power of two 256x256, or 512x512 - try it just for testing purpose, cause I remember facing 'bad file format' and problem was related to the skin. Additional it might be that skin is 8bit, change it to 24 in MED under skin settings, and it even might be that skin doesn't use RGB but something called Index (I've faced it with skins and textures from some older games). I'm not sure that this will help, but I just wanted to share my experience with this error message.

greets


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | 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