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 - dutch_delight

Pages: 1 [2]
Support / help with converting 3ds model
« on: February 06, 2011, 03:24:47 pm »
Hi all,

I'm just getting into java and want to do something with this engine. I'm a bit stuck with the model conversion. I'm using Eclipse and got the latest sdk. When I run this, eclipse throws a fit and gives me no real error message. First time using Eclipse as well so I think it's all configured correctly.
All I want is convert some models. :(

Also, is there any documentation on the .ser files? I was thinking of converting my max exporter to export .ser files directly.

Thanks for any help.

This is my code

Code: [Select]
package com.threed.jpct.example;

import com.threed.jpct.DeSerializer;
import com.threed.jpct.Loader;
import com.threed.jpct.Object3D;

public class model_converter {

    public static void main(String[] args) throws FileNotFoundException {
        Object3D modelfile = null;

        DeSerializer de;
        modelfile = Loader.load3DS("C:/sphere.3ds",1)[0];;
        de = new DeSerializer();
        de.serialize(modelfile, new FileOutputStream("C:/sphere.ser"), true);


Pages: 1 [2]