Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Multi-Mesh with Multi-Texture Objects

Author
Message
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 22nd Jun 2016 09:52 Edited at: 22nd Jun 2016 09:54
I have an OBJ with 2 meshes. I'm trying to assign 2 textures to it with: SetObjectMeshImage( objID, meshIndex, imageID, textureStage )
Doesn't seem to be working...
Used GetObjectNumMeshes( objID ) on the object. It returns a value of 1.
I have attached the OBJ model that i'm testing with.

Attachments

Login to view attachments
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 22nd Jun 2016 14:51
For backwards compatibility we have a custom .OBJ loader that doesn't support multi-mesh objects. Try exporting your object as .X, .FBX, or .DAE and see if that works.
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 22nd Jun 2016 19:48
Any chance we could get proper support for OBJ? or an option to choose proper support or backwards support?
OBJ is the only format on that list that Silo3D supports. :/
SoftMotion3D
AGK Developer
19
Years of Service
User Offline
Joined: 24th Aug 2005
Location: Calgary,Alberta
Posted: 23rd Jun 2016 02:32
i would just seperate the 2 meshes into 2 obj files.... load them in that way
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 23rd Jun 2016 06:09
@Nieb : for the moment, it's possible to convert your object .obj in .x or .dae for multi-texturing. You can use for exemple blender for export or Ultimate Uvwrap 3D (there is a demo version : http://www.unwrap3d.com/u3d/index.aspx).

I have used .x for some of my 3D objects with multi-meshs and multi-textures and it worked.
AGK2 tier1 - http://www.dracaena-studio.com
Nieb
10
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 24th Jun 2016 05:16 Edited at: 19th Jul 2018 14:39
I have Ultimate Unwrap, Milkshape3D and 3dsMax. I'd rather not have to load another piece of software and mess with Import -> Export.

The great part about Silo3D is that it's lightweight software (boots up about as fast as Notepad) and it natively supports OBJ.
All I have to do is press CTRL+S to save an OBJ. Then press F5 in AppGameKit to see it in-game.

OBJ is elegant and clean, just raw polygon and UVmap data.
DAE is XML based, yuk!
FBX can be a bit bloated for game use, it's intended for interchanging between 3D software.
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 24th Jun 2016 08:53
But at least Ultimate Unwrap, Milkshape3D and 3dsMax object work ?

Don't dismiss a perfectly good solution due to laziness.

Login to post a reply

Server time is: 2024-09-29 15:30:31
Your offset time is: 2024-09-29 15:30:31