10th September 2005, 01:15 AM | #1 |
Junior Member
Junior member
Join Date: Aug 2005
Posts: 7
|
If anyone can help, they can beta test!
Hey guys. This is my first post! Ive been using ac3d for oh about 2/3 months now and ive only had one real problem.
Please, if anyone would be so kind as to help me understand what the issue is here, it would be more than appreciated - it would be compensated! You see, im making a 3d RPG in Java3D(OpenGL) using ac3d for model creation and such. Blahblahblah, the thing is the chandelier model ive made. it is the only model ive made that gives me a geometry loading error: "***Polygon with only two vertices?!?*** ArrayIndexOutOfBounds error blhbalhblah " <- java stuff anyhow i cant for the life of me understand what the problem is here! if you can help me, ill give you a free beta of the game! thanks to all who have helped me get this far and to all those who themselves are pushing forward the electronics industry! minus bill gates! ~blade
__________________
>_O |
10th September 2005, 10:04 AM | #2 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
To check for invalid polys in your model, go into surface mode and select "Edit -> Select Surfaces -> invalid poly" - this should select any surfaces with < 3 vertices, which you could then delete or perform whichever action you desire.
Good luck, Dennis |
10th September 2005, 09:31 PM | #3 |
Junior Member
Junior member
Join Date: Aug 2005
Posts: 7
|
meh
thanks for the suggestion dennis!...but it doesnt select anything at all im positive that it is file issues because all loaders have the same error message. i just dont know what it could be
...sorry im such a n00b >_< ~blade
__________________
>_O |
10th September 2005, 10:10 PM | #4 |
Senior Member
Professional user
Join Date: Feb 2005
Posts: 116
|
Want to post a link to model .ac file so I can have a look at it??
griff |
10th September 2005, 10:28 PM | #5 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
Are you loading the model straight from the ac3d file, or are you exporting from ac3d into a different format then importing into your java3d app?
|
11th September 2005, 06:56 AM | #6 |
Senior Member
Professional user
Join Date: Aug 2004
Location: Greece
Posts: 164
|
Also "optimize surfaces" to find bad polygons or polygons with bad geometry.
|
11th September 2005, 02:51 PM | #7 |
Junior Member
Junior member
Join Date: Aug 2005
Posts: 7
|
thank you all for existing and future aid
i have tried all optimize commands, all malformed poly selections etc. (needless to say, none work :/ ) anyhow. chandelier.ac is posted here:
(the only way i could upload was to save as *.txt) http://www.geocities.com/agapanthusi...chandelier.txt ^please dont laugh (to tell the truth im a bit embarrased myself, but whatever :/ you have to remember im still new to 3d modeling :> haha and dont mind the website its my friends' band site i am loading the *.ac files directly from the ac file (no exporting/importing/converting) using the java3d loader supplied at http://www.newdawnsoftware.com (thanks guys!) during load, i call Group g = AC3DLoader.load("chandelier.ac").createInstance(); in case you all wanted to know... the specific error message shown: *****Polygon with only two vertices ?!***** Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at org.newdawn.j3d.loaders.ac3d.AC3DObject.generateSM oothedNormalArray(AC3DObject.java: 258)... |
11th September 2005, 03:11 PM | #8 |
Senior Member
Professional user
Join Date: Jul 2003
Posts: 899
|
There are 37 Line surfaces in the chandelier model. These won't show up as invalid surfaces because they're lines, but it sounds like your importer doesn't like them (a line is a surface with only 2 vertices, which the importer complains about, so I'm assuming this is the problem).
To see this - select all objects and click the "Poly" button in the lower left of ac3d. This will convert all Line objects in your document to polygons. Once done, go into Surface mode and issue an Edit -> Select Surfaces -> Invalid poly. This way you can isolate the line objects in your model. Try making a copy of the chandelier without these polygons and try the import again - if this works, you'll know that you'll have to replace your lines with actual polygons. Good luck |
11th September 2005, 03:59 PM | #9 |
Junior Member
Junior member
Join Date: Aug 2005
Posts: 7
|
ty
thanks a lot guys (esp dennis!)
i worked it out - turns out it was indeed the lines. lame huh. thanks a bunch dennis! silly crap, but i learned a bit from it so its all good right? haha good luck modeling (and other tasks) all! -blade13 |
12th September 2005, 07:12 AM | #10 |
Senior Member
Professional user
Join Date: Feb 2005
Posts: 116
|
I guess dennis beat me too it ... while I was making a pretty picture
The wire for the hanging shape is a line ... 2 points. I changed colour to red ... and have indicated it with a green arrow Never tried that loader you are using ... but I'll bet it chokes on that line. As Dennis points out you have used a lot of polylines which may also be causing problems. The red arms for example produce a nightmare if you export out to vrml ... looks like you drew the side as a polyline and extruded it. There are better cleaner ways to make objects like that. griff |
|
|