Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (120)
games submitted by our members
Games in WIP (577)
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] 2 3
1  Java Game APIs & Engines / Xith3D Forums / Re: Polygons count on: 2006-12-12 16:02:10
Thanks Marvin  Grin

Rafael
2  Java Game APIs & Engines / Xith3D Forums / Polygons count on: 2006-12-11 17:50:46
Hi guys.

Is there a way to count the number of polygons rendered on the scene?

Rafael
3  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-11-25 16:49:18
This is the exact reason. Please use the vecmath-kh.jar.

Does everyone agree to remove the vecmath.jar from SVN? It only confuses people.

Marvin
+1

Rafael
4  Java Game APIs & Engines / Xith3D Forums / Problem on: 2006-11-25 12:52:19
Hi guys

I know it is not the first time that this error is posted but is anyone else getting this error?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
java.lang.NoSuchMethodError: javax.vecmath.Matrix4f.setTranslation(Ljavax/vecmat
h/Tuple3f;)V
        at org.xith3d.scenegraph.Transform3D.lookAt(Transform3D.java:692)
        at org.xith3d.scenegraph.View.lookAt(View.java:437)
        at org.xith3d.scenegraph.View.<init>(View.java:779)
        at org.xith3d.render.base.Xith3DEnvironment.<init>(Xith3DEnvironment.jav
a:796)
        at org.xith3d.render.base.ExtXith3DEnvironment.<init>(ExtXith3DEnvironme
nt.java:498)
        at org.xith3d.render.base.ExtXith3DEnvironment.<init>(ExtXith3DEnvironme
nt.java:536)
        at org.teg.game.Game.<init>(Game.java:312)
        at org.teg.game.Starter.runGame(Starter.java:95)
        at org.teg.game.Starter.onStartButtonPressed(Starter.java:41)
        at org.xith3d.utility.canvas.DisplayOptions.actionPerformed(DisplayOptio
ns.java:128)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:18
49)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav
a:2169)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258
)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
istener.java:234)
        at java.awt.Component.processMouseEvent(Component.java:5488)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
        at java.awt.Component.processEvent(Component.java:5253)
        at java.awt.Container.processEvent(Container.java:1966)
        at java.awt.Component.dispatchEventImpl(Component.java:3955)
        at java.awt.Container.dispatchEventImpl(Container.java:2024)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212
)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)

        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
        at java.awt.Container.dispatchEventImpl(Container.java:2010)
        at java.awt.Window.dispatchEventImpl(Window.java:1766)
        at java.awt.Component.dispatchEvent(Component.java:3803)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)


It only occurs in my university pc.

Rafael
5  Java Game APIs & Engines / Xith3D Forums / Re: Problems with JOGL on: 2006-11-17 15:28:15
Sorry to disappoint you but i'm from Brazil and we speak portuguese Wink
But i do speak a little spanish
Aoww sorry for the culture crossover ^^ I have difficulties to distinguish spanish and portuguese (cf. your code)

NP, Some words are similar in both languages ^^

Rafael
6  Java Game APIs & Engines / Xith3D Forums / Re: Problems with JOGL on: 2006-11-15 21:25:13
PS : you're spanish ? then you can make a spanish xith user group with rafa_es ^^

Hi Amos

Sorry to disappoint you but i'm from Brazil and we speak portuguese Wink

But i do speak a little spanish

Rafael

PS: I am a little off the forum now but i'll be back in a couple weeks. ( I am finishing my monograph)
7  Java Game APIs & Engines / Xith3D Forums / Re: Quality Code on: 2006-11-13 21:17:03
Now here we go again.. .  Grin

Rafael
8  Java Game APIs & Engines / Xith3D Forums / Re: Common Loader base on: 2006-11-06 12:36:58
Hey Marvin,

I'm not at home now so i'll check it out when i get home.

Thanks

Rafael
9  Java Game APIs & Engines / Xith3D Forums / Re: Skybox problem on: 2006-11-04 15:03:17
Thanks,

Marvin
10  Java Game APIs & Engines / Xith3D Forums / Re: Skybox problem on: 2006-11-03 18:23:46
Hmm... I don't get this error and I don't even see a skybox. I don't have too much time at the moment, but I'll have a closer look at it later.

I'll recheck the SVN
I forgot to tell you. I think i left the line commented

1  
803  SkyBox skybox = new SkyBox(front, left, back, right, top, bottom);


Rafael
11  Java Game APIs & Engines / Xith3D Forums / Re: Skybox problem on: 2006-11-03 14:28:55
Marvin, when you run it please see if you got this error

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
java.io.IOException: mark/reset not supported
        at java.util.zip.InflaterInputStream.reset(InflaterInputStream.java:262)
        at java.io.FilterInputStream.reset(FilterInputStream.java:204)
        at org.xith3d.loaders.texture.TextureStreamLocatorZip.cacheNames(TextureStreamLocatorZip.java:106)
        at org.xith3d.loaders.texture.TextureStreamLocatorZip.<init>(TextureStreamLocatorZip.java:134)
        at org.xith3d.ui.hud.utils.WidgetTheme.<init>(WidgetTheme.java:485)
        at org.xith3d.ui.hud.utils.WidgetTheme.<init>(WidgetTheme.java:500)
        at org.xith3d.ui.hud.HUD.getTheme(HUD.java:172)
        at org.xith3d.ui.hud.widgets.Label.<init>(Label.java:714)
        at org.xith3d.ui.hud.widgets.Label.<init>(Label.java:732)
        at org.xith3d.ui.hud.widgets.assemblies.FPSCounter.<init>(FPSCounter.java:162)
        at org.xith3d.ui.hud.widgets.assemblies.FPSCounter.<init>(FPSCounter.java:223)
        at org.xith3d.ui.hud.widgets.assemblies.FPSCounter.<init>(FPSCounter.java:283)
        at game.Game.createHUD(Game.java:722)
        at game.Game.<init>(Game.java:1448)
        at game.Game.main(Game.java:1486)


Cuz i got it after  updating my SVN

Rafael
12  Java Game APIs & Engines / Xith3D Forums / Re: Skybox problem on: 2006-11-03 14:12:01
Here it is

http://tryor.com/files/11618/The_Elements_Game.rar.html

Rafael
13  Java Game APIs & Engines / Xith3D Forums / Re: Skybox problem on: 2006-11-03 13:58:42
Hi Marvin,

If you still have my code, this problem occurs there.

If you don't have it anymore, i can send you again.

Rafael
14  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-11-01 17:43:49
Well from what I observed of the game you can "pick" some objects, is that right? And you can only pick them, when you are near enough (less than 3000, it's in your code). So it would be cool if when you can pick an object, this object is highlited in red (e.g. appearance.setColor(new Color3f(Color.red)); )

I got it, but i don't have a clue of how can i do that.

do you use Eclipse ? in the file properties you can see the file encoding.

I use NetBeans but i checked and it's UTF-8

Rafael
15  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-11-01 17:13:21
I don't know if you planned it but making red objects which are targeted would be a really good idea. With the distance (minDist < 3000) thing it's really hard to know if you can get/open/close the object or not.
I didn't get this part? Can you post a example of that?


Also for the encoding of your classes I see lots of strange characters in the "instructions" strings. If it's not UTF-8 (which I suspect) you'd better use that.
I don't see that here.

Rafael
16  Java Game APIs & Engines / Xith3D Forums / Re: Problem with HUD code on: 2006-11-01 00:06:24
... but when I try to run it I get the following error

1  
2  
3  
4  
5  
Exception in thread "main" java.lang.NoSuchMethodError: javax.vecmath.Matrix4f.setTranslation(Ljavax/vecmath/Tuple3f;)V
        at com.xith3d.scenegraph.Transform3D.lookAt(Transform3D.java:691)
        at com.xith3d.scenegraph.View.lookAt(View.java:422)
        at com.xith3d.scenegraph.View.<init>(View.java:781)
        at org.xith3d.render.base.Xith3DEnvironment.<init>(Xith3DEnvironment.java:1381)


Hi William,

 I think your problem is related with your video card. I got this same error when i tryed to run my game on college.
It can be fixed by getting the latest driver for you card

Rafael
17  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-10-31 22:29:49
Fixed  Grin
18  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-10-31 18:19:41
I saw that It's preety ugly this way. I'll build a class for that when i finish a homework that i have to do for tomorrow.

It's already in my TO-DO list.

Rafael
19  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-10-31 17:54:31
By the way, rafa_es, did you applied my pieces of advices on your code? If you want I can send you my local (corrected) version.

Yes Amos, all that was posted that needed to be fixed in the game was done
If you think that you forgot to post some fix, you can send me

Thanks for the help too  Grin

Rafael
20  Java Game APIs & Engines / Xith3D Forums / Re: Interpolators on: 2006-10-31 16:43:33
But as an easy fix you should use the following for all you startIncreasing() calls.

1  
pAI1e.startIncreasing( this.getGameTime() ); // I assume "this" is your RenderLoop


That fixed the problem  Grin

Thanks Marvin

Rafael
21  Java Game APIs & Engines / Xith3D Forums / Interpolators on: 2006-10-30 19:35:36
Hi,

I'm using distance and angle interpolators to make the doors on my game open and close. When a door is first picked it start the increase of the interpolators like this
1  
2  
pAI1e.startIncreasing(0);
pDI1e.startIncreasing(0);


When this door is picked again it starts the drecrease of the interpolators

1  
2  
pAI1e.startDecreasing(0);
pDI1e.startDecreasing(0);


The first time i click he door it increase the value fine, when i click the door again to close and again to open, it does not create the intermediary values for the interpolator.
Did i miss something?

Rafael
22  Java Game APIs & Engines / Xith3D Forums / Re: dev.java.net (CVS) -> sourceforge.net (SVN) on: 2006-10-29 20:07:43
For those who don't use Eclipse there's tortoiseSVN. Here is a tutorial to use it.


Rafael




23  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-28 14:47:01
@rafa_es : update from CVS, should be fixed now.

Thank you for all the help Amos  Cheesy
I'll update the CVS now
24  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-27 15:46:39
Done for the ASE loader, I'll now test and commit.

I'll check the cvs now

It's really valuable.

Got a big boost of performance without Text2D

No but I haven't debugged it yet.. I considered performance and correct file loading in your game to be more important than sound.. But wait once I have included Yuri's faster texture loading in the toolkit I'll debug your sound problem.
Sure it is.

Rafael
25  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-26 17:59:08
You just have to ask ^^ I'll do that when I have time.

Thank you very much  Grin

Another tip : if you can modify your scene, then use textures instead of meshes to display text on your cylinders. It will be 2x faster. (Text is a heck lot of polys).

Sure, i'll modify it for textures now.

Does the sound work for you Amos?

Rafael
26  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-26 12:58:02
line 405 : path you provided is "Sounds/walk.ogg" but I see no folder sounds. I changed it to "walk.ogg"
same comments on path on line 196 and 199 (loading of Sala.ASE)
(I finally had to re-create the whole directory structure)
Amos those paths are there. It's working for me like this. Maybe this is because i'm using netbeans.

TODO for static geometry loaders : makes them use display lists (as implemented in PrecomputedAnimatedModel).
How do i do that?

Thanks for the help

Rafael
27  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-26 02:03:51
Hi Yuri,

I have just refreshed my cvs and it still doesn't work

I'll send you my code so you can take a better look and test the sound yourself

http://rapidshare.com/files/697800/ChemistryGame.rar.html

The sound is started in line 405

Rafael
28  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-25 21:14:09
But it would definitely help some people (including me) if you'd translate the error message Wink.

I think you refer to this line
1  
java.io.FileNotFoundException: src\Sounds\walk.ogg (O sistema não pode encontrar o caminho especificado)


it says "The system could not find the specified path

When i try to force this exception in my code it does not appear.

29  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-25 20:45:22
Another thing...

When i put a non existent file on MediaContainer in the test i get a error.

1  
2  
3  
4  
5  
        MediaContainer mc2 = new MediaContainer("src/Sounds/walk.ogg"); // this file don't exist
        Sound sound2 = new BackgroundSound(mc2, 1);
        sound2.setEnable(true);
        sound2.setLoop(Sound.INFINITE_LOOPS);
        tf_2.addChild(sound2);


then i get this exception

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
java.io.FileNotFoundException: src\Sounds\walk.ogg (O sistema não pode encontrar o caminho especificado)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at com.xith3d.sound.loaders.OggLoader.load(OggLoader.java:180)
        at com.xith3d.scenegraph.MediaContainer.getSoundContainer(MediaContainer.java:112)
        at com.xith3d.sound.SoundProcessor.process(SoundProcessor.java:171)
        at com.xith3d.sound.SoundProcessor.processAll(SoundProcessor.java:268)
        at com.xith3d.render.Renderer.renderOnce(Renderer.java:421)
        at com.xith3d.render.Renderer.renderOnce(Renderer.java:448)
        at com.xith3d.render.Renderer.renderOnce(Renderer.java:463)
        at com.xith3d.scenegraph.VirtualUniverse.renderOnce(VirtualUniverse.java:158)
        at com.xith3d.scenegraph.View.renderOnce(View.java:593)
        at org.xith3d.render.base.Xith3DEnvironment.render(Xith3DEnvironment.java:785)
        at org.xith3d.render.loop.RenderLoop.invokeRendering(RenderLoop.java:640)
        at org.xith3d.render.loop.RenderLoop.loopIteration(RenderLoop.java:656)
        at org.xith3d.test.sound.SoundTesteJavaSound.loopIteration(SoundTesteJavaSound.java:161)
        at org.xith3d.render.loop.RenderLoop.run(RenderLoop.java:775)
        at java.lang.Thread.run(Thread.java:595)


But when i do the same thing with my code it runs without exception.
Do you think thta the problem is that it's not reading the file?
30  Java Game APIs & Engines / Xith3D Forums / Re: Sound on: 2006-10-25 19:40:13
Hi,

Does the sample that works also work if you compile it in your environment? (I mean Xith3D version etc.)

Yuri

Yes Yuri
Pages: [1] 2 3
 

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 (52 views)
2014-10-17 03:59:02

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

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

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

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

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

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

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

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

BurntPizza (86 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!