kev 3ds loaders setBounds

[quote]Fixed the jeep thing (at least it loads now).[quote] Although the wheels and steering column have
Thanks! :slight_smile:

[quote]been moved away from the main body, is that right?
[/quote]
Well, according to DeepExploration the model should look like the original one, just with internal groups hierarchy. But maybe the tool shows it incorrectly…?

Ant or others: does my modified Jeep (with groups) show right in 3dStudio or Maya or … ?

PS: Kev, did you upload your new version?

Not yet, wanted to check it was right and fix the scaling animation.

However, although I’m sure deep exploration displays it properly it does seem to take some liberties with the 3ds format, ordering of chunks for instance.

I’ll look again tonight,

Kev

[quote]Not yet, wanted to check it was right and fix the scaling animation.

However, although I’m sure deep exploration displays it properly it does seem to take some liberties with the 3ds format, ordering of chunks for instance.
[/quote]
Oh… it does do this for lightwave, too. Not very nice.
I’ve loaded the modified Jeep with Milkshape and it looks like the original Jeep. (Strangly enough I can’t see any group hierarchy with Milkshape but am using it for 5 minutes now :slight_smile:
Also with Wings3d it looks OK (but I’ve yet to find the grouping menu…)

arrr- v.odd, but should be there now for u. sorry about that. same link :slight_smile:

Am I on the right track with the “groups’ hierarchy” ? What I like to do is to have a model with encapsulated groups, so that by rotating the wheel group, only the wheel is being effected at its pivot point (relative to its parent group).
If all the groups are flat on the same level I can’t do that.

In basic I’m looking for what is described nicely in the Xith tutorial, chapter 8: TransformGroup Trees with the ASE Loader.

Ping! New version…

a) Fixed Deep Exploration output (i.e. insert key frames where there arn’t any and store them in any order you like)

b) Scale animation added

Note: I’ve added a horrible bit of code that says if you’ve only got one frame of animation nothing is really applied.

Note 2: The scale animation does “something” but I’m not sure its right… you’ll have to let me know.

Finally, the code is getting more and more scary. :slight_smile:

Kev

PS. The groups hiearchy thing sounds right, you “should” be able to get hold of each group independantly if you’ve named them seperately. Though I notice that in your version of the jeep no pivot points are actually defined.

cool- scale is working sweet :slight_smile: nice one! bloody good job fella.

hehehe- what about animated groups?

[quote]Ping! New version…

a) Fixed Deep Exploration output (i.e. insert key frames where there arn’t any and store them in any order you like)
(…)
Note: I’ve added a horrible bit of code that says if you’ve only got one frame of animation nothing is really applied.
(…)
Finally, the code is getting more and more scary. :slight_smile:
[/quote]
Oh dear… Kev many thanks again. I’m sorry to cause you trouble just because DeepExp produces some weird 3ds export. :frowning:

I think I should kick that tool. Unfortunately while the nice programs Wings3d and Milkshape load the models fine (including groups and pivot), I can’t make them to let ma alter the pivot’s position, let alone group hierarchy…

Does anybody know how to do this? Or is there another nice affordable tool for such things?

[quote]PS. The groups hiearchy thing sounds right, you “should” be able to get hold of each group independantly if you’ve named them seperately. Though I notice that in your version of the jeep no pivot points are actually defined.
[/quote]
Yes, DeepExp killed the pivots. :expressionless: Now I’ve managed to export them but then DeepExp messes the groups. This tool sucks. Either I can export the group hierarchiy or use pivots, but not both of them.

I am really wondering how all you many (grin) Xith3d users out there manage to handle that group and pivot stuff: do you all use Max3d Studio and this one exports 3ds perfectly? :slight_smile:

well the trick for me is PloyTrans- and maya. not cheap. but works fantasticly. u can export anything in maya to 3ds. bar a few things that the 3ds format cant do anyway. i can make a pivot, hierarchiy, rotating, scaling, transforming, la de da 3ds to test everthing is u like?

mind u now kev has added scaling it seem to mess things up a tad now. i will build a model exaple when i get home tonight. so close dudes :slight_smile:

kev shall i make a group animation object while im at it?

[quote]well the trick for me is PloyTrans- and maya. not cheap. but works fantasticly. u can export anything in maya to 3ds. bar a few things that the 3ds format cant do anyway. i can make a pivot, hierarchiy, rotating, scaling, transforming, la de da 3ds to test everthing is u like?
[/quote]
This sounds very well. I’ll have a look at PolyTrans (demo), too.

Btw Kev, I’ve found an interesting 3ds model on your mentioned Starwars model site which produces an NullPointer-Exception when I try to load it… It’s named “Krupx MG7-A Proton Torpedo” on this page: http://xpi.org.uk/~swma/archives/rebel/objects/objects.htm
(Direct link is http://xpi.org.uk/~swma/archives/rebel/objects/05/pro-torp.zip)

Looks like writing an 3d importer is a kind of neverending story? :frowning: And I’m afraid we’re only at the beginning… :wink:

Yes, I’m afraid this “stop gap” loader is turning into a full time job. It’d be ok but the code just is designed to support continuous maintenance.

The “pro-torp” model will load if you don’t request indexed geometry. Although the model doesn’t seem to display correctly.

Send me the model with the model scaling problem, probably just the order of the transforms. I’ll see if I can fix it…

If there lots of additional features required (which there seem to be) there needs to a be a movement towards a properly designed and maintainable loader. Might want to hunt round the forum for that 3ds loader library.

Kev

well heres the animation with the scaling bug- there should be no scaling happening at all in this animation.

http://www.topresultmate.com/xith3d/scaleanim.zip

see jpeg of what it should look like :)-

Ping! New version.

Kev

/me is like six versions behind ;D

and its like 6 times better ;D

can 3ds handle animating textures and colors? as in if i set a surface color animation change.

Hi,
I like to display a tree model which I exported from XFrog. I tried the 3DS and AC3D loader from Kevin. Both were capable of loading and displaying the model, but both had problems with the transparency of PNG and GIF textures.

I have the version from the newdawn web page. Is this the newest version? If not, were can I get it?

GIF textures are displayed with black (instead of transparent) background:
http://3d.uni-muenster.de/temp/ac3d_gif.jpg

and PNG textures are totally messed up:
http://3d.uni-muenster.de/temp/ac3d_png.jpg

Both loaders produce similar effects. I am using the latest community build, a Radeon 9200SE and AC3D/DeepExploration for exporting the model.

Any ideas?

Thanks,
gismo

No useful ideas I’m afraid, just to note the AC3D loader is actually developed by “Endolf” (Jez).

If both loaders are having the same problem it might imply that Xith in general doesn’t like loading the particular textures you’ve got… or it could be that the models themselfs are actually incorrect :confused: although I doubt that…

Do the models display correctly in AC3D/DE ?

Kev

[quote]Hi,
I like to display a tree model which I exported from XFrog. I tried the 3DS and AC3D loader from Kevin. Both were capable of loading and displaying the model, but both had problems with the transparency of PNG and GIF textures.
[/quote]
GIF? Why not always use PNG? Because PNG should work. Transparent PNGs work fine for me when I use Kev’s newest 3ds loader from his website. He implemented this feature 1-2 weeks ago. :slight_smile:
Is your PNG packed correclty (as 32 bpp PNG, consisting of the 24 bpp texture plus 8 bpp Alpha layer in one file) ?

Well, what’s conerning the 3ds output quality of programs like DeepExploration, I’ve to confess it’s not really good with all models. :expressionless: I’ve found many models which when being exported from DeepExp to 3ds and then loaded back again to DeepExp, they’re corrupted. :frowning:
For example I’ve usually to disable DeepExp’s export option “save hierarchy” otherwise I don’t see anything in the 3dsloader.

Ant has found a more working way, but it’s way too much for me (export from Maya as .mb and then convert it via Polytrans-for-Maya as 3ds, oh oh oh).

It’s amazing to see how badly many 3d exporters write a format like .3ds or .obj, it looks like everybody defines their own “standard”. :expressionless:

PS: Ant, isn’t there a nice .3ds exporter plugin for Maya (without using an expensive Polytrans) ? I know a Maya fan but he doen’t have Polytrans (and doesn’t intend to use it).

thats why polytrans costs so much :frowning:

its a killer there tools when it comes to cost- u need to first perchace polytrans, then another cost hit for the polytrans-for-maya plugin. i think the polytrans plugin is free for 3dsmax mind. but i find scarly that 3dsmax isnt very good at exporting .3ds. so i moved to maya and the cool polytrans exporters- they can import and export pritty much anything.

sorry it costs so much- but the day job this kit is used for it not 3d games :). i just got the key to the computer with all the 3d stuff on.