I had thought that Xith would support auto bounds computation like Java3D but if not I guess I can work something out.

Infact, TDSModel simply extends BranchGroup (I suspect, not having the source at work is a pain). BranchGroup must perform some form of bounds computation to support scenegraph culling. Maybe this only happens on the first render of the scene? Check if the bounds have been set after rendering?

Even so, like I said, I might get some chance tonight, so I could take a look at the Transparency issue as well. Is there anything else needs checking out?

model names would be cool so the model name in the 3ds files is passed over to xith.. simple to look stuff up.. -not sure maybe it duss this now.. could be my model.. all in all just them things

i have set:

model.setShowBounds(true, true);

and added the model to a Transform3D and thats added to a TransformGroup. seems the bounds just wont have it.. it shows the bounds as a small sphear in the middle of the model. not wrapping around the model. This would explane me model popping off the screen...

Sigh..., that means that I'm gonna have to load a model, filter the repeated vertices, treat them and generate TBN matricies, and finally submit them again to the parent shape as well as a new set of TexCoord3f in order to feed more info to my shaders (PS & VS) when it comes to do extra effects.../me goes and look into loading 3DS models in his latest demos

Its official JCD, you rock! Just saved me a bunch of time searching, had missed the setIndex() line which appears to fixed everything..

So..

* Transparency should now work* Bounds should be correct* And indexed geometry can be created by passing a "true" as the second parameter the load() method.

The code is still awful and still feels like the code I ported it from. It _will_ get fixed soon as I get some proper time. However, I hear there is a new 3DS loader on the way from a central code base which might be the best bet as and when it arrives.

dudes what version of xith3d are u using? and where did u upload the new loader?

loader i would guess is on yer site kev?

i dont mind rolling back my xith version. just wondered what versions u chaps are using? i updated from the CVS. it didnt work in the older version i had.

i get this error:

java.lang.NoSuchMethodError: com.xith3d.scenegraph.Shape3D.updateBounds(Z)V at org.newdawn.xith3d.threeds.SmoothGroupProcessor.process(SmoothGroupProcessor.java:157) at org.newdawn.xith3d.threeds.TDSLoader.processChunk(TDSLoader.java:125) at org.newdawn.xith3d.threeds.TDSLoader.load(TDSLoader.java:92) at ant.xith3d.mod.Building.loadBuildingData(Building.java:58) at ant.xith3d.RenderWindow.init(RenderWindow.java:146) at ant.xith3d.RenderWindow.<init>(RenderWindow.java:40) at ant.xith3d.Main.main(Main.java:

That's totally wrong, the first argument takes the exact number of non-duplicated vertices, and the last one takes the size of the array holding the vertices' indicescorrected if (context.indexedGeometryUsed) { context.indexedGeometry = new IndexedTriangleArray(context.numberOfVerts ,vertexFormat,context.numberOfFaces * 3);

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org