Jump to content

  • Log In with Google      Sign In   
  • Create Account

Richard Moss

Member Since 27 Apr 2012
Offline Last Active Private

Posts I've Made

In Topic: White textures on Windows XP VM using OpenTK / C#

16 September 2012 - 05:06 AM

Kaptein and mhagain,

Thanks for the responses. I am enabling 2D textures prior to bind anything, that's not the issue. However, mhagain has hit the nail on the head it seems. Originally I tried to keep all textures power of two, until I read somewhere it wasn't actually required - so I got lazy for textures I used as single images, rather than being part of a tilesheet. And this seems to be exactly what the problem is - I did a quick test on changing one of the text graphics to be power of two, and it's loaded fine in the VM. So I just need to update my tilesheet code (which splits up textures into grids with equally sized cells) in order to support different sized sub images, then I think I'm sorted.

Thanks very much, I've been trying to fix this for a while and the fact I'd lazily switched image sizes never occured to me!

Richard Moss

In Topic: OpenGL viewport / rendering partial tiles

05 May 2012 - 08:07 AM

Thanks for the follow up. I didn't realize you can have multiple viewports - I was setting up a default one once when the game started to the window size. Cool, the solution does seem to be easier that what I was thinking [no horrible calculations to work out bits of tiles!], I shall go do some more experimenting :)

In Topic: OpenGL viewport / rendering partial tiles

05 May 2012 - 07:54 AM

Thanks for the reply.

I do set a co-ordinate system, but I set that once when the window is created (and I reset it if the window is resized). Didn't think about creating a sub co-ordinate system as such.

When I say "viewport", I'm just referring to the region of screen that I'm drawing in, I'm not actually creating view ports with OpenGL - but your reply in point 3 seems to infer that OpenGL can in fact do them. Guess I need to go and look over the API reference to find out how Posted Image

The screenshots are from my clone of a old arcade game called Boulder Dash that I used to play on an Atari 800XL, using some custom graphics I'm currently trying to draw too.

Thanks again for your reply!

Richard Moss