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 - gamecoder.nz

Pages: [1]
1
Graphics / Re: Loading large textures
« on: October 22, 2020, 01:00:09 am »
I just tried a 2048x2048 texture and there was no improvement.  I did consider loading the textures when the game starts but there are seasons in the game which require different textures so that's four different map textures which is a lot of textures to keep in memory.  I want a system where it only loads the textures needed as the player walks.

2
Graphics / Loading large textures
« on: October 21, 2020, 03:18:54 am »
Hi everyone,

So I have a large map background which I have divided up into 3200x3200 images.  What I want to do is load these textures at runtime as the player moves.

I have tried to load them in threads but doing loadFromFile causes a lag.  Is there a better way to do this?

3
Graphics / Re: I cant build SFML in visual studio code 2019
« on: April 24, 2020, 10:36:13 am »
Why are you trying to build it?  Why use visual studio code?  Why not Visual Studio?

4
Graphics / Help with Day/Night Cycle
« on: April 24, 2020, 09:51:19 am »
What I have done so far is to create a RenderTexture and colored it black.  Then I have drawn the attached white circle onto it.  Then in the game I drew it onto the main RenderTexture with sf::BlendMultiply.    The result is attached and it is half way to what I want.  I want to be able to turn the opacity of the black down so I can see everything else but I don't know how to do that.  I tried using a shader but with no success.


Pages: [1]