One day i will sit down and right a learning tutorial for renderstates, some program that allows you to create states for many quads, and when you click on them it displays what state is set on that quad.
It just works - thats all i know - im not trying to pretend i know why
mud2005: I have tried DB_ONE_MINUS_SRC_ALPHA and it didn't change anything for me, I will point out that this quad is in a node that is not part of the main scene graph, it's in a seperate one so I can call it to display or not based on a variable in my program. It wasn't shown in my code but updateRenderState() is being called too. The QUEUE_TRANSPARENT isn't required for transparency to work, it's just required if you want it to work right in a complex scene.
theprism: Looking through your code I see a few things different in yours than mine and I tried adding those in, but none of those changed anything. I'll also point out you are using the ortho queue too which when I was using it, worked for me as far as transparency went.
I got this exception trying to run your game in Linux
java.lang.NullPointerException
at reach.game.BaseGame.createCustomCursor(BaseGame.java:508)
at reach.game.ReachGame.showLogonScreen(ReachGame.java:108)
at reach.game.ReachGame.showLogonScreenOnError(ReachGame.java:113)
at reach.game.BaseGame.start(BaseGame.java:185)
at reach.game.ReachGame.main(ReachGame.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1154)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1101)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:944)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run(Thread.java:595)
I got this exception trying to run your game in Linux
java.lang.NullPointerException
at reach.game.BaseGame.createCustomCursor(BaseGame.java:508)
at reach.game.ReachGame.showLogonScreen(ReachGame.java:108)
at reach.game.ReachGame.showLogonScreenOnError(ReachGame.java:113)
at reach.game.BaseGame.start(BaseGame.java:185)
at reach.game.ReachGame.main(ReachGame.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1154)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1101)
at com.sun.javaws.Launcher.continueLaunch(Launcher.java:944)
at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
at com.sun.javaws.Launcher.run(Launcher.java:165)
at java.lang.Thread.run(Thread.java:595)
I will point out you don't have jar's setup for linux at all in your jnlp file. I didn't look at your jar files for the mac but it seems like a file is missing, I don't have a mac or linux comp to test things out for ya though.
I also couldn't figure out how to get out of the beauty shop once I went in.
Image Hosting - Thumbnail and resize your photos and images is a screen shot, it seems like some of your menu's are missing their background frames, I'll see a red X that is opaque and some buttons, is that intentional? I also only saw one thing that was translucent and that is the click me in the middle of the room, I'm starting to suspect it's a driver issue of some kind so I'll have to see if I get the same issue on my desktop. I did just recently install new drivers from ATI.
ahh, catering for users was never my strong point, but the exact same thing has been an obstacle for quite a few.
The red cross top left would have closed the screen and put the user control back to the room - i need to add more labels with words on to prompt people.
Presumably this testing was done on windows ??
Indeed - linux, there are a few files missing - ill look to get them included for the next update.
This was on windows, I realized clicking the x returns me to room control, the problem is I couldn't figure out how to get out of the room itself (also seems like in the room I couldn't change the camera rotation which prob prevented me from seeing the door to click on to get out). aswd were just moving the camera instead of rotating around the guy.
OK, this is getting extremely frustrating, every example I look at is the same deal, create an alphastate, enable it, set the render state to an object, and update the render states, yet somehow that just doesn't work. Is there anything that might prevent transparency from working if enabled, lights, vertex colors? I know there is a problem somewhere but I just can't figure out what. I moved this part of my code into a seperate program so I could test it, and it works as expected, something else seems to be going on in my main program that prevents blending?
I've had no luck figuring this out, I can't make anything blend in my program (other than the fps node and mouse where it's based on the image transparency and those are all or nothing situations). I've cutting out different portions of my game to see if suddenly the blending stuff works but no luck so far (and my main work computer is a laptop… that I left my power cord at my regular job grrr).
Something weird I noticed with the render queue issue is that my quad doesn't add to the verts/polygon count unless I use the render queue (which when using that it can't be seen).
My trimmed down version works for blending, so it's not much good for posting, my full blown game is entirely too large to post. I've checked both TestRenderQueue and TestAlphaState and all I learned from them was that I seemed to be doing things right. I'm probably going to have to go with commenting out almost all of the jme related stuff until I can get my blending working, and then put things in one at a time until I find what part conflicts (and ideally post a simple test that shows the behavior).