kryptons light coordinates

Nov 22, 2012 at 6:03 PM

Hi, I just downloaded krypton today... One thing that is confusing me is the x,y coordinates of lights.. Coordinates for lights dont match up with ones for xna sprites, they seem to be a lot bigger and also the y axis seems to be reversed.. It seems 0,0 is the centre of the screen as well and not the top left

Can someone please explain this? Thanks!

Nov 22, 2012 at 10:49 PM

ok, I found spritebatchcompatibilty... thanks for the awesome lighting!

Dec 6, 2012 at 11:38 AM

Can you give some more info on how you got this to work?

I've added these to the official testbed:

            this.krypton.SpriteBatchCompatablityEnabled = true;
            this.krypton.CullMode = CullMode.None;
but it just makes a blank screen :/

Jan 15, 2013 at 8:42 AM
Oblivion170 wrote:

Can you give some more info on how you got this to work?

I've added these to the official testbed:

 

            this.krypton.SpriteBatchCompatablityEnabled = true;
            this.krypton.CullMode = CullMode.None;
but it just makes a blank screen :/

 

you also need to pass the krypton engine instance either an indentity matrix else if you're using a camera your cameras matrix before each draw call.