Author Topic: Loading mesh  (Read 4669 times)

Offline Remo

  • int
  • **
  • Posts: 64
    • View Profile
    • http://www.opsdirector.com/3dart
Loading mesh
« 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 :(.

Offline Remo

  • int
  • **
  • Posts: 64
    • View Profile
    • http://www.opsdirector.com/3dart
Loading mesh
« Reply #1 on: August 11, 2005, 01:04:34 am »
Nevermind..... I didnt initialize the model.......


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

Offline Raven

  • int
  • **
  • Posts: 62
    • View Profile
    • http://www.vortex.is/raven
Same problem
« Reply #2 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

Offline MFJ

  • byte
  • *
  • Posts: 8
    • View Profile
    • http://www.endinet.co.uk
Loading mesh
« Reply #3 on: October 28, 2005, 01:02:27 pm »
Perhaps you need to build the previous O3D before merging it to the next one?

Offline Raven

  • int
  • **
  • Posts: 62
    • View Profile
    • http://www.vortex.is/raven
Resolved...
« Reply #4 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