December 15, 2005
Sebastian Beschke wrote:
> Of course, there is derelict providing bindings to the famous SDL libraries.  Since they lack GUI functions (although there are GUI libs for SDL that you might create bindings for) it probably isn't what you want.

I am actually using derelict.  It is great, has a lot of good bindings in one spot.  So yeah, I pretty much have my API/renderer (SDL/OpenGL) chosen already and am looking for a GUI lib that will work with that.
December 15, 2005
Tom S wrote:
> Tom S wrote:
> 
>> In article <dnqi4p$269s$1@digitaldaemon.com>, Chad J says...
>>
>>> Tom/h3r3tic's GUI - I tried to run the demo (TechDemo #5), but it crashed :/  It gave me the same error that the Mirrors demo gave JJR. Mirrors also crashed for me in the same way.  FYI I am using a Radeon 9500 PRO / 9700 on a Windows XP SP2 system.  I may try running it on another system to try and get it to work.  It sounds very close to what I need.
>>
>>
>>
>> Sorry for that. It happens on most ATI cards. Not entirely my fault. It crashes
>> on DSL initialization when SDL_HWSURFACE is passed to the window's initializer.
>> Not sure why. Try testing it on an nVidia. I'll put an updated executable online
>> today.
> 
> 
> Ok... here's a link (3MB):
> http://158.75.59.9/~h3/download/smallTest.rar
> 
> It's not the same app as in test5.rar nor is it my most recent code. The latest code doesn't work, because of me doing some hack'n'slash on it ;)
> It should work on ATI carts, at least it worked when I tested it :). Oh, and make sure to extract files to a directory without a space in its path. I'll make a workaround later.

Still crashes, unfortunately.  Same error.  Crashes after printing "Creating a Window".  The directory it's under is C:\Loadz\D_Language\heretic\smallTest\  where _ IS an underscore, so no spaces.
December 15, 2005
James Dunne wrote:
> James Dunne wrote:
> 
>> Check out this C version of something close to what you're looking for.  The code is almost guaranteed not to compile as-is, but it is valid code taken straight from a project of mine.  I can provide you the entire project (I've been meaning to release it open-source anyway) soon if you're interested.
>>
>> The main stuff you'll want to check out is in glwindows.c, which has all the OpenGL calls to render the windows, controls, handle clicks, push buttons, call event handlers - everything.  It's not as nice as I would've liked it to be, but it definitely got the job done for my purposes (a map editor which was really quite impressive).
>>
>> It sports a very rudimentary set of controls: button, label, panel, checkbox, radiobutton, and window.  It is all mouse-driven, no keyboard event handler yet since there isn't any control which requires keyboard input.  I meant to add a textbox control in order to get basic keyboard support in...  Also, the code is not dependent on any API for mouse events - there is an 'OnMouseDown' function and an 'OnMouseUp' function which should be called when the mouse click goes down and when the mouse click is released, respectively.
>>
>> The glwindows.h header declares three extern variables which must be defined: 'GUITexture', 'Window', and 'Mouse'.
>>
>> The 'GUITexture' is simply a GLUint which is a texture handle generated from glTexImage2D and the like.  Gen some textures, load em up, and set that ID.
>>
>> The 'Mouse' is a simple struct defining X and Y coords for the mouse cursor and the button status.  These fields are to be set by the host application whenever the appropriate mouse move and click events are received.
>>
>> The code is attached with most of the supporting files.  I'll see what I can do in the mean time about porting it to D; it doesn't look that hard.
>>
>> P.S. - it's "skinnable" in that you can load up different textures to define how the controls and windows appear (see GUIwood.tga vs. GUIstone.tga).  Hope this helps.
>>
>> P.P.S. - the image files will be attached in a reply-to post.
> 
> As promised, the related image files.

Cool thanks.  Keep me posted on how the C -> D conversion goes.
December 15, 2005
Chad J wrote:
> Tom S wrote:
>> Ok... here's a link (3MB):
>> http://158.75.59.9/~h3/download/smallTest.rar
>>
>> It's not the same app as in test5.rar nor is it my most recent code. The latest code doesn't work, because of me doing some hack'n'slash on it ;)
>> It should work on ATI carts, at least it worked when I tested it :). Oh, and make sure to extract files to a directory without a space in its path. I'll make a workaround later.
> 
> 
> Still crashes, unfortunately.  Same error.  Crashes after printing "Creating a Window".  The directory it's under is C:\Loadz\D_Language\heretic\smallTest\  where _ IS an underscore, so no spaces.

Damn. I thought this version worked with ATIs :( If I only had one at home... This must still be a problem with SDL vs ATI drivers. It worked on ALL nVidia cards I could test it with, from TNT2 to GF6800.
You might try reinstalling your drivers or getting a more recent SDL version (1.2.7 is packaged with the demo - the most recent is 1.2.9).
Sorry for it :/ BTW the space-in-path problem is also only indirectly related to my engine. I'm using DMD for shader compilation and IIRC dmd doesn't like to be in a path with spaces. Or was it about build... I dunno. Nevertheless it would complain about being unable to compile a shader if that was the issue. Now it seems as SDL is still causing me trouble.
Can anybody else test it on an ATI card ?


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
December 16, 2005
>> Still crashes, unfortunately.  Same error.  Crashes after printing
>> "Creating a Window".  The directory it's under is
>> C:\Loadz\D_Language\heretic\smallTest\  where _ IS an underscore, so
>> no spaces.
>> 
> Damn. I thought this version worked with ATIs :( If I only had one at
> home... This must still be a problem with SDL vs ATI drivers. It
> worked
> on ALL nVidia cards I could test it with, from TNT2 to GF6800.
> You might try reinstalling your drivers or getting a more recent SDL
> version (1.2.7 is packaged with the demo - the most recent is 1.2.9).
> Sorry for it :/ BTW the space-in-path problem is also only indirectly
> related to my engine. I'm using DMD for shader compilation and IIRC
> dmd
> doesn't like to be in a path with spaces. Or was it about build... I
> dunno. Nevertheless it would complain about being unable to compile a
> shader if that was the issue. Now it seems as SDL is still causing me
> trouble.
> Can anybody else test it on an ATI card ?
> Tomasz Stachowiak  /+ a.k.a. h3r3tic +/

I tried it on my 9800 pro and it crashed. Have a look at my post about the 5 games written in D (a reply to Chad's original post). It has an SDL interface that works great on my card. Hopefully it works just as well on nVidia cards. 


Chris


December 16, 2005
>> Damn. I thought this version worked with ATIs :( If I only had one at
>> home... This must still be a problem with SDL vs ATI drivers. It
>> worked
>> on ALL nVidia cards I could test it with, from TNT2 to GF6800.
>> You might try reinstalling your drivers or getting a more recent SDL
>> version (1.2.7 is packaged with the demo - the most recent is 1.2.9).
>> Sorry for it :/ BTW the space-in-path problem is also only indirectly
>> related to my engine. I'm using DMD for shader compilation and IIRC
>> dmd
>> doesn't like to be in a path with spaces. Or was it about build... I
>> dunno. Nevertheless it would complain about being unable to compile a
>> shader if that was the issue. Now it seems as SDL is still causing me
>> trouble.
>> Can anybody else test it on an ATI card ?
>> Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
> I tried it on my 9800 pro and it crashed. Have a look at my post about
> the 5 games written in D (a reply to Chad's original post). It has an
> SDL interface that works great on my card. Hopefully it works just as
> well on nVidia cards.

I've been trying to get it to run for a while now, I can't figure it out. let me know if you want me to test it again. I'm interrested in this as well....

Chris


December 16, 2005
Tom S wrote:
> Chad J wrote:
> 
>> Tom S wrote:
>>
>>> Ok... here's a link (3MB):
>>> http://158.75.59.9/~h3/download/smallTest.rar
>>>
>>> It's not the same app as in test5.rar nor is it my most recent code. The latest code doesn't work, because of me doing some hack'n'slash on it ;)
>>> It should work on ATI carts, at least it worked when I tested it :). Oh, and make sure to extract files to a directory without a space in its path. I'll make a workaround later.
>>
>>
>>
>> Still crashes, unfortunately.  Same error.  Crashes after printing "Creating a Window".  The directory it's under is C:\Loadz\D_Language\heretic\smallTest\  where _ IS an underscore, so no spaces.
> 
> 
> Damn. I thought this version worked with ATIs :( If I only had one at home... This must still be a problem with SDL vs ATI drivers. It worked on ALL nVidia cards I could test it with, from TNT2 to GF6800.
> You might try reinstalling your drivers or getting a more recent SDL version (1.2.7 is packaged with the demo - the most recent is 1.2.9).
> Sorry for it :/ BTW the space-in-path problem is also only indirectly related to my engine. I'm using DMD for shader compilation and IIRC dmd doesn't like to be in a path with spaces. Or was it about build... I dunno. Nevertheless it would complain about being unable to compile a shader if that was the issue. Now it seems as SDL is still causing me trouble.
> Can anybody else test it on an ATI card ?
> 
> 

OK I ran techdemo5, publicRelease (mirror one), and smallTest on another computer.  The other comp is an ATI All-in-wonder 9600.  Techdemo and publicRelease seemed to run fine.  smallTest crashed however, and the error is a different one.  It went like this:
...
Renderer initialized
compiling shaders\simpleHFileter.shader
retcode: 1

********** Heresy Engine Error Handler **********

*Exception caught (CompileException) : Compilation error. See shaders\simpleHFilter.compile.log for details

Hey if you happen to use AIM or ICQ instant messagers, you could message me when I'm around and whenever you have a new compilation that needs testing.  As long as I'm not too busy or afk I can give it a whirl.  My AIM screen name is gamerChad and my ICQ# is 48999835.

The GUI looks nice, and I am really liking what I see of the heresy engine.  Sounds like it's very open source too.  Have you decided on a license for it?  If so, which one?
December 16, 2005
Chris Lajoie wrote:
> I tried it on my 9800 pro and it crashed. Have a look at my post about the 5 games written in D (a reply to Chad's original post). It has an SDL interface that works great on my card. Hopefully it works just as well on nVidia cards.
> 
> Chris

Thanks for the info. I'll take a look at these games' source (I hope they are open source)


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
December 16, 2005
Chad J wrote:
> OK I ran techdemo5, publicRelease (mirror one), and smallTest on another computer.  The other comp is an ATI All-in-wonder 9600.  Techdemo and publicRelease seemed to run fine.  smallTest crashed however, and the error is a different one.  It went like this:
> ...
> Renderer initialized
> compiling shaders\simpleHFileter.shader
> retcode: 1
> 
> ********** Heresy Engine Error Handler **********
> 
> *Exception caught (CompileException) : Compilation error. See shaders\simpleHFilter.compile.log for details

Just check the log file. It will probbly complain about being unable to find a file. If that's true, then you've probably extracted the demo to a directory whose path contains a space. I'm running DMD from within the engine in order to dynamically compile shaders and either DMD doesn't like spaces or I'm doing something wrong with it ;)



> Hey if you happen to use AIM or ICQ instant messagers, you could message me when I'm around and whenever you have a new compilation that needs testing.  As long as I'm not too busy or afk I can give it a whirl.  My AIM screen name is gamerChad and my ICQ# is 48999835.

My ICQ == 315344462
Thanks for offering help :)


> The GUI looks nice, and I am really liking what I see of the heresy engine.  Sounds like it's very open source too.  Have you decided on a license for it?  If so, which one?

Not sure about it yet. I've heard the Zlib is nice. Any suggestions ?


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------

Tomasz Stachowiak  /+ a.k.a. h3r3tic +/
December 16, 2005
> Just check the log file. It will probbly complain about being unable to find a file. If that's true, then you've probably extracted the demo to a directory whose path contains a space. I'm running DMD from within the engine in order to dynamically compile shaders and either DMD doesn't like spaces or I'm doing something wrong with it ;)

Hehe yep that's it.  Got me :)  Well, I did away with the spaces and got another error for you:

retCode: 0
~Camera
Scene Loaded
CPU Speed: 3.00 GHz
calling shader.fillCache (obj-c54a00, params=c58a00)
Access Violation
filling the index cache
Exception caught while executing a pipeline node: DrawOp

********** Heresy Engine Error Handler **********

*Exception caught (Exception) : Access Violation

> Not sure about it yet. I've heard the Zlib is nice. Any suggestions ?

Nope sorry.  I'm still pretty new to this, so I only know it from the consumer point of view - get license name, look it up, and try for an explanation or else read the legalese.