PDA

View Full Version : Texture Coordinate Problems ?


MaxP
01-27-2003, 07:13 PM
Hi,

I'm writing some software which creates OBJ files which I am currently updating to assign UV coordinates as part of the modelling process. To test the software I often load the models into Cinema and then apply textures to see if things are going well. However, I've come across a problem which I'm having difficulty explaining.

When I texture my model(s) in Cinema, one of the objects always 'appears' to have no texture. I have loaded the model into Bodypaint and selected the polys and looked at their UV coordinates on the texture map and these appear to be ok. I have also noticed that when I scale or zoom into the model I can occasionally see a few stray pixels appear which look like they are from the texture. It's almost as though the polys are double faced - indeed it appears I can delete the same face twice. However, I dont end up with a textured model 'beneath' the original.

Does anyone have any ideas to explain what might be going on ?

AdamT
01-27-2003, 08:15 PM
Are you sure the normals are facing in the right direction?

Per-Anders
01-27-2003, 08:19 PM
well the double faced thing sounds like it literally isjust that, you need to run an optimise command in cinema to clean up the duplictate faces and points... then it might get a little clearer.

MaxP
01-28-2003, 07:40 PM
Originally posted by AdamT
Are you sure the normals are facing in the right direction?

Thanks for the replies - it does appear that some of the normals are facing in the wrong direction. Reversing them reveals the texture on the offending polygons.

Cheers,

Max

MaxP
01-31-2003, 03:58 PM
A quick follow up question or two (having not made much progress looking at my code).

I assume that in the absence of normals in the obj file, Cinema will create a normal that is based on the polygon's winding information (i.e. clockwise / counter clockwise) ? Is this correct ?

Max

PS Can anyone explain what I need to do to attach an inline image ? Do they need to be in the form of an html link to a file ? I've tried attaching a file directly but it doesn't show up.

AdamT
01-31-2003, 04:44 PM
Originally posted by MaxP
A quick follow up question or two (having not made much progress looking at my code).

I assume that in the absence of normals in the obj file, Cinema will create a normal that is based on the polygon's winding information (i.e. clockwise / counter clockwise) ? Is this correct ?

Max

PS Can anyone explain what I need to do to attach an inline image ? Do they need to be in the form of an html link to a file ? I've tried attaching a file directly but it doesn't show up.

Use the "Img" button to attach an inline image.

Regarding the normals question--I have no idea. You might want to post this to Maxon's developers' forum.

JoelOtron
01-31-2003, 06:05 PM
Keep us updated on the software MaxP!

I have been struggling with the issue of exporting models out with the textures intact. My goal, as I've been whining about, is to get a model seamlessly (textures and all) from C4d to LW. If this plugin is part of the answer, I'd be really relieved.

MaxP
02-02-2003, 03:30 PM
Originally posted by JoelD
Keep us updated on the software MaxP!

I have been struggling with the issue of exporting models out with the textures intact. My goal, as I've been whining about, is to get a model seamlessly (textures and all) from C4d to LW. If this plugin is part of the answer, I'd be really relieved.

Hi JoelD - I'm afraid that my software is stand alone and therefore not all that similar to what it sounds like you're trying to do. I'm only using Cinema to check that the obj files my program creates look ok.

On the modelling front, I've finally tracked down the source of the problem - I had some old code that was outputting a second set of polys which overlaid the first set. Now that it's been commented out, the textures work as I would expect.

Thanks once again for all the help.

Max

CGTalk Moderation
01-14-2006, 06:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.