x


Strange issue with generated mesh

Hello,

I generated a mesh with script. It's build up from "plane paltforms" with different rotations connetcted to each other. So my issue is that the texture appear only on the first triangle on every platform and the other is invisible but if I check them upside down the other triangle appears with texture and the other is invisible. (I did nothing with uv and normals because I don't understand it maybe that's the problem)

more ▼

asked Jul 04 '11 at 02:00 PM

Adamagocs gravatar image

Adamagocs
16 11 12 14

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

If you set no uv you will not have any texture.

Your invisible triangle is probably facing away from the camera. That is, it's normal is facing the wrong way. If you reverse the order of vertices in the triangle, it will face the other way.

So yes, as you anticipated, you can't ignore uv and normals.

more ▼

answered Jul 04 '11 at 02:09 PM

Waz gravatar image

Waz
6.4k 22 33 70

Thanks, I changed the order of the index in the triangles and now they are faceing to the right way. Now I got no idea how to set the uvs to scretch the texture on the entrie mesh. Can you help?

Jul 04 '11 at 02:41 PM Adamagocs

UV are each just a 2D point on the texture, from (0,0) to (1,1).

Jul 04 '11 at 10:22 PM Waz
(comments are locked)
10|3000 characters needed characters left

Sounds like your triangles are not facing the same way. My guess is that one triangle has the vertices listed clockwise, and the other has them listed anti-clockwise. I don't recall which way is correct.

more ▼

answered Jul 04 '11 at 02:09 PM

Graham Dunnett gravatar image

Graham Dunnett ♦♦
11.7k 11 20 64

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2188
x1352
x236
x122
x61

asked: Jul 04 '11 at 02:00 PM

Seen: 1216 times

Last Updated: Jul 04 '11 at 10:22 PM