Posted: 4th Mar 2022 15:35
hi all, i hope i didn't put this in the wrong place, but i have a problem with loadobjectwithchildren loading in addition to setobjectimage.
I don't apply texture to the .x model
if I use loadobject it works correctly, but obviously you can't use the animations of the .x file
how can i solve?
thank you all
Posted: 22nd Sep 2022 8:25
do you get an error message or anything when using oadobjectwithchildren? Also, you could try to "mend" the x file. I can upload directx mesh.exe if you dont have it.
Does the .x file load and animate in any other 3d package ok, or do you get issues ?
Posted: 22nd Sep 2022 20:44
Hi, after many attempts, I have the same problem on every type of 3d object (.x .3ds .obj etc ..)
it does not give any error, simply if I start the command For example:
LoadObjectWithChildren (1, "\ object.3ds")
LoadImage (1, "\ skin.jpg")
SetObjectImage (1,1,0)
PlayObjectAnimation (1, "", 0,40,1)
...
object.3ds will be loaded animated always gray with no texture.
instead if I load the object with
LoadObject (1, "\ object.3ds")
LoadImage (1, "\ skin.jpg")
SetObjectImage (1,1,0) ...
The object is loaded correctly including texture.
Posted: 22nd Sep 2022 21:43
are you able to upload one of the objects that doesn't work in AppGameKit? If not, no worries.
Do any of them animate/texture correctly in a modelling package e.g. Fragmotion, UU3D?
Do they all have UV coords, skin weight info etc?
Posted: 23rd Sep 2022 15:12
Attached I have sent both the .3ds file and the skin of the model ... created with 3ds max 2010.
Posted: 23rd Sep 2022 15:13
Repost
Posted: 23rd Sep 2022 15:15
oh, nothing attached, I have the same problem where I need to attach twice before it actually appers on the post, it's an old issue which has never been resolved.
Please try again if you can.
Posted: 23rd Sep 2022 16:42
if possible my email is mantoearco@gmail.com we can use this method if you can
Posted: 23rd Sep 2022 16:57
@Antonio Buono -> email sent.
Posted: 24th Sep 2022 19:10
my apologies I cant test the below code at the moment, but I've come across the problem in the past and used code similar to below.
by texturing the children objects individually. maybe give that a go

+ Code Snippet
LoadObjectWithChildren ( szFilename )
num=GetObjectNumChildren ( objID )
for childindex=0 to num
	aObj=GetObjectChildID ( objID, childIndex )
	setobjectimage(aObj,image)
//SetObjectMeshImage(aObj,meshindex,imageid,stage)
next childindex