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 - smguyk

Pages: [1] 2 3 ... 6
1
SFML projects / Re: Let There Be Light 2
« on: October 29, 2016, 08:36:46 pm »
Cmdu76 I'm trying to use your version but I'm getting these errors:

(click to show/hide)

What do I have to do? :/

I also tried the original version but I can't compile that one either because make_unique and other c++14 stuff isn't supported on my compiler

edit: yeah it was due to old files it's fixed now thank you!

2
Graphics / Is there a way to improve sf::Text fullscreen scaling?
« on: November 28, 2015, 02:31:11 am »
My pxel art game is 1280x720 and when I launch it in fullscreen mode (1920x1080) everything scales nicely, except my sf::Texts that become noticably blurry.

I've used dozens of different font files but the blurriness is always there.

The thing is that when I use sprites that have the fons as a texture they scale perfectly and are sharp but copying all letters and numbers from the font file would be a lot of work...

3
Window / Re: How to "unfreeze" a window while dragging it
« on: November 22, 2015, 07:44:04 pm »
Okay, thanks!

4
Window / How to "unfreeze" a window while dragging it
« on: November 22, 2015, 06:44:46 pm »
When clicking the window's title bar and holding down the mouse button (for example to drag the window around), it "freezes". Is there a fix/workaround for that?

I know that a lot of applications freeze too, but only for a fraction of a second, and then unfreeze even if the mouse button is still held down.

5
General / How to determine system requirements for my game?
« on: November 16, 2015, 07:43:49 pm »
Hard drive space is easy to determine. For RAM usage I use the task manager which in my experience has good enough accuracy.

But what about CPU requirements? And GPU? Is the graphics card even used by my game? What about the sound card etc.?

Obviously I could let other people test the game or use different machines, but is there another way that I can use myself to get a rough estimate on what is required for the game to run?

So basically I need info about this stuff (minimum requirements):

OS, processor, drive space, RAM, sound card, directx/opengl version, graphics

6
General / Maximum size of VertexArray
« on: September 15, 2015, 02:53:57 pm »
I'm working on a game where I use the tilemap class from SFML's tutorial, and I was wondering if it's a bad idea to make the map really huge.

By huge I mean dimensions of 80,000x800 (40,000 quads at 40x40 each). Willl that be a problem?

Here's the thing: Due to how my game works, I have to have one big tilemap and can't split it up into smaller parts, or even use e.g. a vector of tiles to make rendering easier.

So if I draw the big tilemap, only whatever can be displayed in the window's size will be rendered, and the rest automatically culled anyway, right? I'm afraid the answer is going to be no...

Yeah.. this is giving me a headache

8
General / Re: Change hardware cursor?
« on: July 19, 2015, 10:25:07 am »
Okay, thanks!

9
General / Change hardware cursor?
« on: July 19, 2015, 10:16:40 am »
I want to have a custom mouse cursor in my game, and instead of hiding the cursor and drawing a sprite at its position I want to change the hardware cursor.

Something like this: https://love2d.org/wiki/Cursor

Is that possible?

10
I upgraded from 2.2 to 2.3 and now I'm getting this console output:

OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available

What does it mean?

Should I be concerned, and how do I fix it? Thanks!

11
General / Re: Can't build my project. I'm getting these linker errors:
« on: April 20, 2015, 02:30:35 pm »
Okay that's embarrassing. I knew it had something to do with the audio :/

Thank you!

12
General / Can't build my project. I'm getting these linker errors:
« on: April 20, 2015, 02:25:55 pm »
Code: [Select]
1>------ Build started: Project: game, Configuration: Debug Win32 ------
1>sfml-audio-s-d.lib(SoundBuffer.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGenBuffers referenced in function "public: __thiscall sf::SoundBuffer::SoundBuffer(void)" (??0SoundBuffer@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGenBuffers
1>sfml-audio-s-d.lib(SoundBuffer.cpp.obj) : error LNK2019: unresolved external symbol __imp__alDeleteBuffers referenced in function "public: __thiscall sf::SoundBuffer::~SoundBuffer(void)" (??1SoundBuffer@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alDeleteBuffers
1>sfml-audio-s-d.lib(SoundBuffer.cpp.obj) : error LNK2019: unresolved external symbol __imp__alBufferData referenced in function "private: bool __thiscall sf::SoundBuffer::update(unsigned int,unsigned int)" (?update@SoundBuffer@sf@@AAE_NII@Z)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alBufferData
1>sfml-audio-s-d.lib(SoundBuffer.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetBufferi referenced in function "public: unsigned int __thiscall sf::SoundBuffer::getSampleRate(void)const " (?getSampleRate@SoundBuffer@sf@@QBEIXZ)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGetBufferi
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGenSources referenced in function "public: __thiscall sf::SoundSource::SoundSource(class sf::SoundSource const &)" (??0SoundSource@sf@@QAE@ABV01@@Z)
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alDeleteSources referenced in function "public: virtual __thiscall sf::SoundSource::~SoundSource(void)" (??1SoundSource@sf@@UAE@XZ)
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourcef referenced in function "public: void __thiscall sf::SoundSource::setPitch(float)" (?setPitch@SoundSource@sf@@QAEXM@Z)
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourcef
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSource3f referenced in function "public: void __thiscall sf::SoundSource::setPosition(float,float,float)" (?setPosition@SoundSource@sf@@QAEXMMM@Z)
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourcei referenced in function "public: __thiscall sf::SoundSource::SoundSource(class sf::SoundSource const &)" (??0SoundSource@sf@@QAE@ABV01@@Z)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourcei
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourcei
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetSourcef referenced in function "public: float __thiscall sf::SoundSource::getPitch(void)const " (?getPitch@SoundSource@sf@@QBEMXZ)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGetSourcef
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGetSourcef
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetSource3f referenced in function "public: class sf::Vector3<float> __thiscall sf::SoundSource::getPosition(void)const " (?getPosition@SoundSource@sf@@QBE?AV?$Vector3@M@2@XZ)
1>sfml-audio-s-d.lib(SoundSource.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetSourcei referenced in function "public: bool __thiscall sf::SoundSource::isRelativeToListener(void)const " (?isRelativeToListener@SoundSource@sf@@QBE_NXZ)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGetSourcei
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alGetSourcei
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourcePlay referenced in function "public: void __thiscall sf::SoundStream::play(void)" (?play@SoundStream@sf@@QAEXXZ)
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourcePlay
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourceStop referenced in function "private: void __thiscall sf::SoundStream::streamData(void)" (?streamData@SoundStream@sf@@AAEXXZ)
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourceStop
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourcePause referenced in function "public: void __thiscall sf::SoundStream::pause(void)" (?pause@SoundStream@sf@@QAEXXZ)
1>sfml-audio-s-d.lib(Sound.cpp.obj) : error LNK2001: unresolved external symbol __imp__alSourcePause
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourceQueueBuffers referenced in function "private: bool __thiscall sf::SoundStream::fillAndPushBuffer(unsigned int)" (?fillAndPushBuffer@SoundStream@sf@@AAE_NI@Z)
1>sfml-audio-s-d.lib(SoundStream.cpp.obj) : error LNK2019: unresolved external symbol __imp__alSourceUnqueueBuffers referenced in function "private: void __thiscall sf::SoundStream::streamData(void)" (?streamData@SoundStream@sf@@AAEXXZ)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_open referenced in function "public: bool __thiscall sf::priv::SoundFile::openRead(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?openRead@SoundFile@priv@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_open_virtual referenced in function "public: bool __thiscall sf::priv::SoundFile::openRead(void const *,unsigned int)" (?openRead@SoundFile@priv@sf@@QAE_NPBXI@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_strerror referenced in function "public: bool __thiscall sf::priv::SoundFile::openRead(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?openRead@SoundFile@priv@sf@@QAE_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_seek referenced in function "public: void __thiscall sf::priv::SoundFile::seek(class sf::Time)" (?seek@SoundFile@priv@sf@@QAEXVTime@3@@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_read_short referenced in function "public: unsigned int __thiscall sf::priv::SoundFile::read(short *,unsigned int)" (?read@SoundFile@priv@sf@@QAEIPAFI@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_write_short referenced in function "public: void __thiscall sf::priv::SoundFile::write(short const *,unsigned int)" (?write@SoundFile@priv@sf@@QAEXPBFI@Z)
1>sfml-audio-s-d.lib(SoundFile.cpp.obj) : error LNK2019: unresolved external symbol _sf_close referenced in function "public: __thiscall sf::priv::SoundFile::~SoundFile(void)" (??1SoundFile@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alIsExtensionPresent referenced in function "public: static bool __cdecl sf::priv::AudioDevice::isExtensionSupported(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?isExtensionSupported@AudioDevice@priv@sf@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetEnumValue referenced in function "public: static int __cdecl sf::priv::AudioDevice::getFormatFromChannelCount(unsigned int)" (?getFormatFromChannelCount@AudioDevice@priv@sf@@SAHI@Z)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcCreateContext referenced in function "public: __thiscall sf::priv::AudioDevice::AudioDevice(void)" (??0AudioDevice@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcMakeContextCurrent referenced in function "public: __thiscall sf::priv::AudioDevice::AudioDevice(void)" (??0AudioDevice@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcDestroyContext referenced in function "public: __thiscall sf::priv::AudioDevice::~AudioDevice(void)" (??1AudioDevice@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcOpenDevice referenced in function "public: __thiscall sf::priv::AudioDevice::AudioDevice(void)" (??0AudioDevice@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcCloseDevice referenced in function "public: __thiscall sf::priv::AudioDevice::~AudioDevice(void)" (??1AudioDevice@priv@sf@@QAE@XZ)
1>sfml-audio-s-d.lib(AudioDevice.cpp.obj) : error LNK2019: unresolved external symbol __imp__alcIsExtensionPresent referenced in function "public: static bool __cdecl sf::priv::AudioDevice::isExtensionSupported(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?isExtensionSupported@AudioDevice@priv@sf@@SA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>sfml-audio-s-d.lib(ALCheck.cpp.obj) : error LNK2019: unresolved external symbol __imp__alGetError referenced in function "void __cdecl sf::priv::alCheckError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned int)" (?alCheckError@priv@sf@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@Z)
1>C:\Users\admin\Documents\Visual Studio 2012\Projects\game\Debug\game.exe : fatal error LNK1120: 33 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I get the same error for the release version. I don't understand what's wrong. I use the same settings I used in previous completed projects...

Linker dependencies are

Code: [Select]
sfml-audio-s-d.lib
sfml-graphics-s-d.lib
sfml-main-d.lib
sfml-system-s-d.lib
sfml-window-s-d.lib
freetype.lib
gdi32.lib
glew.lib
jpeg.lib
opengl32.lib
winmm.lib

for debug and

Code: [Select]
sfml-audio-s.lib
sfml-graphics-s.lib
sfml-main.lib
sfml-system-s.lib
sfml-window-s.lib
freetype.lib
gdi32.lib
glew.lib
jpeg.lib
opengl32.lib
winmm.lib

for release.

Can someone help me please?

13
General / Re: Newbie Time-Based Movement Question
« on: April 18, 2015, 02:12:28 pm »
1. You are using Event::EventType::KeyPressed and the events will only fire when they are polled. For real time input you should be using sf::Keyboard::isKeyPressed

2. Move your whole while(window.pollEvent(ev)) loop out of the while(timeSinceLastUpdate > TimePerFrame) loop. Only physics updates, real time input handling etc. should be in that one.. not events

14
Graphics / Re: How to draw a trail? sf::VertexArray?
« on: January 19, 2015, 05:05:40 pm »
Thanks, that's exactly what I'm looking for.

I'll try to implement it now :)

15
Graphics / How to draw a trail? sf::VertexArray?
« on: January 19, 2015, 04:11:24 pm »
Say I have an object and whenever it moves I want a continuous trail to appear behind it. The trail should never disappear but rather be persistent.

How would I draw such a trail? I thought about using sf::VertexArray and use lines and always append points or lines based on the distance moved...

Then I read the documentation and it says points and lines can only be 1 pixel thick, but I need the trail thickness to be bigger than 1 pixel (customizable).

What sf::PrimitiveType should I use, and is a vertex array even the right choice to solve this problem?

I also thought about using a vector and add rectangles but that doesn't seem as good, plus the trail generation should be smooth.

Edit:

sf::VertexArray vertices;
vertices.setPrimitiveType(sf::PrimitiveType::LinesStrip);
// dynamically append...
vertices.append(sf::Vertex(sf::Vector2f(10.0f, 10.0f)));
vertices.append(sf::Vertex(sf::Vector2f(20.0f, 20.0f)));
vertices.append(sf::Vertex(sf::Vector2f(30.0f, 20.0f)));
vertices.append(sf::Vertex(sf::Vector2f(40.0f, 30.0f)));
// ...
window->draw(vertices);

seems to be pretty good, except the line's thickness is only 1 pixel

Pages: [1] 2 3 ... 6