Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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: Xith features you use on: 2006-03-18 20:37:52
Intersting. The lines

1  
2  
mainFrame.getLayeredPane().setLayer(xith_panel,  JLayeredPane.DEFAULT_LAYER);
mainFrame.getLayeredPane().setLayer(awt_panel,  JLayeredPane.PALETTE_LAYER);


were illegal on the mac. Had to change them to the intValue().

Still didn't work though.

On the Apple's Java vs Sun's - yeah I thought of that as well. Maybe I'll dig into their api stuff more or e-mail them.
2  Java Game APIs & Engines / Xith3D Forums / Re: Xith features you use on: 2006-03-18 20:11:45
Do you mean like this?:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
JFrame mainFrame = new JFrame();
mainFrame.setVisible(true);
mainFrame.setSize(1000,500);
mainFrame.getContentPane().setLayout(new BorderLayout());

JLayeredPane layered = new JLayeredPane();
layered.setVisible(true);
mainFrame.getContentPane().add(layered);

Panel panel = new Panel();
panel.setLayout(new BorderLayout());
Button button = new Button("click me");
panel.add(button);
panel.setVisible(true);
panel.setSize(100,100);
panel.setLocation(600,100);
layered.add(panel, JLayeredPane.PALETTE_LAYER);
mainFrame.validate();

RenderPeer rp = new RenderPeerImpl();
CanvasPeer cp = rp.makeCanvas(layered,640,480,32,false);
Canvas3D canvas = new Canvas3D();
canvas.set3DPeer(cp);
view.addCanvas3D(canvas);


Again yes on PC. No go on Mac  Sad
3  Java Game APIs & Engines / Xith3D Forums / Re: Xith features you use on: 2006-03-18 19:52:04
Can you throw up an example in code of what you do? I'm not sure what you mean when you say add to default_layer and palette_layer.

Thanks.
4  Java Game APIs & Engines / Xith3D Forums / Re: Mac Problem: Swing not drawing on top of Xith3D on: 2006-03-17 20:43:58
I tried the setComponentZOrder() method with no luck. I think I'm going to have to abandon having full-screen mode for the mac. Just have the swing elements pop-up in new frames.

Just bugs me that the Mac and Window would be different.

Thanks though.
5  Java Game APIs & Engines / Xith3D Forums / Mac Problem: Swing not drawing on top of Xith3D on: 2006-03-17 01:55:07
Hello all.

I'm fairly new to  Xith and Java development. I was trying to have an easy swing GUI just come up on top of Xith. While I can get it to work on my PC, the Mac has problems.

Relevant code is pretty short:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
                JFrame mainFrame = new JFrame();
      mainFrame.setVisible(true);
      mainFrame.setSize(1000,500);
      mainFrame.getContentPane().setLayout(new BorderLayout());
     
      Panel panel = new Panel();
      panel.setLayout(new BorderLayout());
      Button button = new Button("click me");
      panel.add(button);
      panel.setVisible(true);
      panel.setSize(100,100);
      panel.setLocation(600,100);
      mainFrame.getLayeredPane().add(panel);
      mainFrame.validate();
     
      RenderPeer rp = new RenderPeerImpl();
      CanvasPeer cp = rp.makeCanvas(mainFrame.getLayeredPane(),640,480,32,false);
      Canvas3D canvas = new Canvas3D();
      canvas.set3DPeer(cp);
      view.addCanvas3D(canvas);


You should see your Xith render on the left of the frame with the button on the right side - half over the render and half not. On the PC this works fine, the whole button is drawn on top of Xith. But on the Mac Xith is always drawn on top - you only see the half of the button.

Any thoughts on why they'd be diffrent or what I could do to fix it?

Thanks
6  Java Game APIs & Engines / Xith3D Forums / Re: ASE loader uvTiling Problem on: 2005-04-01 19:42:38
Yup it works. I'll e-mail you the screenshots comparing how it looks in max and xith before and after the changes.

Where is IssueZilla? Is that the bug tab at the top of the main xith page?

Thanks,
William
7  Java Game APIs & Engines / Xith3D Forums / ASE loader uvTiling Problem on: 2005-03-31 18:17:52
I found that the ase loader seems to do the opposite of what 3dmax does in terms of the uvTiling. In max you set the uvTiling to 2 and it will double the image but this blows up the image in xith. You have to set the tiling to 0.5 in order for xith to tile it. I believe the code is in com.xith3d.loaders.ase.AseMap on lines 80 and 82.

The code divides by the u and v Tiling. I think doing a multiplies should fix the problem.

Maybe this is a change with the later versions of Max?

Thanks,
William
8  Java Game APIs & Engines / Xith3D Forums / Mac Problems with BufferedImage on: 2005-03-31 00:11:15
Hello all,

I started working on a project using Xith3D and I've run into a problem while working on the GUI. I got a primitive GUI working on the PC (a chat box) but when I tested it on the Mac I started to run into problems.

At first there was nothing displayed which I figured out was the box being completely black so the alpha test wasn't drawing anything - nothing to draw. I then tracked it down to the BufferedImage I was using to create the 2D text and box. I was using

BufferedImage.TYPE_INT_ARGB

but this didn't seem to work for the Mac. I instead used

BufferedImage.TYPE_4BYTE_ABGR

and then created the texture with that. It actually showed up on the Mac - but the colors were all screwed up, there doesn't seem to be any blue channel, just red and green.  But theirs no problem on the PC.

Anyone have any ideas? Is this just a Mac issue that I can't fix and will have to try something completely different?

Thanks,
William
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.

Longarmx (41 views)
2014-10-17 03:59:02

Norakomi (33 views)
2014-10-16 15:22:06

Norakomi (26 views)
2014-10-16 15:20:20

lcass (30 views)
2014-10-15 16:18:58

TehJavaDev (59 views)
2014-10-14 00:39:48

TehJavaDev (60 views)
2014-10-14 00:35:47

TehJavaDev (50 views)
2014-10-14 00:32:37

BurntPizza (66 views)
2014-10-11 23:24:42

BurntPizza (38 views)
2014-10-11 23:10:45

BurntPizza (80 views)
2014-10-11 22:30:10
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!