Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode 05 Mesh not rendering #30

Open
dp1140a opened this issue Jan 17, 2021 · 3 comments
Open

Episode 05 Mesh not rendering #30

dp1140a opened this issue Jan 17, 2021 · 3 comments

Comments

@dp1140a
Copy link

dp1140a commented Jan 17, 2021

I have been following the tutorial videos which are awesome by the way, thank you.

At the end of episode 5 you finally display the mesh. When I do that all I get is a black square. I have redone it multiple times to make sure I didnt miss a step or fat finger some code. Still the same black square I'm using newer versions of Unity 2019 and 2020.

Screenshot from 2021-01-17 13-19-33

@billikowski
Copy link

From a comment under the video:

If your mesh is being rendered upside down (think this is due to newer versions of Unity) just flip the values in the AddTriangles method for the MeshData class e.g.
triangles[triangleIndex] = c;
triangles[triangleIndex + 1] = b;
triangles[triangleIndex + 2] = a;

@PG13park
Copy link

When I try to add the mesh generator script I get compiler errors. how do I solve?

  1. Assets\Scripts\MeshGenerator.cs(4,21): error CS0101: The namespace '' already contains a definition for 'MeshGenerator'

  2. Assets\Scripts\MeshGenerator.cs(42,14): error CS0101: The namespace '' already contains a definition for 'MeshData'

  3. Assets\Scripts\MeshGenerator.cs(50,9): error CS0111: Type 'MeshData' already defines a member called 'MeshData' with the same parameter types

  4. Assets\Scripts\MeshGenerator.cs(57,14): error CS0111: Type 'MeshData' already defines a member called 'AddTriangle' with the same parameter types

  5. Assets\Scripts\MeshGenerator.cs(65,14): error CS0111: Type 'MeshData' already defines a member called 'CreateMesh' with the same parameter types

@PG13park
Copy link

NVM I made noob move

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants