sprockets A:M Decaling Screen frosted donut medals buildings Rubik's Cube Nidaros Cathedral Tongue Sandwich
sprockets
Recent Posts | Unread Content | Previous Banner Topics
Jump to content
Hash, Inc. - Animation:Master

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted
<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*

Posted

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);
            }
        }
    }
}
  • Admin
Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...