Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
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: New 0.9.0-beta2 is out!!! on: 2007-04-17 08:19:10
... long long time ago ...

hi @ all ^^

so many changes since my last visit !
I used the beta2 last week and tryed to test something with the InputAdapterRenderLoop ... it is not included there, am I right ?!
So I checked out the latest trunk today and got an error:
in xith-tk org.xith3d.test.gane -> BSPGameTest ...  internal compiler error  Huh

... got another problem with the beta2 but I want to test again before posting Wink so if anyone knows the solution ...

2  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-12-12 14:11:49
Look at the org.xith3d.w3g.ModifyModels example, created especially for you (some convenience features added for that, ok texturing is not perfect, I know Smiley )

Thanks, works! OK, I didn't test the texturing but changing the appearance   Smiley
Hmmm.... is something like that possible in J3D?? I can't find any examples...
It's all right if not ...  Grin Cool
3  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-12-12 13:24:27
Hi again,

I tested the PickingLibrary, works fine so far. Than I used to create an example for picking under J3D, just to compare it with xith....
and now I've got a question: why is it necessary to set the transformgroup and the element (e.g a cube) pickable = true ?? OK I know, setting it to fals means the cube is not pickable... but what is the reason for that? In J3D it seems that everything is pickable at the beginnig. Something about performance?
I don't want to criticize someone... I just want to know  Cool

4  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-12-01 07:47:34
Quote
Why not use vecmath-kh.jar for Java3D too ?

Yes, I thought so too but it causes some problems like this: java.lang.NoClassDefFoundError: javax/vecmath/Tuple3d.
So, instead spending time in this I'll copy the vecmath  Cool
OK, I could adjust the code more and more but this is at least far from testing J3D....
5  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-30 13:22:54
So, loadModel and loadScene works so far...  but stil got a problem with texturing.
I used getShapeNodes() but it returns nothing...
The loaded File is an Object-File exported from wings3D. I exported the selected cube.
getNumChildren returns 1. So there is nothing more than the cube. What's the step catching the shape and change the texture oder material ?
6  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-11-30 09:33:27
Yes you are right!
I deinstalled J3D but the vecmath still remains in th jre lib....

Copying the vecmath in and out of the folder is faster than reinstalling the whole stuff.
7  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-11-29 22:29:16
And there it is again.... I think the problem is java3d-1_4_0_01  Sad  I installed it to compare the loaders.... after the installation the problem returned....

Don't know what J3D does during the installation but it kills something needed or it changes something...  Huh
Seems that I had to install and deinstall it for each test..  Cry


No Xith problem so far   Smiley
8  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-29 22:25:11
Hi Marvin,

works fine so far. Changing appearance like color or texture is the next test  Grin ... hope it will work ...

I exported ist from Blender, but I don't know what button I hit to cause this trouble... maybe this one with the edges ?!
9  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-11-29 17:39:04
What the F*** ?! *argh*

K problem solved....

I had the same Problem few weeks ago. While looking for help I found a thread where someone wrote that reinstalling the jre could fix it. So I installed the newest version and the problem was gone....

And that was exact the same! I reinstalled the 1.5.0_09 and it works now ....
But whats the reason for this ''crash'' ?? Its the second time that I use to spend some time for an unnecessary problem like that  Angry
and on top of that it is not my fault or the fault from xith....
10  Java Game APIs & Engines / Xith3D Forums / Re: Problem on: 2006-11-29 17:10:32
Seems that I have the same problem in an older code:

Exception in thread "main" java.lang.NoSuchMethodError: javax.vecmath.Matrix4f.setTranslation(Ljavax/vecmath/Tuple3f;)V
   at org.xith3d.scenegraph.Transform3D.lookAt(Transform3D.java:691)
   at org.xith3d.scenegraph.View.lookAt(View.java:436)
   at org.xith3d.scenegraph.View.<init>(View.java:778)
   at org.xith3d.render.base.Xith3DEnvironment.<init>(Xith3DEnvironment.java:796)
   at org.xith3d.render.base.Xith3DEnvironment.<init>(Xith3DEnvironment.java:839)

But I use the vecmath-kh... and the java version is the 1.5.0_09....


11  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-29 16:35:47
Thanks.... u helped me a lot Wink

I cheked the exported files and it seems that I hit somthing weired ... I compared the export with an older file  Smiley
So the second export of the cube runs fine so far...


sorry begging for help unneeded  Cool

12  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-29 15:01:00
Hi,

I had a lot of work but Iam finaly back ^^

At first I tried to compare the Objectloader from Java3D with the one from Xith.
In J3D it is simple said load(xy) ... returns scene -> attach it to the TranformGroup and it works
Xith now offers loadScene and loadModel. To compare it I use loadScene... and than I got an Exception:
java.lang.ArrayIndexOutOfBoundsException: 2
   at org.xith3d.loaders.models.impl.obj.FaceList$Face.configure(FaceList.java:267)
   at org.xith3d.loaders.models.impl.obj.FaceList.build(FaceList.java:206)
   at org.xith3d.loaders.models.impl.obj.OBJGroup.build(OBJGroup.java:62)
   at org.xith3d.loaders.models.impl.obj.OBJLoader.load(OBJLoader.java:165)
   at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:270)
   at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:307)

I don't know how to handle this because I used only ''scene = (Scene) ofl.loadScene("test.obj");'' ...there is nothing else...
I know that it works a few weeks ago...  Undecided 
13  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-14 13:01:26
I'll implement it soon. (Remind me).
What exactly ?  Wink

<remind> *knock knock* </remind>  Cool

Hmm... I exported a cube with a texture from wings3D:

 # Exported from Wings 3D 0.98.35
mtllib Xith3D-Cube.mtl
o cube1
#8 vertices, 6 faces
v -1.00000000 -1.00000000 1.00000000
v -1.00000000 1.00000000 1.00000000
v 1.00000000 1.00000000 1.00000000
v 1.00000000 -1.00000000 1.00000000
v -1.00000000 -1.00000000 -1.00000000
v -1.00000000 1.00000000 -1.00000000
v 1.00000000 1.00000000 -1.00000000
v 1.00000000 -1.00000000 -1.00000000
vt 0.0000000e+0 0.0000000e+0
vt 0.0000000e+0 1.6653345e-16
vt 0.0000000e+0 2.2204460e-16
vt 0.0000000e+0 1.00000000
vt 1.6653345e-16 1.00000000
vt 1.00000000 0.0000000e+0
vt 1.00000000 1.00000000
vt 1.00000000 0.0000000e+0
vt 1.00000000 2.2204460e-16
vt 1.00000000 0.0000000e+0
vt 1.00000000 1.00000000
vt 1.00000000 1.00000000
g cube1
usemtl default
f 1/1/ 4/10/ 3/12/ 2/4/
f 1/8/ 5/11/ 8/5/ 4/2/
f 2/12/ 6/4/ 5/1/ 1/10/
f 3/6/ 7/7/ 6/4/ 2/1/
f 4/1/ 8/10/ 7/12/ 3/4/
f 6/12/ 7/5/ 8/3/ 5/9/

mtl:

# Exported from Wings 3D 0.98.35
newmtl default
Ns 100.000
d 1.00000
illum 2
Kd 1.00000 1.00000 1.00000
Ka 1.00000 1.00000 1.00000
Ks 1.00000 1.00000 1.00000
Ke 0.00000e+0 0.00000e+0 0.00000e+0
map_Kd Xith3D.png

So there is nothing else but the cube. Scene.getSceneGroup().numChildren() returns a 1. Traversing the scene should be done with getChild(0) ... correct? But I can't cast it as shape3D or something else. And I am not able to set texture, material or something in that state.
What is the alternative? I need a good loader where I can change the appearance from the loaded object. And I need a free programm that allows me to export in this file. (e.g. Blender or wings3D...).

Thx for help ^^
14  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-11-14 12:46:24
O.K. I tested the code from chapter 9a.
Everything seems to be all right but I got an Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException.  Undecided

Then I tested the code from 9b... the Exception is gone but I always "Pick nothing" ....

Maybe I am doing something wrong? (Maybe lol... I am sure ...)
It's a shame that I am not that deep into this material to solve the problem  Cry

15  Java Game APIs & Engines / Xith3D Forums / Re: Objectloader on: 2006-11-13 13:39:24


But I think, I can tell you, why the following is not working:
I load it that way: scene = objL.load("Test.obj");
Some posted codes load it like BranchGroup xy = null; -> null = new OBJLOader().load("xy");
I used to test it but if I try to load the object that way, I got a classCastException...  Huh
The only thing working is loading the file as scene, ...

The loader base currently used by ObjLoader returns an instance of "Scene", which is an interface and therefore doesn't extend BranchGroup ao another GroupNode extension. Even the concrete class used internally inside the loaders doesn't extend GroupNode. You'll have to use xy.getSceneGroup() as the Node to add to the scenegraph.
This is different in the new loader base, where any scene or model extends BranchGroup resp. Group. So they can directly be attached to the scenegraph. They're TransformNode as well and can therefore be directly transformed (like scaled), which was also not possible in the old system.

Yes I know!
That's why I dont understand that someone works with loading as BranchGroup...
Was it possible in an older version?


..., but no chance to set material or texture there.
Where is the mistake? Wrong export?

You can always traverse the model ( getSceneGroup() ) and find any Shape3D and apply a Materail to it. But I guess it is better to wait for the failure to be fixed inside the loader. Maybe you could yourself dig into the code and try to find the solution.

Marvin

O.k. I try that...
Where is a documentation for traverse ?  Roll Eyes
16  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-11-13 13:08:15
Actually I am getting some problems... but the day isn't over yet Wink
17  Java Game APIs & Engines / Xith3D Forums / Objectloader on: 2006-11-13 12:27:11
Hi,

got another problem...
I tried to load a simple cube, exported from wings3D or Blender.
The loaded cube from the Blender-file is black or white depending on some settings; the wings3D-file is loadable with texture but (that's my problem) I want to change the texture or material of the cube but i can't reach the cube.
I load it that way: scene = objL.load("Test.obj");
Some posted codes load it like BranchGroup xy = null; -> null = new OBJLOader().load("xy");
I used to test it but if I try to load the object that way, I got a classCastException...  Huh
The only thing working is loading the file as scene, but no chance to set material or texture there.
Where is the mistake? Wrong export?

thx for help
18  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-11-10 08:43:28
Picking works now.

I replaced PickResult pr = PickingLibrary.pickNearest(env.getRootGroup(), env.getCanvas(), pickX,pickY); by
List<PickResult> pr = PickingLibrary.pickAll(env.getRootGroup(), env.getCanvas(), pickX, pickY); from the picking-test.
And I replaced pr.getShape().getName() by
                    int i = 0;
                    for (PickResult pr: results)
                    {
                        System.out.println("  Hit (" + i++ + "): Shape3D: \"" + pr.getShape().getName() + "\", distance=" + pr.getMedialDistance()                                           + " position=" + pr.getPos());
                    }
that's from the picking-test too...  Cool

But why is the example from xin not working?
19  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-11-09 21:32:41
Hi Amos,

I am working on my project at university. It's a technology research about tools, engines and more.
Anything you can use to build a simulator for mobile robotics.
And so I have to test some of these things...
There are a lot of projects that offer useful things but not all are comfortable enough.
Xith seems to be a bit further than J3D.

And at the End  I hope to implement some of my ideas with Xith....
To many ideas and not enough time  Grin ....
20  Java Game APIs & Engines / Xith3D Forums / Re: picking problems on: 2006-11-09 11:09:04
I checked the PickingLibraryTest and it works fine  Smiley
21  Java Game APIs & Engines / Xith3D Forums / picking problems on: 2006-11-09 09:53:17
Hi all,

I am new here (and finaly here ... long story ^^).
I used to test the code written in xin "chapter 9a picking" and i have some problems.
The first problem:  env.getRootBranchGroup()  seems to be wrong (?!)...  env offers getBranchGroup() is this correct?
and the second: all seems to be correct but I am not able to pick the rotating cube! -> "You just picked nothing!"
I added cube.setPickable(true) but it is still the same  Undecided




PS: Thanks to Marvin for support via e-mail (i wasn't able to login here ) 
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.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (40 views)
2014-12-09 22:41:13

BurntPizza (75 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (113 views)
2014-11-26 15:22:04

toopeicgaming1999 (100 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!