Mesh problems

BlitzMax Modules Forums/MiniB3D/Mesh problems

I got a hole in my object. It was created with the 'CreateSphere(40)' command. Is there a bug or am I doing something wrong. I'm using Klepto2's .4 version.

Download Exe here

regards
Sveinung

Well thats the seam... I have no ideea how to get rid of the problem...

looks like the mesh's verts are not welded. you could:

a. create a sphere in a 3d modeller (3DS Max, etc) and unwrap it.

b. look at the sourcecode for the sphere creation and modify it.

if you want to write a new sphere code, please post here and I am sure simonh will consider putting it in the source.

I think the idea of having a seam is that it makes texturing easier. It avoids the discontinuity you would get when the UV's wrap from 1 back to 0. I suppose you could get around this with the right texture, or maybe if you welded it you can make the uv's go up to 1 for half the sphere and then back down to 0 for the other half so the texture would repeat twice around the sphere in a mirror like fashion but with a less glaring discontinuity?

Thanks for all the answers. I'll look into the createsphere command...and I'll post it id I succeed.

BTW loading 3ds...all fine :D

Sveinung