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.

Topics - hubbardh

Pages: [1]
Support / .MD2 won't display textures correctly
« on: April 06, 2013, 09:19:48 pm »
I have a .md2 model that I'm testing but the texture is all wrong, its not being displayed in the right positions I think the textures being messed up has something to do with my exporter(blender) could somebody tell me how to fix the textures or tell me where i can find a .md2 exporter that works for my computer, im running ubuntu 12.04
sorry if this is posted twice, i think i might have accidentally done that just delete the other post if it was

Bones / Mesh not importing with Ardor3D
« on: February 25, 2013, 06:41:54 am »
My current operating system, Ubuntu, won't let me run the script to convert .dae files to .bones files, so i decided to make a converter myself here's what I have so far:

Code: [Select]

import raft.jpct.bones.AnimatedGroup;
import raft.jpct.bones.BonesIO;
import raft.jpct.bones.BonesImporter;
import raft.jpct.bones.Quaternion;

import com.ardor3d.extension.model.collada.jdom.ColladaImporter;
import com.ardor3d.util.resource.ResourceLocatorTool;
import com.ardor3d.util.resource.SimpleResourceLocator;

public class Main {
public static void main(String[] args) throws Exception {
File Spectre = new File("./res/guyidle.dae");
URI uri = Spectre.toURI();
final SimpleResourceLocator resLocater = new SimpleResourceLocator(uri.resolve("./"));
        ResourceLocatorTool.addResourceLocator(ResourceLocatorTool.TYPE_MODEL, resLocater);
ColladaImporter Col = new ColladaImporter().loadTextures(false);
ColladaStorage Stor = Col.load(uri.toString());
AnimatedGroup A3D = BonesImporter.importCollada(Stor, 1, new Quaternion());
BonesIO.saveGroup(A3D, new FileOutputStream("res/guyidle.bones"));


but whenever i run the code i get this:
Code: [Select]
Exception in thread "main" java.lang.RuntimeException: Unable to load collada resource from URL: URLResourceSource [url=file:/home/hubbardh/workspace/Dae%20To%20Bones/res/guyidle.dae, type=.dae]
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(
at Main.main(
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
at com.ardor3d.extension.animation.skeletal.SkinnedMesh.applyPose(
at com.ardor3d.extension.model.collada.jdom.ColladaAnimUtils.buildSkinMeshes(
at com.ardor3d.extension.model.collada.jdom.ColladaAnimUtils.buildController(
at com.ardor3d.extension.model.collada.jdom.ColladaNodeUtils.getVisualScene(
at com.ardor3d.extension.model.collada.jdom.ColladaImporter.load(
... 2 more

I think it either has something to do with the shape of the character or the fact that it was exported from blender. Please help

Pages: [1]