Jmc wrote:
>
> Frans Bouma [C# MVP] wrote:
>
> >
> > If there's no movement, in de demoscene we always said: "Precalc!"
> > so I'd pre-apply the bumpmap in an image program like photoshop or
> > Gimp and use the result in your application.
>
> Thanks for the answer.
> What I ment with no movement is that I don't need any animations.
> What my application does is generating an image and a bumpmap from
> different fileformats.
> So the only thing I want to be able to do, is apply the bumpmap on an
> image and setup 1 (or more) light source.
Ah ok, well if it helps, check this sourcecode of my rotozoomer in C#,
which shows you how to do fast image processing per pixel. You can use
this to apply a bumpmap using normal software rendering techniques
(i.e.: without going to the hardware through dx/ogl)
http://weblogs.asp.net/fbouma/archiv...25/433976.aspx
FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------