Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Xyro

Pages: 1 [2] 3 4
16
DotNet / PostFX problems
« on: April 17, 2011, 07:46:20 pm »
Dunno I downloaded both but I thought I had been using 2.0. Seems I made a mistake, I'll add in the 2.0 binaries and update my code, hopefully that fixes my problem

17
DotNet / PostFX problems
« on: April 17, 2011, 07:11:46 pm »
Euh, for some reason the sample uses things like Text instead of String2D and Shader instead of PostFx, am I looking at the wrong thing or did I do something wrong ?

18
DotNet / PostFX problems
« on: April 16, 2011, 08:44:38 pm »
Its included on the right of the screenshot

19
DotNet / PostFX problems
« on: April 16, 2011, 08:28:14 pm »
I am trying to use postfx, for some reason I am getting a weird error even when trying to use the effect that is provided in the original tutorial.

Setup
Windows 7 64 bit
Ati Radeon HD 4970x2

I made a screenshot displaying all the code and the error :


20
DotNet / Font fill
« on: April 11, 2011, 10:22:39 pm »
Sorry, currently its just drawing the black outline of the string on the screen and I want it filled in with a color (white)

21
DotNet / Font fill
« on: April 11, 2011, 06:24:27 pm »
Is there anyway to fill a font ? if not, how would you suggest to achieve such a effect.

22
DotNet / font won't load properly
« on: March 18, 2011, 07:49:01 pm »
Still got the same problems, the I loaded the font with size 30 and set the 2d text to 30 and it looked like shit and the lines that I put on 0 till the width of the screen and it still only draws like half of the screen.

23
DotNet / font won't load properly
« on: March 18, 2011, 03:09:22 pm »
How would that translate into code if lets say the fonts size is 32

24
DotNet / font won't load properly
« on: March 18, 2011, 01:52:26 pm »
I already did that and then it stops on the  

Code: [Select]
int lenght = headerText.Text.Length

and throws the exception, nothing seems wrong with it :S

damm more problems, for some reason this :

Code: [Select]

            headerText.Position = new Vector2(Width / 2, 50);
            headerText.Center = new Vector2((headerText.Size * text.Length) / 2, headerText.Size / 2);


Doesn't put the text in the middle of the screen (on the x axis)

and is there a option too smooth the font because it now looks horrible

25
DotNet / font won't load properly
« on: March 18, 2011, 11:14:50 am »
How ?

Also this : http://i52.tinypic.com/210x9oz.png

for some reason the lines are not from the left to the right, they only seem to cover half the screen.

Edit :

forgot to add this into my code :

Code: [Select]

            headerText.Font = TidyHandFont;


it now displays properly only I still can't set the center. and the lines are still weird :S

It seems to come specifically from this : Text.Lenght because when I added this :
Code: [Select]

            int lenght = headerText.Text.Length;

it also crashed.[/code]

26
DotNet / font won't load properly
« on: March 18, 2011, 12:03:35 am »
for some reason whenever I load the font it acts like it all works as its supposed to work. however when I actually try to set the center of the text this happens :

Code: [Select]
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

When I remote that center part it draws but it just draws as I think arial but definitely not the font that I am loading in.

Code :

Code: [Select]
   
class MainMenu : Scene
    {
        Font TidyHandFont;
        List<Shape> lines = new List<Shape>();
        String2D headerText = new String2D();

        Color clearColor = new Color(249, 249, 249);

        public void Draw(float frameTime)
        {
            Program.renderWindow.Clear(clearColor);
            foreach (Shape shape in lines)
            {
                Program.renderWindow.Draw(shape);
                Program.renderWindow.Draw(headerText);
            }
            Program.renderWindow.Display();
        }
        public void Think(float frameTime)
        {
            Program.renderWindow.DispatchEvents();
        }
        public void Init()
        {
            try
            {
                TidyHandFont = new Font(@"Content/Fonts/TidyHand.ttf");
            }
            catch
            {

            }
            Color lineColor = new Color(234,234,234);
            uint Width = Program.renderWindow.Width;

            for (int i = 0; i < Program.renderWindow.Height / 25; i++)
            {
                Shape shape = new Shape();
                shape.AddPoint(new Vector2(0,i * 25),lineColor);
                shape.AddPoint(new Vector2(Width, i * 25), lineColor);
                shape.AddPoint(new Vector2(0, i * 25 + 2), lineColor);
                shape.AddPoint(new Vector2(Width, i * 25 + 2), lineColor);
                lines.Add(shape);
            }

            headerText.Text = "A cup of tea and a bandit, TEA BANDIT";
            headerText.Position = new Vector2(Width / 2, 50);
            headerText.Center = new Vector2((headerText.Font.CharacterSize * headerText.Text.Length) / 2, headerText.Font.CharacterSize / 2);
            headerText.Color = new Color(2, 49, 153);
        }
    }


Why is this happening ?

27
DotNet / ATI Graphic Card Issue
« on: February 13, 2011, 03:21:46 pm »
Whats the eta on the fix ?

28
DotNet / ATI Graphic Card Issue
« on: January 16, 2011, 07:52:05 pm »
Any progress on fixing this, I decided to use this library for a project but if this stays I'll have to rewrite everything :(

29
DotNet / Seeing a key is pressed
« on: January 06, 2011, 05:16:46 pm »
How can I go an see if a key is being pressed, I only found this in a sample :

Code: [Select]

        void OnKeyPressed(object sender, KeyEventArgs e)
        {
            RenderWindow window = (RenderWindow)sender;
            if (e.Code == KeyCode.Escape)
                window.Close();
        }


but this only works for one key at a time and I want to get multiple keys.

30
DotNet / Drawing polygon
« on: January 03, 2011, 09:00:53 pm »
Quote from: "Xyro"
Fuck just read the other topic, I'll see if it auto updated or something. I'll probably downgrade it otherwise ...


Works now downgraded !

Pages: 1 [2] 3 4
anything