Styler Posted October 31, 2014 Posted October 31, 2014 Can anybody tell me how to reach this property? I need understand which exactly type overrides by image. Quote
Fuchur Posted October 31, 2014 Posted October 31, 2014 <MODEL> Name=Model1 <MESH> <PATCHES></PATCHES> </MESH> <DECALS> <DECAL> Name=test_0001 Scale=137.496 137.496 <ApplicationMethod>Value=Planar ImageShown=Images|test_000</ApplicationMethod> <DECALIMAGES> <DECALIMAGE> Name=test_000 Selected=TRUE <Image>Value=..|..|..|..|..|..|Images|"D:/workspace/test_000.tga"</Image> DecalType=Bump </DECALIMAGE> </DECALIMAGES> </DECAL> </DECALS> <FileInfo>CreatedBy=Gerald Zum Gahr Organization= Url=http://www.patchwork3d.de Email=werbung@patchwork3d.de LastModifiedBy=Gerald Zum Gahr</FileInfo> </MODEL> You mean by SDK, right? I can not help there, but this is the difference in the XML-file it generates: "DecalType=Bump" If the image is of type "Color" there is no DecalType-Property, if it is something else, it is described as above. I hope this helps a little bit. See you *Fuchur* Quote
Styler Posted November 1, 2014 Author Posted November 1, 2014 It's actually here. Thanks for hint HDecalContainer* decals = hmc->GetChildDecalContainer(); if (decals) { for (HHashObject* _decal = decals->GetChild(); _decal; _decal = _decal->GetSibling()) { HDecal* decal = (HDecal*)_decal; HDecalClipContainer* clips = decal->GetChildDecalClipContainer(); if (clips) { for (HHashObject* _clip = clips->GetChild(); _clip; _clip = _clip->GetSibling()) { HClip* clip = (HClip*)_clip; HDecalClip* clipInfo = (HDecalClip*)_clip; UINT kind = clipInfo->GetKind()->GetValue(); // here is a type printf("- %s, type: <%d>\n", clip->GetMatchName().buf, kind); } } } } Quote
Admin Rodney Posted November 1, 2014 Admin Posted November 1, 2014 I decided not to create thousand different topics As far as I'm concerned, a thousand different topics that delve into the SDK would be just fine. Not only will keeping topics separate (under their own title) help to get at answers to specific questions it'll help others search for and find those as well. Quote
Styler Posted November 1, 2014 Author Posted November 1, 2014 Ok Rodney, If so, could you rename this topic something like "How to access to clip image properties" Quote
Admin Rodney Posted November 1, 2014 Admin Posted November 1, 2014 If so, could you rename this topic something like "How to access to clip image properties" Done. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.