Hi Luca,

On Thu, May 19, 2011 at 12:59 AM, Luca Vezzadini
<[email protected]>wrote:
>
> I gave it a try, the description lines are there. I just see a minor issue:
> you did not add the MaterialData.{h,cpp} to Cmake.
> About the results, looks like what is there is fine! I'll do more testing
> in the next days, trying to use the definitions in my shaders as well, and
> let you know.
>

Laurens just submitted a patch that fixes the Cmake issue.


> The testMat2 is using the tx directly as a bitmap, while TestMap first has
> a NormalMap texture, then the bitmap. In the output they look totally
> equivalent though. Looking at the code, it seems that you treat them as
> separate cases: so, what about adding an extra field at the end of TestMap
> to indicate it's a normal map? The field could actually be even smarter and
> indicate the active texture space (tangent, screen, ...).
>

My intention was to add more keywords that would describe each map in more
detail, depending on the texture type. In your example, I could add the
following line to provide more information regarding the bump map on unit 2:

Normal <unit> <amount> <method>
Normal 2 1.0 Tangent

This let's you know that the bitmap type on unit 2 is a normal map with the
specified settings. I could eventually add keywords to provide additional
info for Mix maps and Reflection maps.

Does this sound reasonable to you?

Cheers,
Farshid
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to