Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - dwightina

Pages: [1]
Bones / Re: Loading a Collada file with pre-defined animations
« on: December 30, 2017, 02:23:32 am »
Late reply, but just dropping a line to say we're gonna add skins to all meshes and stick with a single texture. Thanks for all the info :)

Bones / Re: Loading a Collada file with pre-defined animations
« on: December 20, 2017, 07:35:24 pm »
Good to know! In general I've just asked the designer to make a single texture for my model and skirted the issue all together. I haven't been able to run the sample yet as I'm not using Eclipse, but I'll take a run at it again. I did notice that it is only the unskinned meshes that do not appear in the animation.  Does that make sense? Will I need to take an extra step to display unskinned + skinned meshes together?

Bones / Re: Loading a Collada file with pre-defined animations
« on: December 14, 2017, 11:39:25 pm »
Thanks for the reply! I believe the coins did get exported... if I open the DAE file I see the node/geometry declarations for each one.  The animation is also appearing properly if I preview the file.

As far as the texture issue,  I guess I'm more curious about whether it's possible to get these texture files and set them programatically, instead of me finding the proper index and setting the texture.  The use case is that I will be scanning various target that will each trigger different 3d objects, so I'd prefer not to have to define these beforehand.  Is there no way to handle textures automatically, even if they are predefined in the DAE (using init_from tag)?

Bones / Re: Loading a Collada file with pre-defined animations
« on: December 13, 2017, 11:42:38 pm »
Perfect, thanks! I've gotten it up and running using that sample.  However, I've noticed that there are some objects that are missing from my animation.  The animation is supposed to be a man holding some coins and throwing them into the air, however the coins don't show up at all. Is there anything I should be looking out for when rendering a DAE that isn't just one solid 'object'?
 Along with that, the coins also have a different texture than the man, so I will be supporting multiple textures.  How is that handled, if at all? Also sorry if this is the wrong place to ask it/if I should be looking into Ardor3D, instead. Thanks again!

Bones / Loading a Collada file with pre-defined animations
« on: December 11, 2017, 11:54:06 am »
Hi there,

I'm working on importing a Collada file that has pre-defined animations in the DAE.  I've gotten the project to the point where I can see my 3D object, but there is no animation. I've taken a look at, but am not entirely sure which part to add in order to make this work.  I'm new to this and am sure there is some fundamental information that I don't have, so if anyone can point in me in the right direction that'd be appreciated.

Here is what I currently have:
Code: [Select]

//copy the res file to storage
val uri:URI = URI("file://" + outDir.absolutePath)
        val resLocator = SimpleResourceLocator(uri) //URI("android.resource://"+ mActivity.applicationContext.packageName +"/raw/seymour_dae"))
        ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MODEL, resLocator)

        try {
            val colladaImporter = ColladaImporter()
            val colladaStorage = colladaImporter.load("test.dae")

            animatedGroup = BonesImporter.importCollada(colladaStorage, 1f, null)
            animatedGroup!!.isAutoApplyAnimation = false
        } finally {
            ResourceLocatorTool.removeResourceLocator(ResourceLocatorTool.TYPE_MODEL, resLocator)

        for (o in animatedGroup!!) {


        //point camera to look at the center of the animated group
        var transformedCenter : SimpleVector? = null
        for (o in animatedGroup!!) {
            o.visibility = true
            transformedCenter = o.transformedCenter


Pages: [1]