![]() |
【转帖】materials not found
materials not found...
materials not found... hello, i'm joining a file of an airplane with some material colors (working in odamfcapp) but i really don't see how to access those materials from my application ! 1) i tried the function oddbentity::materialid().openobject() for each entity i try to display but it always return a null pointer... 2) and it's the same if i try to use ave : odavematerial::getattachedmaterial(ptr->objectid(),blockref) always return false.... so ? what's left ? is there another way to store (and then access) material information in a dwg file ? manu. attached files why do you think that materials present in file? autocad does not show any material presenting in drawing except default global one. entities contain ave_entity_material xdata but it's not material but material mapping data. reference to material is stored as ave_finish xdata. but where are no such xdata in file. btw, odamfcapp does not use materials in rendering. sergey slezkin hi, i was thinking there were materials because odamfcappdll was showing a muli color object (red, white, blue faces of the cessna...)... if that's no material, so what it is ? the vertices "true" colors ? manu. different entities have color bylayer but layers are different so they are rendered with different colors. different colors in odamfcapp are not related to materials. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 11:33 PM. |