embedded mesh instancing

General questions about Indigo, the scene format, rendering etc...
Post Reply
9 posts • Page 1 of 1
FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

embedded mesh instancing

Post by FakeShamus » Tue May 08, 2007 9:11 am

Hi, I think a similar thing was addressed in a different post not too long ago, but i am having trouble using instanced meshes with different materials. as I understand it, the way to do this is to first define the mesh, then the material, then model instance, material, model, material, model, etc...
but when using an embedded mesh, the material is defined within the mesh node and that seems to override any materials you define later for each instance. if you remove the material from the mesh definition you get an error and adding a material inside the model node is not allowed (though that seems like it would be a logical way for this to work, format-wise).
anyway, if someone could post an example of working code on this I would be very grateful. maybe I am just misunderstanding something.
freaking fantastic program, by the way!

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

Post by FakeShamus » Wed May 09, 2007 3:13 am

so, no help on this one?
anybody?

Deus
Posts: 336
Joined: Sun Feb 04, 2007 3:47 am

Post by Deus » Wed May 09, 2007 3:20 am

Try another mesh format. Indigo supports .obj and .3ds i think.

Its a hard nut to crack. Another idea is to export your model into indigoformat and fix it manually.

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

Post by FakeShamus » Wed May 09, 2007 4:25 am

I will try adding an external .obj file instead of using the embedded indigo mesh format. up to now I have been exporting with maya to indigo and using the xml mesh that's generated. thanks!

Deus
Posts: 336
Joined: Sun Feb 04, 2007 3:47 am

Post by Deus » Wed May 09, 2007 5:01 am

np glad I can be of help instead of the general racking down on stupid posts attitude :)

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Wed May 09, 2007 10:49 am

It would be nice to have materials declared in objects and not meshes.

Right now it is not possible but maybe in the future! :)
Content contained in my posts is for informational purposes only and is used at your own risk.

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

Post by FakeShamus » Wed May 09, 2007 12:28 pm

yes, so using an external obj, 3ds, or ply gives basically the same problem. an error if you don't give the mesh a pre-defined material, and then no way to override a pre-defined material if you want to change it for each instance of the model. how was this done: http://www2.indigorenderer.com/joomla/f ... light=poly
?
mesh
material
model
material
model
material
model

is what I have in my code, but it's not working for me...

FakeShamus
Posts: 512
Joined: Wed May 02, 2007 11:34 am

Post by FakeShamus » Wed May 09, 2007 2:31 pm

ok I got it. so you keep re-defining the material for each model instance using the same material name. that makes sense.

Wedge
Posts: 441
Joined: Sun Jan 14, 2007 11:33 am
Location: East Coast, USA

Post by Wedge » Wed May 09, 2007 5:53 pm

Oh, that makes sense. :)
Content contained in my posts is for informational purposes only and is used at your own risk.

Post Reply
9 posts • Page 1 of 1

Who is online

Users browsing this forum: No registered users and 51 guests