Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  LWJGL 0.5 Released  (Read 8532 times)
0 Members and 1 Guest are viewing this topic.
Offline cfmdobbie

Senior Member




Who, me?


« Reply #30 - Posted 2003-03-17 17:25:53 »

Quote
HAHA! <-- the evil kind


Ah, that'll be a "Muhaha" then! Grin


Yeah, I can't move the window around either.  But then again I don't have a mouse cursor when the window is focused, so how would I do so anyway? Huh

Hellomynameis Charlie Dobbie.
Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #31 - Posted 2003-03-17 17:31:22 »

Quote
Yeah, I can't move the window around either.  But then again I don't have a mouse cursor when the window is focused, so how would I do so anyway?

I already fixed it, and committed it...

Since the window steals the cursor (as it should do) - you would have to alt+tab to loose focus, and you can then hold and drag the window. As soon as you let go, it will steal back the cursor - like any other app.

Offline alexz

Senior Newbie




Java games rock!


« Reply #32 - Posted 2003-03-17 19:36:16 »

Quote
And I think his wrong, the framebuffer alpha is exactly used to blend the incoming pixel with the one already stored in the framebuffer. If not for blending, what's the use for alpha in the pixel format of the framebuffer?

- elias


I think if there is no alpha channel in the framebuffer the destination alpha is always 1 in the blending equations (BTW for widely used additive blending only incoming alpha counts).

And why do you need framebuffer with alpha channel? To blend it with underlaying windows (the original purpose for this, which came from SGI stations, IMO)?
For the gaming rendering to a texture with alpha channel is enough (to generate procedural fire texture, for instance)... That's why framebuffer with alpha channel is a rare thing for the modern game-oriented cards... or am I mistaken?  Cool
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #33 - Posted 2003-03-17 20:45:36 »

Using alpha in the framebuffer is a rare specialist case. I used it in the terrain demo to do some clever blending tricks. You basically don't need it for 99% of anything you do and you can't have it on 16 bit colour modes anyway in any cards available today, so it can have a bit of an impact on performance.

Cas Smiley

Offline elias

Senior Member





« Reply #34 - Posted 2003-03-18 06:14:31 »

Well then it makes much more sense that cfmdobbie don't have alpha on his card. I simply assumed that alpha bits were required to get any meaning from the blending equations.

- elias

Offline Micke

Senior Newbie




Yada-yada


« Reply #35 - Posted 2003-03-18 06:29:12 »

Matzon; I guess the fixes you made aren't in the 0.5 release? So in order for me to get them (I'm as lazy as they come) I'll need to download some files specifically and recompile? (I know jack-shyt about CVS, apart from being this lazy) My co-developer's computer (W2K, Matrox G200) freezes every now and then when he's LWJGLing, and I figured this fix just might easy some of his rear entry pains... So! What do I do to get the latest?

/M
Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #36 - Posted 2003-03-18 07:39:50 »

Quote
I guess the fixes you made aren't in the 0.5 release?

correct, however we will most likely do a 0.5.1 release soon

Quote
So in order for me to get them (I'm as lazy as they come) I'll need to download some files specifically and recompile?

You need to download the source archive, get the latest org_lwjgl_display.cpp from CVS, setup a project to compile the files - all in all not 1 minute work - might want to wait for 0.5.1.

Quote
My co-developer's computer (W2K, Matrox G200) freezes every now and then when he's LWJGLing, and I figured this fix just might easy some of his rear entry pains...

Well Matrox isn't know for the best OGL support... but I really don't know why he is getting freezes (Garbage Collection?)


Offline starlord

Junior Member





« Reply #37 - Posted 2003-03-18 08:22:35 »

i have linux box with c/c++ compiler can i do
cross-platform build to windows with it?
i hate installing visual studio again and possibly download service packs
Offline elias

Senior Member





« Reply #38 - Posted 2003-03-18 08:36:38 »

I don't think that's possible - and even if it is I'd reckon it's much more painful than installing vs and service packs.

Btw, remember to install the latest SDK from microsoft, or else some of the lwjgl files won't compile! At least, that's what happened to me with visual studio 6 (probably not a problem on the .net version).

- elias

Offline cfmdobbie

Senior Member




Who, me?


« Reply #39 - Posted 2003-03-18 10:16:02 »

Quote
Well then it makes much more sense that cfmdobbie don't have alpha on his card. I simply assumed that alpha bits were required to get any meaning from the blending equations.


Yeah, that was my assumption too.  The reality (as Alex says) is that alpha bits requested when opening an OpenGL rendering context are only requesting alpha bits on the display surface itself.

I guess the side effect of this is that I won't be able to do things like pull RGBA data from the framebuffer with gl.readPixels - there's no transparency data there.

Hellomynameis Charlie Dobbie.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Micke

Senior Newbie




Yada-yada


« Reply #40 - Posted 2003-03-18 12:07:17 »

I think I'll just wait for 0.5.1 (Since I'm not the one having the problem ;-). And I wasn't very clear about the freezes - they're of the kind "I wouldn't know my computer was on if it wasn't for the noise and the power led". And yes, the Matrox drivers seem to be somewhere between totally useless and quite bad.

/M
Offline alexz

Senior Newbie




Java games rock!


« Reply #41 - Posted 2003-03-18 20:21:32 »

Quote

I guess the side effect of this is that I won't be able to do things like pull RGBA data from the framebuffer with gl.readPixels - there's no transparency data there.


I believe that you are able to get RGBA from RGB framebuffer (gl.readPixels, gl.copyTexImage2D, gl.copyTexSubImage2D) but you're right: the pixels are opaque. To do the trick you need rendering to texture...  Cool

Is it implemented in LWJGL 0.5 (I have not checked yet)?
Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #42 - Posted 2003-03-18 22:13:48 »

I'm reasonably certain that render-to-texture won't allow you to get framebuffer/destination alpha if its not avalible normally. Regardless of that, render-to-texture should be possible with LWJGL, but its a real pain even in 'normal' openGL, i gave up after a while and resorted to using gl.copyTexSubImage from the framebuffer instead.

Theres rumour that theres some ARB extensions in the works to standardise render to texture, but they could be a while (although the new vertex buffer extension seem to have just appeared Grin )

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline elias

Senior Member





« Reply #43 - Posted 2003-03-19 05:04:56 »

Quote

(although the new vertex buffer extension seem to have just appeared Grin )


You don't mean a standard way to do what NV_vertex_array_range, does, do you? If so, please link me :-) I really hate that ati and nvidia does the same in two completely different ways...

- elias

Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #44 - Posted 2003-03-19 07:10:37 »

Why yes i do Smiley

http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/009033.html

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #45 - Posted 2003-03-23 01:14:16 »

Okay folks,  the Mac port is being worked on but is currently moving very slowly as I'm wrapped up with CNN stuff. As soon as things calm down a bit, I will be able to give more information about status.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #46 - Posted 2003-03-23 09:23:40 »

As soon as things calm down a bit!!!
Our respective idiots-in-charge have started a war!
Ho hum.

Cas Smiley

Offline zparticle

Senior Member




Thick As A Brick


« Reply #47 - Posted 2003-03-31 16:29:15 »

I'm trying to run the examples and everyone of them gives me an error similar to the one below. The machine I'm trying it on seems to only support 16 and 32 bit modes. Anyway I can get around this?

java.lang.Exception: Problem starting loop
       at BaseWindow.start(Unknown Source)
       at MovingStarBitmaps.main(Unknown Source)
Caused by: java.lang.Exception: Problem initialising Lesson
       at BaseWindow.createGLWindow(Unknown Source)
       ... 2 more
Caused by: java.lang.Exception: Failed to set display mode to 640 x 480 x 24 @72Hz 8bit alpha, 24bit depth, 8bit stencil

       at org.lwjgl.Display.create(Unknown Source)
       ... 3 more

Offline elias

Senior Member





« Reply #48 - Posted 2003-03-31 17:45:15 »

Some display mode fixes went into lwjgl 0.6 - you might want to wait for it. You aren't by any chance use win9x?

- elias

Offline zparticle

Senior Member




Thick As A Brick


« Reply #49 - Posted 2003-03-31 17:52:10 »

nope all of the systems I have access to are Win2K

Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #50 - Posted 2003-03-31 19:49:57 »

zp, hack out the LWJGL classes from A.F. and use my .dll if you want most of 0.6.

Cas Smiley

Offline zparticle

Senior Member




Thick As A Brick


« Reply #51 - Posted 2003-04-01 15:03:38 »

Okay I got it to run on my home machine, so that is good. However I am unable to locate the source code for the examples. I downloaded:

lwjgl-docs-0.5.zip
lwjgl-media.zip
lwjgl-source-0.5.zip
lwjgl-win32-0.5.zip

I'm I just blind? Where are the example .java files? Also are the examples supposed to be in windowed mode?

Offline Matzon

JGO Knight


Medals: 19
Projects: 2


I'm gonna wring your pants!


« Reply #52 - Posted 2003-04-01 16:00:34 »

Quote
However I am unable to locate the source code for the examples

Argh - apparently the src drop didn't include the examples dir :/ - I'll fix this later tonight.

Until then go to chmans excellent site:
http://chman-area.tuxfamily.org/

Offline zparticle

Senior Member




Thick As A Brick


« Reply #53 - Posted 2003-04-01 17:04:02 »

Thanks for the pointer, that site will help a lot.

Offline whome

Junior Member




Carte Noir Java


« Reply #54 - Posted 2003-04-12 10:52:56 »

What is A.F? Can I get hacked classes and .dll, please?

I have Matrox Millennium G400 and it tends to have problems with Java-based Opengl libraries. I could try a hacked version of v0.5.

I always get "stencil depth" error:
This application requires a greater stencil depth.
java.lang.Exception: Problem starting loop
at BaseWindow.start(Unknown Source)
at Blending.main(Unknown Source)
Caused by: java.lang.Exception: Problem initialising Lesson
       at BaseWindow.createGLWindow(Unknown Source)
       ... 2 more
Caused by: java.lang.Exception: Failed to set display mode to 640 x 480 x 32 @75
Hz 0bit alpha, 0bit depth, 8bit stencil
       at org.lwjgl.Display.create(Unknown Source)
       ... 3 more

Quote
zp, hack out the LWJGL classes from A.F. and use my .dll if you want most of 0.6.
Cas  
Offline zparticle

Senior Member




Thick As A Brick


« Reply #55 - Posted 2003-04-12 16:11:35 »

A.F. == Alien Flux (a game by princec) look in the Your Games Here section for the latest Alpha release.

Offline javatypo

Junior Member





« Reply #56 - Posted 2003-04-12 18:55:47 »

when is 0.6 coming out anyway?
Offline elias

Senior Member





« Reply #57 - Posted 2003-04-12 19:16:18 »

Real Soon Now (tm) (I hope)

- elias

Offline javatypo

Junior Member





« Reply #58 - Posted 2003-04-12 19:47:54 »

awesome.. i hope it is more stable than b4
Offline whome

Junior Member




Carte Noir Java


« Reply #59 - Posted 2003-04-13 15:33:04 »

I made few test with the following test program. Don't know whether it gives you gurus ideas about solving G400 problems.

http://www.java-gaming.org/cgi-bin/JGOForums/YaBB.cgi?board=share;action=display;num=1036791657;start=0

Is it possible to force A.F to use given displaymode, so that I could testrun it with my machine. Command-line parameter to force settings or something...
Pages: 1 [2]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (31 views)
2014-04-15 18:08:23

BurntPizza (28 views)
2014-04-15 03:46:01

UprightPath (43 views)
2014-04-14 17:39:50

UprightPath (26 views)
2014-04-14 17:35:47

Porlus (43 views)
2014-04-14 15:48:38

tom_mai78101 (64 views)
2014-04-10 04:04:31

BurntPizza (124 views)
2014-04-08 23:06:04

tom_mai78101 (224 views)
2014-04-05 13:34:39

trollwarrior1 (190 views)
2014-04-04 12:06:45

CJLetsGame (198 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!