PDA

View Full Version : Check my demo : realtime hatching



Arath
09-20-2002, 11:12 AM
Hi,

I'm proud to present you my first attempt to make a realtime hatching rendering, you can find my demo here : http://arath.free.fr/code_en.html . Of course any advices, or comments are welcome!

Arath

PS : tell me if it runs on ATI based card, please.

NitroGL
09-20-2002, 11:19 AM
Works just fine on my 9700.

pleopard
09-20-2002, 04:25 PM
Ohhh sooo kewl http://www.opengl.org/discussion_boards/ubb/smile.gif

AMD Athalon 1900+ @ 1.6Ghz / Asus A7V266-E / 266Mhs FSB / DDR 512Mb RAM / GeForce3 Ti500 full tweaks ...

FRAPS reports 308 FPS average ... nice http://www.opengl.org/discussion_boards/ubb/smile.gif

Humus
09-20-2002, 09:23 PM
Crashes with Radeon 8500 :p

Bruno
09-21-2002, 12:56 AM
crashes on my GF3

Humus
09-21-2002, 02:15 AM
Are you sure you're properly checking for extensions? I was able to get it running, although very slow (probably software), by changing to another driver.

kehziah
09-21-2002, 02:20 AM
Just upgraded to Catalyst 2.3 on my R8500 W2K system. glGetString(GL_VERSION) returns 1.3.3302
The demo is said to require OpenGL 1.4
So obviously it crashes (well, Arath, you could check at least for GL version and display a nice Dialog Box instead of throwing a null pointer exception http://www.opengl.org/discussion_boards/ubb/wink.gif)

Arath
09-21-2002, 03:40 AM
I am sorry that the demo crashes, to answer you, my engine checks openGL extension then stop the program if there is one missing via an assert (of course it doesn't in release, that's why the demo crashes on some hardware). I uploaded a new version that throw a messagebox to warn you, and save the error in log file. I explain that the demo requires extensions gl_arb_vertex_program , 3d texture, gl_arb_texure_combine, so you must have last driver to run it (for nvidia stuff at least the 40.41). Again, I am sorry for my demo crashing without a message, I just love assert and forgot to stop program from running in release mode. By the way, if you haven't a openGL 1.4 card, here is a big screenshot (but the lights doesn't move here of course ;-) : http://arath.free.fr/projets/space_banana_2/plane.jpg

Arath

kehziah
09-21-2002, 04:45 AM
Ok, that clears things up a little bit. ARB_vertex_program is not supported, that's why it doesnt work; too bad... Screenshots look great though http://www.opengl.org/discussion_boards/ubb/wink.gif
BTW, the messagebox shows correctly (even though I cant click on the OK button because you hide the cursor (using 'Enter' key works fine)) but after I close it, the program still crashes http://www.opengl.org/discussion_boards/ubb/biggrin.gif (ok, error handling is not the interesting part when coding a demo http://www.opengl.org/discussion_boards/ubb/wink.gif ) Anyway, at least it doesn't crash the whole system, thats a good point http://www.opengl.org/discussion_boards/ubb/wink.gif. I look forward to getting newer drivers/hardware/(both) to get vp and fp running (Humus, you got beta drivers that has vp support?)

Humus
09-21-2002, 07:35 AM
Originally posted by kehziah:
Humus, you got beta drivers that has vp support?

Yup.

Roadkill
09-23-2002, 03:03 PM
How do i fix this error?

> error when compilating vertex program 'vp\TAM-3dtex-1dir.vp' at character 1064
'al = vertex.normal;
' : Error on line 49: unrecognised instruction (hint: 'ENDXGwo4Bc')

-Never mind, i Updated my drivers and the program works perfectly on my 9700
FPS : 120.536585

[This message has been edited by Roadkill (edited 09-23-2002).]