Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Xith3D Forums / Re: Transparency Hiding Shapes on: 2006-02-23 23:51:50
But now when the box shape is set to zero transparency the other shapes are bleeding through and showing  Sad

Help! Smiley

Here's my appearance init for the box shape:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
    appearance.setPolygonAttributes(new PolygonAttributes(polygonFill,
            PolygonAttributes.CULL_NONE, 0));
    appearance.setColoringAttributes(
            new ColoringAttributes(color, ColoringAttributes.NICEST));
    appearance.setTransparencyAttributes(new TransparencyAttributes(
       TransparencyAttributes.BLENDED, opacity));

   RenderingAttributes ra = new RenderingAttributes();
   ra.setDepthBufferEnable(false);
   appearance.setRenderingAttributes(ra);
2  Java Game APIs & Engines / Xith3D Forums / Re: Transparency Hiding Shapes on: 2006-02-23 23:46:53
After going at it some more and reading some older threads here I found that adding this to the appearance setup fixes it:

1  
2  
3  
RenderingAttributes ra = new RenderingAttributes();
ra.setDepthBufferEnable(false);
appearance.setRenderingAttributes(ra);
3  Java Game APIs & Engines / Xith3D Forums / Transparency Hiding Shapes on: 2006-02-23 18:28:54
Hello,

Since this is my first post in a long time I just want to thank all of you guys working on Xith and making it available to the community at large.

My scene consists of one big hollow box with a whole bunch of smaller shapes inside it. My problem is when setting the transparency of the big box, some (not all) of the shapes start dissapearing from the view. And depending on the rotation of the box, some shapes will appear and other will disapear. The image I'm attaching shows the box with its polygon attributes set to POLYGON_LINE, to show you all the shapes that should be appearing in the scene, and 3 other views at other rotations with the transparency set. You'll notice that some shapes appear and disapear.

What I'd like to do is always have the shapes appear when the big box's transparency is set. Any ideas where I could be going wrong in my scene setup?

This is part of a pretty big program so providing code samples of the whole rendering process would be difficult, but if you feel a certain piece would help please let me know.

Thanks!
4  Java Game APIs & Engines / Xith3D Forums / Re: Appearance Update Between Render Calls on: 2004-02-23 03:15:18
Thanks for the reply Yuri. I'll be entering a bug report with a simple test case in Issuezilla.
5  Java Game APIs & Engines / Xith3D Forums / Appearance Update Between Render Calls on: 2004-02-21 18:12:16
I'm trying to update the appearance of a Shape3D in between view.renderOnce() calls using the shape3d.setAppearance() function call. The weird thing though is that the appearance doesn't get visually updated until I apply a rotation or translation to the object (I assume the appearance would update too with a camera view change, but I use a fixed camera for my project). Is this expected behaviour? Is there an update call I'm supposed to make after changing an object's appearance?
6  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 23:29:22
Glad you found the reason for it not working JCD! I suppose it's almost time i upgraded that card Smiley

The info you're looking to gather:
WinXP, AMD 2500XP+, ATI 8500DV 64MB
Ran the demo's at 800x600:
Particle Gen (100 particleS) ~760FPS
NeHe's Cel-Shading ~95FPS
Cloth Sim ~280FPS
Flag Sim ~295
Water Sim ~240FPS
PerPixel Lighting ~370FPS
NeHe's Cel-Shading VS ~290FPS
PerPixel Lighting VS ~380FPS
Phong - N/A
Quake3 Model Ldr (moving) ~485FPS

And I'll chime in too to say that you've done some very cool stuff with these demos! Thumbs up mate!
7  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 11:21:00
I tried deleting the cache, but it's still the same problem.

I'm running it from source now and I'm still getting the black screen. I've double-checked that it's finding the data files (and it is finding them properly) so i'm still not sure what's causing the problem yet. I'll get back to it tonight when i get home (my work comp has an embedded intel gfx chip :-/ ).
8  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 02:37:34
Ok Smiley
I'll give your code a shot to see if I can track the problem.
9  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 02:22:38
Just tried again, and this is what i get:



How do i turn on the light?  Wink
10  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 01:59:46
Hmmm, ok, now it starts to load up displaying all the initial messages, the last one i see is "Starting ..." and then the screen turns into light grey and nothing happens.

I have a radeon 8500DV.
11  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-19 01:46:48
JCD, for the phong demo I get an error after picking the display resolution:

Quote
Math/FastTrig (Unsupported major.minor version 49.0)


The stack trace:
Quote
java.lang.UnsupportedClassVersionError: Math/FastTrig (Unsupported major.minor version 49.0)

     at java.lang.ClassLoader.defineClass0(Native Method)

     at java.lang.ClassLoader.defineClass(Unknown Source)

     at java.security.SecureClassLoader.defineClass(Unknown Source)

     at com.sun.jnlp.JNLPClassLoader.defineClass(Unknown Source)

     at com.sun.jnlp.JNLPClassLoader.access$100(Unknown Source)

     at com.sun.jnlp.JNLPClassLoader$1.run(Unknown Source)

     at java.security.AccessController.doPrivileged(Native Method)

     at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)

     at java.lang.ClassLoader.loadClass(Unknown Source)

     at java.lang.ClassLoader.loadClass(Unknown Source)

     at java.lang.ClassLoader.loadClassInternal(Unknown Source)

     at GeoUtils.ParticlesManager.modifyVectorSpeed(ParticlesManager.java:174)

     at GeoUtils.ParticlesManager.<init>(ParticlesManager.java:88)

     at SceneCreator.loadParticleSystem(SceneCreator.java:36)

     at PhongLighting.scene(PhongLighting.java:139)

     at PhongLighting.<init>(PhongLighting.java:95)

     at PhongLighting.main(PhongLighting.java:53)

     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

     at java.lang.reflect.Method.invoke(Unknown Source)

     at com.sun.javaws.Launcher.executeApplication(Unknown Source)

     at com.sun.javaws.Launcher.executeMainClass(Unknown Source)

     at com.sun.javaws.Launcher.continueLaunch(Unknown Source)

     at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)

     at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)

     at com.sun.javaws.Launcher.run(Unknown Source)

     at java.lang.Thread.run(Unknown Source)

12  Java Game APIs & Engines / Xith3D Forums / Re: The JWS thread *Xith3D demos only* on: 2004-02-15 18:43:52
For some reason only the particle generator and the water simulation are working on my comp now. With the exception of the shader demos, all used to work fine before. FYI, i have a radeon 8500DV. The demos just die, without any error message, after the splash screen.

I'll try running it from source to see if I can track down the cause, but I thought I'd make this note in case you made a recent change JCD that might have caused the break.  Huh
13  Java Game APIs & Engines / Xith3D Forums / Re: Great Idea - Logo on: 2004-02-13 15:49:01
My favourite is the JProof #7.

Although, I also like JProof variants 2, 3, and 10.
14  Java Game APIs & Engines / Xith3D Forums / Re: JScrollPane doesn't seem to work in a UIWindow on: 2004-02-03 14:28:05
Maybe this will help:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1071354109;start=1#1
15  Java Game APIs & Engines / Xith3D Forums / Re: Converting Screen Coordinates to World Coordin on: 2004-01-10 20:08:40
When I get more than one result from the View.pick() function, I'd like to be able to tell which object is "closest" to the screen. The easiest way I figured to do this is to convert the mouse click point to world coordinates and then compare distances between the converted world position and the node positions to find the shortest one.

But to be completely honest I didn't quite understand the discussion that took place in this thread  Embarrassed (i'm new to 3D).  Could shochu or anyone else please explain what the parameters in the "xithUnProject" function listed above are, and where I would get them from? (I understand what winX, winY and results are, but not the rest).
16  Java Game APIs & Engines / Xith3D Forums / Re: Background Color support added on: 2003-12-18 21:13:57
I'm trying to set the background to an image using the code below, but I'm getting the standard greyish background color instead. Am I doing something wrong?

1  
2  
3  
4  
5  
6  
7  
8  
             try
             {
                   BufferedImage im = ImageUtility.readImage("gfx\\bg.png");
                  ImageComponent2D ic2D = new ImageComponent2D(ImageComponent.FORMAT_RGBA, 800, 600, im);
                  Background  backGround = new Background(ic2D);
                  scene.addChild(backGround);
             }
            catch (Exception e) { e.printStackTrace();}
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (27 views)
2014-11-22 12:13:56

xFryIx (69 views)
2014-11-13 12:34:49

digdugdiggy (48 views)
2014-11-12 21:11:50

digdugdiggy (42 views)
2014-11-12 21:10:15

digdugdiggy (36 views)
2014-11-12 21:09:33

kovacsa (60 views)
2014-11-07 19:57:14

TehJavaDev (64 views)
2014-11-03 22:04:50

BurntPizza (62 views)
2014-11-03 18:54:52

moogie (77 views)
2014-11-03 06:22:04

CopyableCougar4 (77 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!