Frictional Games Forum (read-only)
Alpha maps in HPL2 - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Alpha maps in HPL2 (/thread-21895.html)



Alpha maps in HPL2 - crisosphinx - 06-21-2013

Hey,

I'm looking to gain some insight into why the alpha maps are a bit hard to get working in the HPL2 engine. Anyone got some hints or suggestions?

My model is completely opaque when 90% black on the alpha map should probably a generally transparent model, of course.

Thanks,

Jeff


RE: Alpha maps in HPL2 - Traggey - 06-21-2013

Because HPL2, it doesn't work properly in the engine. If you have a look at things like the spiderwebs and Alexanders hair you'll notice that they al look like glowing ghost textures, no can do there mate.


RE: Alpha maps in HPL2 - crisosphinx - 06-21-2013

So, is there any solution I can use to make something like... Glass for instance?

It seems sort of ridiculous that I wouldn't be able to do something that simple.

I did a work around, so nevermind in the short run.

In the long run, if anyone has had success with it, it'd be nice to know how it was done. Thanks anyways.


RE: Alpha maps in HPL2 - Statyk - 06-22-2013

As far as I know, The difference is between SolidDiffuse and Translucent. Soliddiffuse's alpha only allows for full transparency, or no transparency, even with a gradient in the alpha. Whereas Translucent allows for the alpha map to react according to the gradient, but does leave it emissive. It's ehhh.


RE: Alpha maps in HPL2 - crisosphinx - 06-22-2013

(06-22-2013, 08:16 AM)Statyk Wrote: As far as I know, The difference is between SolidDiffuse and Translucent. Soliddiffuse's alpha only allows for full transparency, or no transparency, even with a gradient in the alpha. Whereas Translucent allows for the alpha map to react according to the gradient, but does leave it emissive. It's ehhh.

I wasn't able to get full transparency or translucency. I haven't checked the "Translucent" material option, but I suppose it doesn't matter. I got the equivalent of what I was looking for through other means. Thank you for explaining that to me Statyk, perhaps if I do more with HPL2, I'll test that out later. Smile


RE: Alpha maps in HPL2 - WALP - 06-22-2013

(06-21-2013, 11:44 PM)crisosphinx Wrote: So, is there any solution I can use to make something like... Glass for instance?

It seems sort of ridiculous that I wouldn't be able to do something that simple.

I did a work around, so nevermind in the short run.

In the long run, if anyone has had success with it, it'd be nice to know how it was done. Thanks anyways.
For glass use transluent and alpha will be set to black. So you wanna have a black image and paint the scratches and dirt and whatever is on the window over it.
There might be other ways to do this but they[frictional] have done it like this at least a few times in amnesia so I thought I would just do it like so for now.
[Image: hEEqUvg.jpg]


RE: Alpha maps in HPL2 - crisosphinx - 06-22-2013

Spoiler below!

(06-22-2013, 04:01 PM)The Mug Wrote:
(06-21-2013, 11:44 PM)crisosphinx Wrote: So, is there any solution I can use to make something like... Glass for instance?

It seems sort of ridiculous that I wouldn't be able to do something that simple.

I did a work around, so nevermind in the short run.

In the long run, if anyone has had success with it, it'd be nice to know how it was done. Thanks anyways.
For glass use transluent and alpha will be set to black. So you wanna have a black image and paint the scratches and dirt and whatever is on the window over it.
There might be other ways to do this but they[frictional] have done it like this at least a few times in amnesia so I thought I would just do it like so for now.
[Image: hEEqUvg.jpg]



Thanks Mug! I have an opaque object in the glass jar though, so the translucent material wouldn't necessarily work, correct?

I'll give it a try, none-the-less.


RE: Alpha maps in HPL2 - WALP - 06-22-2013

(06-22-2013, 06:06 PM)crisosphinx Wrote:
Spoiler below!

(06-22-2013, 04:01 PM)The Mug Wrote:
(06-21-2013, 11:44 PM)crisosphinx Wrote: So, is there any solution I can use to make something like... Glass for instance?

It seems sort of ridiculous that I wouldn't be able to do something that simple.

I did a work around, so nevermind in the short run.

In the long run, if anyone has had success with it, it'd be nice to know how it was done. Thanks anyways.
For glass use transluent and alpha will be set to black. So you wanna have a black image and paint the scratches and dirt and whatever is on the window over it.
There might be other ways to do this but they[frictional] have done it like this at least a few times in amnesia so I thought I would just do it like so for now.
[Image: hEEqUvg.jpg]



Thanks Mug! I have an opaque object in the glass jar though, so the translucent material wouldn't necessarily work, correct?

I'll give it a try, none-the-less.

dont you just need 2 different materials? one for the glass and one for the object?


RE: Alpha maps in HPL2 - crisosphinx - 06-22-2013

(06-22-2013, 06:15 PM)The Mug Wrote:
(06-22-2013, 06:06 PM)crisosphinx Wrote:
Spoiler below!

(06-22-2013, 04:01 PM)The Mug Wrote:
(06-21-2013, 11:44 PM)crisosphinx Wrote: So, is there any solution I can use to make something like... Glass for instance?

It seems sort of ridiculous that I wouldn't be able to do something that simple.

I did a work around, so nevermind in the short run.

In the long run, if anyone has had success with it, it'd be nice to know how it was done. Thanks anyways.
For glass use transluent and alpha will be set to black. So you wanna have a black image and paint the scratches and dirt and whatever is on the window over it.
There might be other ways to do this but they[frictional] have done it like this at least a few times in amnesia so I thought I would just do it like so for now.
[Image: hEEqUvg.jpg]



Thanks Mug! I have an opaque object in the glass jar though, so the translucent material wouldn't necessarily work, correct?

I'll give it a try, none-the-less.

dont you just need 2 different materials? one for the glass and one for the object?

Possibly, but you'd be able to make it work elsewhere, like udk.