Jump to content

  • Log In with Google      Sign In   
  • Create Account

We need your help!

We need 7 developers from Canada and 18 more from Australia to help us complete a research survey.

Support our site by taking a quick sponsored survey and win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 05 Oct 2006
Offline Last Active Mar 05 2013 02:57 AM

Posts I've Made

In Topic: XAudio2 - Playing Ogg, Mp3, Midi, etc.

15 February 2012 - 11:42 PM

Perhaps I should just use irrklang?

In Topic: quick level editor question

13 February 2012 - 04:52 AM

This is how I did mine. It's in SlimDX, but I used a picturebox to auto-size the tileset. Then I used GDI for the selector that gave me the position, when you mouse-over on the panel (slimDX) I use DX to draw the tile at the cursor position. When you click, it determines the X/Y position and the size of the object and puts it down. Good luck.

Attached File  Untitled.png   276.63KB   62 downloads

In Topic: Question about Direct2D.

01 February 2012 - 02:14 AM

Someone has to be able to assist me..

In Topic: [SlimDX] Text Rendering Issue

14 January 2012 - 03:10 AM

I see..

What I'm looking at in the background texture is that where there's a horizontal row of pixels missing from the text, there's also one missing from the repeating background texture, which you can see if you look closely. What that suggests to me is that your back buffer is not the same size as your window client area.

You can easily verify if I'm correct by running it in full screen mode instead of windowed.

Got it.

For anyone else:
PresentParams.BackBufferHeight = form.ClientRectangle.Height;
PresentParams.BackBufferWidth = form.ClientRectangle.Width;
Don't use:
PresentParams.BackBufferHeight = form.Height;
PresentParams.BackBufferWidth = form.Width;

Silly mistake.. thanks ! Posted Image Posted Image

In Topic: [SlimDX] Text Rendering Issue

13 January 2012 - 05:48 PM

Are you running in windowed mode?

If so did you use AdjustWindowRectEx() or the C# equivalent so that the back buffer is the same size as the client area?

Note that the artefacts aren't just affecting the text, they can be seen on the background pattern too, so the problem is not specific to the text.

I'm not, I'll research this topic and see if I cansolve it. The background texture is like that - is not artifacts.

What is the fastest way for 2d graphics other than sprites?