![]() |
【转帖】error in rasterimage used in autocad2002
error in rasterimage used in autocad2002
error in rasterimage used in autocad2002 i am working on a application that opens are modifies dwg files, using opendwg (visualizing through opengl, separatelly developed - not the example application/viewer shipped with the opendwg). the problem is that when an image is created in our program, it works just fine. but when saved to dwg file, and reopened with autocad - strange results appear. those can be observed at the attachments i have applied: - the first is the error that occurs in autocad - the scene is the same, but the texture is all grey, and the picture "entity" seems to be invalid (audit in acad finds no errors). - the second one is the scene in our program - everything is ok. - the third is the dwg file generated and saved by our program (so far this is the only feature we have found to behave like this - all entityes seem to work perfectly, but this oddbrasterimage entity). - the forth is the image that is used for texture. it's path on the hd is "c:/green.jpg" the does not seem to be in the picture itself, as i have tryed a few different pictures, with no visible effect. if you have any ideas for what causes this error, please tell me. thanks in advance. attached images the raster image you created has zero contrast and brightness. as a result ac shows grey square. probably your application does honor these image parameters. the file also has one more defect: rasterimagedef object has no reactor pointing to rasterimagedefreactor object owned by rasterimage. as a result autocad shows this rasterimagedef as unreferenced. probably you create rasterimagedefreactor "manually" but do not append it as persistent reactor to imagedef. if you do not create imagedefreactor yourself dd will do all job for you automatically in oddbrasterimage::subclose() - it will create imagedefreactor object and append reactor to imagedef. sergey slezkin |
所有的时间均为北京时间。 现在的时间是 02:21 AM. |