Page 1 of 1

My3d Texture Problem

Posted: Sat Aug 25, 2007 8:24 pm
by ucoskun
Hi,
I make a level in 3D Studio Max 8 and export to 3ds. I opened 3ds file in gile[s] and textured all objects. I adjusted U , V scales of textures , lightmapped and export to my3d format.
Image

But when i loaded in irrlicht , textures extended.

Image

What's my problem?
Thanks.

Posted: Sat Aug 25, 2007 11:46 pm
by hybrid
Hmm, not sure. Seems to be that texture coords are incorrectly read. I've never seen such a problem. And MY3D should store the texcoords properly in the file. Are you sure that the mesh was properly exported?

Posted: Sun Aug 26, 2007 9:44 am
by ucoskun
hybrid wrote:Are you sure that the mesh was properly exported?
Yes, I'm sure. :(

Posted: Sun Aug 26, 2007 12:39 pm
by hybrid
Maybe there's a texture scaling attribute in my3d? Could you upload the mesh somewhere for us to test? Or mail it to the adresse found on my webpage.

Posted: Sun Aug 26, 2007 1:42 pm
by ucoskun

Posted: Sun Aug 26, 2007 9:02 pm
by hybrid
Ok, I'll have a look. And also move this thread to bug reports, just in case

Posted: Sun Aug 26, 2007 10:13 pm
by hybrid
Hmm, unfortunately you chose an incomplete mesh file format :( My3d does not support texture coord transformations, but your scene does. Even though the giles exporter is aware of such transformations, or at least could use them easily, it simply ignores them. So yo have to change the texture mapping inside giles to avoid texture scaling, but use absolute coords instead.
You can also contact the MY3D author and request a new version supporting texture matrices, or at least to fix the exporter and calculate absolute texture coords from the given coords and the transformations. I won't change the format (as it is a proprietary format anyway, even though it's public domain) and also not the exporter (as it is a Giles' or whatever tool's problem). Sorry.

Posted: Mon Aug 27, 2007 9:52 am
by ucoskun
Ok , thanks Hybrid

Posted: Sat Sep 08, 2007 6:14 pm
by christianclavet
Hi. You should save all in Blitz3D (B3D) format from Gile[s]. I'm using that format and never had problem.