Problem in Blendigo. Material_Index error (RESOLVED)
Problem in Blendigo. Material_Index error (RESOLVED)
When i try to render my scene, this error occurs:
i don't know why. I've removed doubles and recalculated normals on everything. I can't find any mention of this error anywhere else on the Indigo forums.
If someone could download the blend files and then get it to work, it would be greatly appreciated. Just tell me what to fix.
thanks in advance.
i don't know why. I've removed doubles and recalculated normals on everything. I can't find any mention of this error anywhere else on the Indigo forums.
If someone could download the blend files and then get it to work, it would be greatly appreciated. Just tell me what to fix.
thanks in advance.
- Attachments
-
- Interior Scene.zip
- The blend files
- (1.54 MiB) Downloaded 196 times
Last edited by ZachZJG on Sun Nov 23, 2008 6:47 pm, edited 2 times in total.
If you're in the learning stage (like I am), make sure that both Indigo and Blendigo version are matched, ie. try Indigo 1.1.13 with Blendigo 1.1.13
As for the time being, SmartDen is ironing Blendigo 1.1.13 but you can still play with the latest release. Just make sure you read the 1.1.13 thread for some issues you might encounter.
Hope this helps.
As for the time being, SmartDen is ironing Blendigo 1.1.13 but you can still play with the latest release. Just make sure you read the 1.1.13 thread for some issues you might encounter.
Hope this helps.
Cheers,
Q9550 2.83 GHz, Geforce 9400 GT, 4 GB ram, XP 32/Vista 64
Q9550 2.83 GHz, Geforce 9400 GT, 4 GB ram, XP 32/Vista 64
Ok i changed everything to 1.1.13 but I still get the "material_index is out of bounds" error.
Update: Ok so i removed the chair model and it starts to work again. (at the time of this posting the renderer has finished the part where it says "Done initial warmup." the render itself has not yet started.)
that narrows it down to the chair model that had the out of bounds material thing. Anybody know what that means?
Update: Ok so i removed the chair model and it starts to work again. (at the time of this posting the renderer has finished the part where it says "Done initial warmup." the render itself has not yet started.)
that narrows it down to the chair model that had the out of bounds material thing. Anybody know what that means?
But it's not the glass that's the problem. I'm rendering just the floor, table, and glass and it's fine. Although the glass has a weird black outline. The lack of volume may be causing that outline. So thanks for that tip.SmartDen wrote:your glass has no volume
The problem is the chair model. It is what's causing the error.
Can somebody please look at the blend file and see what is wrong?
if not, how do you reduce the # of triangles in a mesh without changing its look/quality?
I thought you meant the glass on the table. Ok that helps me when i get the final render, but what about the error i get? I narrowed it down to the chair model, but I don't see what is wrong with it.
Everything renders without the chair, but with the chair I get the error.
I also can't render the chair by itself.
what exactly is a triangle material_index?
Everything renders without the chair, but with the chair I get the error.
I also can't render the chair by itself.
what exactly is a triangle material_index?
here is a quick fix up for indigo 1.1.14 should be ok for other versions just dont use my script
Items fixed:
exit portal - flipped normal - must be inward (also tidied to be rectangular - but not important)
end wall - tidied up overlapping geometry around window and wall end - gave edge split modifier
window glass plane - deleted (if you did have glass sheet it needs to be offset from the portal by at least the "nudge" distance)
chair - removed doubles and separated mesh parts with different materials
walls - extruded to make light tight at corners
table legs - convert curves to meshes
floor - apply scale and rotation
environment -apply world scale of 1/10th
removed various redundant object/material shares
(sorry materials are slightly different - removed textures for the quickie trial render - need to do these to suit your blendigo version)
+ maybe other stuff cant remember ATM
HTH
Items fixed:
exit portal - flipped normal - must be inward (also tidied to be rectangular - but not important)
end wall - tidied up overlapping geometry around window and wall end - gave edge split modifier
window glass plane - deleted (if you did have glass sheet it needs to be offset from the portal by at least the "nudge" distance)
chair - removed doubles and separated mesh parts with different materials
walls - extruded to make light tight at corners
table legs - convert curves to meshes
floor - apply scale and rotation
environment -apply world scale of 1/10th
removed various redundant object/material shares
(sorry materials are slightly different - removed textures for the quickie trial render - need to do these to suit your blendigo version)
+ maybe other stuff cant remember ATM
HTH
- Attachments
-
- im1227325778.jpg (150.33 KiB) Viewed 5725 times
-
- Interior Scene.zip
- (1.4 MiB) Downloaded 196 times
the 'degenerate triangles' message in indigo is usually an indicator of 'doubles' in the blender mesh
-you should remove doubles where ever you get that warning as a first solution - it usually fixes it
-sometimes it happens because the modelling is otherwise 'unusual' - your wall window could be a candidate.
get into the habit of 'removing doubles' and 'applying scale and rotation' in your scene preparation
I havent looked to see how smartden has changed his script code lately but the material index error probably is related to having a mesh in blender with multiple materials assigned
In this case to fix it I just separated the parts of the mesh according to material -ie its not the size thats the issue...
You can do this in edit mode using the 'link and materials' panel to select the vertices with the same material then shortcut "P"
Most probably smartden should investigate the issue properly.
BTW another pointer- be careful not to overdo the degree of subsurf - it can slow down blendigo export a lot to generate a lot of most likely unnecessary triangles
the chair leather is a case in point - you have edge loops near the corners that restrict the rounding of the object during subsurf and the object is pretty prismatic anyway so a ss of 2 doesnt achieve much
keep up the good work
its a pity the blendigo wiki is still not restored after the site hack -it might be helpful as a newbie to read
-you should remove doubles where ever you get that warning as a first solution - it usually fixes it
-sometimes it happens because the modelling is otherwise 'unusual' - your wall window could be a candidate.
get into the habit of 'removing doubles' and 'applying scale and rotation' in your scene preparation
I havent looked to see how smartden has changed his script code lately but the material index error probably is related to having a mesh in blender with multiple materials assigned
In this case to fix it I just separated the parts of the mesh according to material -ie its not the size thats the issue...
You can do this in edit mode using the 'link and materials' panel to select the vertices with the same material then shortcut "P"
Most probably smartden should investigate the issue properly.
BTW another pointer- be careful not to overdo the degree of subsurf - it can slow down blendigo export a lot to generate a lot of most likely unnecessary triangles
the chair leather is a case in point - you have edge loops near the corners that restrict the rounding of the object during subsurf and the object is pretty prismatic anyway so a ss of 2 doesnt achieve much
keep up the good work
its a pity the blendigo wiki is still not restored after the site hack -it might be helpful as a newbie to read
- Borgleader
- Posts: 2149
- Joined: Mon Jun 16, 2008 10:48 am
you're both correct. i think. doubles are two vertices so close theyre "in the same spot". by removing doubles you turn these two vertices into one. hence removing degenerate triangles in most/all cases.fused wrote:thats not correct. IIRC degenerate polygons are polygons where the area is 0.Big Fan wrote:the 'degenerate triangles' message in indigo is usually an indicator of 'doubles' in the blender mesh
degenerate triangles which are polygons where the area is 0.
benn hired a mercenary to kill my sig...
Who is online
Users browsing this forum: No registered users and 87 guests