Sign in to follow this  
JohnHurt

another test request (now with edge anti-aliasing)

Recommended Posts

JohnHurt    334
Can people please test my app and see if it works, it will save me a lot of hassle at this early stage! -- It's a sprite engine test. linky (~80k) [EDIT] - Just figured out a way to get the edges of my sprites smooth. [Edited by - JohnHurt on June 30, 2005 10:57:12 AM]

Share this post


Link to post
Share on other sites
whiz_kid    176
Very nice [smile]

Specs:
Athlon XP 3200+
512 mb pc2700
GeForce 5200fx

Average fps: 75

Note: It did crash when I tried to exit the program

Whiz_Kid

Share this post


Link to post
Share on other sites
rKallmeyer    396
Works Good at 75 fps then crashes on exit.

Here is the Log:
[28/6/2005 19:35:28] gtWin32App::Create() - Registered window class.
[28/6/2005 19:35:28] gtWin32App::CreateStandardWindow() - Creating window.
[28/6/2005 19:35:28] gtWin32App::CreateStandardWindow() - Window created.
[28/6/2005 19:35:28] gtWin32App::Create() - SetWindowLong() success.
[28/6/2005 19:35:28] gtWin32App::Create() - App running...
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - Got device context.
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - Got pixel format.
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - Set pixel format.
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - Got rendering context.
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - Activated rendering context.
[28/6/2005 19:35:28] gtGLRenderer::InitDevice() - OpenGL renderer intialised.
[28/6/2005 19:35:28] gtGLTextureManager::AddTGA() - *WARNING* Texture (SMOKE2.tga) not loaded [].
[28/6/2005 19:35:28] gtSceneManager::AddFXFile() - Particle definition file (rain.xml) loaded successfully.
[28/6/2005 19:35:28] gtGLTextureManager::AddTGA() - Texture (sprites.tga, 1) loaded successfully.
[28/6/2005 19:35:28] gtGLTextureManager::AddTGA() - !!!WARNING!!! Texture (sprites.tga) not loaded [duplicate found].
[28/6/2005 19:35:31] gtGLRenderer::Destroy() - Released device and rendering contexts.

Specs:

2.4 GHz Pentium 4
512 MB Ram
GeForce FX 5600

Share this post


Link to post
Share on other sites
Boder    938
Worked well until I tried to exit. Then it crashed pretty hard.

AMD Duron 800 MHz
512 MB RAM
NVIDIA TNT2 Model 64
[28/6/2005 22:45:22] gtWin32App::Create() - Registered window class.
[28/6/2005 22:45:22] gtWin32App::CreateStandardWindow() - Creating window.
[28/6/2005 22:45:22] gtWin32App::CreateStandardWindow() - Window created.
[28/6/2005 22:45:22] gtWin32App::Create() - SetWindowLong() success.
[28/6/2005 22:45:22] gtWin32App::Create() - App running...
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - Got device context.
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - Got pixel format.
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - Set pixel format.
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - Got rendering context.
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - Activated rendering context.
[28/6/2005 22:45:22] gtGLRenderer::InitDevice() - OpenGL renderer intialised.
[28/6/2005 22:45:23] gtGLTextureManager::AddTGA() - *WARNING* Texture (SMOKE2.tga) not loaded [].
[28/6/2005 22:45:23] gtSceneManager::AddFXFile() - Particle definition file (rain.xml) loaded successfully.
[28/6/2005 22:45:23] gtGLTextureManager::AddTGA() - Texture (sprites.tga, 1) loaded successfully.
[28/6/2005 22:45:23] gtGLTextureManager::AddTGA() - !!!WARNING!!! Texture (sprites.tga) not loaded [duplicate found].
[28/6/2005 22:45:57] gtGLRenderer::Destroy() - Released device and rendering contexts.

Share this post


Link to post
Share on other sites
jflanglois    1020
Crashes on exit here to. It crashes in nvoglnt.dll, so it probably has to do with nVidia's implementation of OpenGL and the way you are cleaning up.

Log is as follows:
[28/6/2005 23:00:53] gtWin32App::Create() - Registered window class.
[28/6/2005 23:00:53] gtWin32App::CreateStandardWindow() - Creating window.
[28/6/2005 23:00:53] gtWin32App::CreateStandardWindow() - Window created.
[28/6/2005 23:00:53] gtWin32App::Create() - SetWindowLong() success.
[28/6/2005 23:00:53] gtWin32App::Create() - App running...
[28/6/2005 23:00:53] gtGLRenderer::InitDevice() - Got device context.
[28/6/2005 23:01:01] gtGLRenderer::InitDevice() - Got pixel format.
[28/6/2005 23:01:01] gtGLRenderer::InitDevice() - Set pixel format.
[28/6/2005 23:01:01] gtGLRenderer::InitDevice() - Got rendering context.
[28/6/2005 23:01:01] gtGLRenderer::InitDevice() - Activated rendering context.
[28/6/2005 23:01:01] gtGLRenderer::InitDevice() - OpenGL renderer intialised.
[28/6/2005 23:01:01] gtGLTextureManager::AddTGA() - *WARNING* Texture (SMOKE2.tga) not loaded [].
[28/6/2005 23:01:01] gtSceneManager::AddFXFile() - Particle definition file (rain.xml) loaded successfully.
[28/6/2005 23:01:01] gtGLTextureManager::AddTGA() - Texture (sprites.tga, 1) loaded successfully.
[28/6/2005 23:01:01] gtGLTextureManager::AddTGA() - !!!WARNING!!! Texture (sprites.tga) not loaded [duplicate found].
[28/6/2005 23:01:12] gtGLRenderer::Destroy() - Released device and rendering contexts.



Specs:
Intel Pentium M 750
1GB PC2700 DDRSDRAM
nVidia GeForce 6600 Go 128MB
Windows XP Pro SP2 (+ hotfixes)
Forceware v71.10



jfl.

Share this post


Link to post
Share on other sites
JohnHurt    334
Here's the code I'm using for shuting down:

bool gtGLRenderer::Destroy()
{
tm->DestroyTextures();
SAFE_DELETE(tm);

// Do We Have A Rendering Context?
if ( m_hRC )
{
// Are We Able To Release The DC And RC Contexts?
if ( !wglMakeCurrent(NULL,NULL) )
{
gtLogger::Log("gtGLRenderer::Destroy() - Release Of DC And RC Failed\n");
MessageBox(NULL,"gtGLRenderer::Destroy() - Release Of DC And RC Failed.","SHUTDOWN ERROR",MB_OK | MB_ICONINFORMATION);
}
gtLogger::Log("gtGLRenderer::Destroy() - Released device and rendering contexts.\n");

// Are We Able To Delete The RC?
if ( !wglDeleteContext(m_hRC) )
{
gtLogger::Log("gtGLRenderer::Destroy() - Release Rendering Context Failed\n");
MessageBox(NULL,"gtGLRenderer::Destroy() - Release Rendering Context Failed.","SHUTDOWN ERROR",MB_OK | MB_ICONINFORMATION);
}
m_hRC = NULL; // Set RC To NULL
gtLogger::Log("gtGLRenderer::Destroy() - Rendering context deleted.\n");
}

// Are We Able To Release The DC
if ( m_hDC && !ReleaseDC(m_hWnd, m_hDC) )
{
gtLogger::Log("gtGLRenderer::Destroy() - Release Device Context Failed\n");
MessageBox(NULL,"gtGLRenderer::Destroy() - Release Device Context Failed","SHUTDOWN ERROR",MB_OK | MB_ICONINFORMATION);
m_hDC = NULL; // Set DC To NULL
return false;
}
gtLogger::Log("gtGLRenderer::Destroy() - Deleted device context.\n");

gtLogger::Log("gtGLRenderer::Destroy() - OpenGL renderer shutdown.\n");

return true;
}



The crash seems to happen when the rendering context is deleted, but no error is thrown up. Any ideas?

Share this post


Link to post
Share on other sites
mengha    130
Works fine on college computers... no crash at all.

Intel Pentium 4 2.5Ghz
504MB RAM
Intel 82845G Graphics Chip (Integrated Motherboard Graphics Card)

It gets about 220fps.

Look Nice :)

Share this post


Link to post
Share on other sites
jeroenb    282
Works nice here. Great sprites!

FPS: 320
ATI Mobile X300
Intel Centrino 1600
512 MB ram

EDIT: an no crashes at shutdown

Share this post


Link to post
Share on other sites
JohnHurt    334
Quote:
Original post by DevLiquidKnight
I like the rain. Care to post the rain source?


The rain is a particle system defined in XML using my (semi) flexible particle engine. All I do is place the particle system at the top of the screen and set its width to the screen width, and then turn gravity on.
The code is quite large, but I'd be happy to email it to you. Please note though, that it isn't very optimised at the moment, and the "stretchy" particles (i.e. rain) are just rendered using lines, as I havent got round to figuring out how to use stretched textured quads yet.
I've also written a very basic (and highly buggy) editor for the systems in MFC that you could have a play with if you like.

Share this post


Link to post
Share on other sites
Worked great! I like the sprites, even though they arent yours

[30/6/2005 11:58:52] gtWin32App::Create() - Registered window class.
[30/6/2005 11:58:52] gtWin32App::CreateStandardWindow() - Creating window.
[30/6/2005 11:58:52] gtWin32App::CreateStandardWindow() - Window created.
[30/6/2005 11:58:52] gtWin32App::Create() - SetWindowLong() success.
[30/6/2005 11:58:52] gtWin32App::Create() - App running...
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - Got device context.
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - Got pixel format.
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - Set pixel format.
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - Got rendering context.
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - Activated rendering context.
[30/6/2005 11:58:52] gtGLRenderer::InitDevice() - OpenGL renderer intialised.
[30/6/2005 11:58:52] gtGLTextureManager::AddTGA() - *WARNING* Texture (SMOKE2.tga) not loaded [TGA_FILE_NOT_FOUND].
[30/6/2005 11:58:52] gtSceneManager::AddFXFile() - Particle definition file (rain.xml) loaded successfully.
[30/6/2005 11:58:52] gtGLTextureManager::AddTGA() - Texture (ryu.tga, 1) loaded successfully.
[30/6/2005 11:58:52] gtGLTextureManager::AddTGA() - Texture (dudley.tga, 2) loaded successfully.
[30/6/2005 11:58:59] gtGLRenderer::Destroy() - Released device and rendering contexts.
[30/6/2005 11:58:59] gtGLRenderer::Destroy() - Rendering context deleted.
[30/6/2005 11:58:59] gtGLRenderer::Destroy() - Deleted device context.
[30/6/2005 11:58:59] gtGLRenderer::Destroy() - OpenGL renderer shutdown.
[30/6/2005 11:58:59] gtWin32App::Destroy() - Destroying window.
[30/6/2005 11:58:59] gtWin32App::Destroy() - Window destroyed.


Share this post


Link to post
Share on other sites
JohnHurt    334
Quote:
Original post by ShoeStringGames
Worked great! I like the sprites, even though they arent yours
*** Source Snippet Removed ***


hehe, cheers! no, i think they're from street fighter 3 on the dreamcast if i remember right, got them from here.

Share this post


Link to post
Share on other sites
Sign in to follow this