Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 07:19:37 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)missing AseFile?
Pages: [1]
Print
Author Topic: missing AseFile?  (Read 621 times)
moebius
Just dropped in

Offline Offline

Posts: 2


View Profile Email
« on: 21. February 2007, 03:28:39 am »

I'm trying to upgrade an application from an unknown previous version of Ase to a current version and there seem to have been a whole lot of changes to the API.

One area especially is in org.xith3d.loaders.models.impl.ase, which was previously called something else. It appears that there is supposed to be a AseFile class, but none exists. In fact, the AseModel class even makes reference to it in the javadocs
Quote
AseModel(AseLoader loader, org.xith3d.loaders.models.impl.ase.AseFile aseFile)

Also, this tutorial http://xith.org/tutes/GettingStarted/html/the_ase_geometry_loader.html will not work without said AseFile class.

What happened to it?
Logged
moebius
Just dropped in

Offline Offline

Posts: 2


View Profile Email
« Reply #1 on: 21. February 2007, 03:34:26 am »

And as a second question, there was previously these two packages that no longer exist:

Code:
import com.xith3d.test.TestUtils;
import com.xith3d.test.Xith3DTerrainTest;

I have never used xith3d before so I'm totally clueless as to how it's all supposed to work. Perhaps there is a new way of doing the same thing. I'm just trying to quickly update some code that someone else wrote a year ago.

I'm attaching the .java file in question. I have syntax errors at lines 108, 139, 291, 311, 321, 345, 346, 469, 471, 472, 710. I've already changed AseReader to AseLoader, which I assume is just the new name for the equivalent class.

Thanks.
« Last Edit: 21. February 2007, 03:38:07 am by moebius » Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 21. February 2007, 03:40:13 am »

Give me two minutes. Then I will come back with the fixed test class and some answers to your questions.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 21. February 2007, 03:54:59 am »

Hmm... It would take too long to fix all this. So just the answers:

So first of all: Welcome to Xith3D... or welcome back?

You really should not use the Getting Started Guide anymore. I guess you restored the link from one of your oldest Bookmarks. We have removed the link from xith.org. Please have a look at both Xith3D in a Nutshell and at the API changes thread.

The TestUtils class is in org.xith3d.test.util.TestUtils. But please don't use it. It is really just for testing and might be deleted in the future. If you want to create cube (as you did with the TestUtils.createCubeViaTriangles() method) use this:
Code:
Cube cube = new Cube( 1.0f, true );

All tests are in the toolkit (project "xith-tk") in package org.xith3d.test and subpackages. I guess, you know that the xith project is splitted in two projects (xith3d and xith-tk)? And our development is now hosted on sourceforge (SVN). Read this thread about how to checkout the project from SVN.

The AseLoader is not equivalent to the AseReader. AseFile and AseReader are still there, but are not for public use. All the loaders have a common base class now as well as the models. To load a model, you can do it the same way for all loaders. Use the AseLoader as follows:

Code:
AseLoader loader = new AseLoader();
AseModel model = loader.loadModel( "mymodel.ase" );
myGroup.addChild( model );

I hope this helps you. Please ask further questions. Your Xith3D knowledge seems really outdated, so you might run into trouble.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic