Can you upload a binary of your code please?
I can't compile stuff on this computer and I'd really like to see it running..
Thanks!
LOD Scene Node
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Hi Lonesome Ducky,
I tried using another .obj model rather than the albatros. I ran into a problem here:
Triangle *tri = new Triangle(Verts[x][indices[y]],Verts[x][indices[y+1]],Verts[x][indices[y+2]]);
I checked DefaultMesh->getMeshBufferCount() and it's 1 for the albatros and 14 for my model.
The following arrays are defined to 8 elements. Can you tell me the significance of 8?
array<Vertex*> Verts[8]; // What is significance of 8?
array<Triangle*> Tris[8];
I changed this to 15 for my model (vgr_heavymissilefrigate) and the code runs and the model is displayed.
Thx!
I tried using another .obj model rather than the albatros. I ran into a problem here:
Triangle *tri = new Triangle(Verts[x][indices[y]],Verts[x][indices[y+1]],Verts[x][indices[y+2]]);
I checked DefaultMesh->getMeshBufferCount() and it's 1 for the albatros and 14 for my model.
The following arrays are defined to 8 elements. Can you tell me the significance of 8?
array<Vertex*> Verts[8]; // What is significance of 8?
array<Triangle*> Tris[8];
I changed this to 15 for my model (vgr_heavymissilefrigate) and the code runs and the model is displayed.
Thx!
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Nope, no significance for 8 at all, just thought it would be a good number. But all these problems will be fixed in my new code, I'm writing it to create as many mesh buffers as the beginning mesh has, recalculate the normals, remap the uv's, and collapse based on edge cost. I'll probably have a basic demo here on monday.
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm