Welcome to Phrogram Sign in | Join | Help
in Search


BUG#36: SetAlgebraCoordinates fails

Last post 07-31-2008, 3:59 PM by ZMan. 4 replies.
Sort Posts: Previous Next
  •  07-25-2008, 11:28 AM 6937

    BUG#36: SetAlgebraCoordinates fails

    Originally from http://phrogram.com/forums/permalink/6935/6935/ShowThread.aspx#6935 

    Chris.Robbins:

    In terms of a TODO list I'd like to add full support for "geometry coordinates" rather than screen coordinates as these can cause confusion for educational applications. I tried an example using the SetAlgebracoordinates() command with the result that sprites didn't show! Having to use statements such as "Sprite1.MoveTo(x,ScreenHeight-y)" makes things a little less obvious to the novice and student trying to approach a physical problem.

     


    Managed DirectX and XNA ? Check out http://www.thezbuffer.com
  •  07-25-2008, 11:30 AM 6939 in reply to 6937

    Re: SetAlgebraCoordinates fails

    Are you looking for a new feature or saying that this didn't work - do you have a repro case - you can ttach the .kpl file to your reply in the options tab.

    I know we have plenty of samples using ther algebraic coordinates for drawing but you know I'm not 100% sure if they affect the sprite library.

     


    Managed DirectX and XNA ? Check out http://www.thezbuffer.com
  •  07-25-2008, 1:00 PM 6942 in reply to 6939

    Re: SetAlgebraCoordinates fails

    Attachment: testPhrog1.kpl
    See the attached example. I get a sprite when I don't use algebraic coords and a blank screen when I do!
  •  07-26-2008, 12:47 PM 6946 in reply to 6942

    Re: SetAlgebraCoordinates fails

    I'm sure it says somewhere that sprites cannot be used in conjunction with Algebraic coordinates. I can't for the life of me think why this would be. It seems that you should be able to use sprites with both coordinate systems.
  •  07-31-2008, 3:59 PM 6986 in reply to 6946

    Re: SetAlgebraCoordinates fails

    Looks like a bug!

     

    Algebraic coordinates don't affect sprites - they always live in the 0,0 top left origin space. However it should still draw. I noticed that if you resize the window the sprite appears.

     

    Right now I can't find a workaround either..

     

    I've logged this in the bug system... if you can let us know your plans for mixing sprites and 2d algebraic coordinates it will help us prioritise things.


    Managed DirectX and XNA ? Check out http://www.thezbuffer.com
View as RSS news feed in XML