www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Remo on August 11, 2005, 12:55:20 am

Title: Loading mesh
Post by: Remo on August 11, 2005, 12:55:20 am
I have a problem loading my mesh. this is what the error says:
File 3ds\A3.3ds loaded...20632 bytes
Processing new material Material #77!
Processing object from 3DS-file: Plane07
Object 'Plane07_jPCT0' created using 534 polygons and 360 vertices.
[ Wed Aug 10 17:46:02 CDT 2005 ] - ERROR: Can't merge null!


the loop is:
for (int i = 0; i < objs.length; i++){
                    Object3D ob = objs;
                    carModel = Object3D.mergeObjects(carModel, ob);
                }

I work under 3D Max and I checked if there were some extra objects in the file that may be causing that error but found none. There's only one object in the file.

Heres the file if you need it:

www.opsdirector.com/3dart/A3.3ds


I was able to load a face I did in 3D Max a week ago and I used the same procedure. I dont know whats wrong with it :(.
Title: Loading mesh
Post by: Remo on August 11, 2005, 01:04:34 am
Nevermind..... I didnt initialize the model.......


 :oops:  :oops:  :oops:  :oops:  :oops:  :oops:  :oops:
Title: Same problem
Post by: Raven on October 28, 2005, 12:50:06 pm
Hello.
I'm wondering, how exactly did you initialize the model?
I just started trying jPCT and I'm having this exact problem -- models don't fully load and if I try your loop up there it results in Null merging.

How exactly did you solve this problem?
Thanks.

-Raven
Title: Loading mesh
Post by: MFJ on October 28, 2005, 01:02:27 pm
Perhaps you need to build the previous O3D before merging it to the next one?
Title: Resolved...
Post by: Raven on October 28, 2005, 01:05:45 pm
Oh. I just figured the problem out.

It was the carModel that needed to be initialized before merging it with 'ob'.

carmodel = new Object3D(maxVert);

Thanks anyway.

-Raven