can't smooth a 3ds model

Hi folks,

I’ve been playing with Xith3d for a week or so now and am having fun and I’m checking out the different loaders.

Currently I’m trying out the Loader3DS v1.2 by Greg from Kinostudios.com and I’m seeing a small problem with the displaying of the model. It’s probably all my fault but I can’t seem to figure out why.

I can’t seem to get the model to smooth. As you can see in the attached JPG you can see the vertices.

Here’s the material I’m using

mat2.setSpecularColor(0.0f,0.0f,0.0f);
mat2.setAmbientColor(1.f,1.f,1.f);
mat2.setDiffuseColor(1.0f,1.0f,1.0f);
mat2.setShininess(0f);
mat2.setColorTarget(Material.AMBIENT_AND_DIFFUSE);
mat2.setLightingEnable(true);

The code I used is just his demo found at the web site.

Cheers
Cthulhu

http://mywebpage.netscape.com/CthulhuLives69/Sol.jpg

PS: ther model is created in 3ds max (geosphere). I’ve tried just creating the sphere and exporting it, tried adding a mesh smooth, tried adjusting the normals, tried converting it to editable mesh before exporting.

hey, I’m no longer really working on this loader, but send me an email with your model and the code you’re using and I’ll try to take a look and see what’s wrong. This is very strange because I’ve loaded many sphere’s before and I never noticed this. My email: greg -at- kinostudios -dot- com

BTW, what version of 3DS Max are you using?

I’m using 3dsmax6.

If I have an ambient light it looks great but since it is for a space scene I’m using a PointLight and there is no ambient light in space (more or less anyways).

I sent you an e-mail with a slightly modified version of your example code so you won’t have to search around much and the model+texture.

Thanks in advance :slight_smile:

if you don’t see the same thing then it’s a problem on my side.

Check your mail. :slight_smile:

Do you plan updating 3DS loader in xith3d-toolkit CVS base?
that is, if you managed to fix a sphere problem just mentioned…

[quote]Do you plan updating 3DS loader in xith3d-toolkit CVS base?
that is, if you managed to fix a sphere problem just mentioned…
[/quote]
Well, I didn’t fix the problem yet (don’t know if I will, again, I’m no longer actively working on this). I just emailed him some suggestions and alternatives. However, if anyone finds out what the problem is, they are of course more than welcome to fix it. A good place to look would be FacesDescriptionChunk. Until then I would just recommend using Xith’s primitive’s package to make Spheres.