Loading mesh

Started by Remo, August 11, 2005, 12:55:20 AM

Previous topic - Next topic

Remo

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 :(.

Remo

Nevermind..... I didnt initialize the model.......


:oops:  :oops:  :oops:  :oops:  :oops:  :oops:  :oops:

Raven

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

MFJ

Perhaps you need to build the previous O3D before merging it to the next one?

Raven

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