Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 02:24:15 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Noob in need of help
Pages: [1] 2 3
Print
Author Topic: Noob in need of help  (Read 2868 times)
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« on: 09. December 2007, 11:57:53 pm »

Hi, have just downloaded  v0.9.0-beta2(2007-02-08)
am working my way through the tutorials and fallen at starting blocks,
my ide(netbeans5.5) cant find the class Canvas3DFactory (I've added both jars to class path)
I cant find this class in the api docs packaged either although they are in the docs online.
have i missed something? (sure i have/probly something stupid and simple Smiley)

Jon
Logged
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #1 on: 10. December 2007, 02:43:10 am »

I would pull the current source using subversion ( I think netbeans can do this)  Be sure to get both xith3d and xith3d-tk projects.  The introdoc XIN (from xith.org) page is a good read.


http://www.xith.org/javadoc/core/org/xith3d/render/Canvas3DFactory.html
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 10. December 2007, 02:24:19 pm »

The online JavaDoc as well as XIN is a bit out of date. I'll have to update them soon. Compared to the latest release the two projects xith3d and xith-tk have been partially merged. So everything relevant to create your own project is in xith3d now. Only the testcases, examples and documentation like XIN is left in xith-tk.

Pulling the latest source from sourceforge SVN is the best way to go. There are many improvements in it compared with the latest release.

Oh, and welcome to Xith3D, badboyboogey Smiley.

Marvin
Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #3 on: 10. December 2007, 10:39:15 pm »

Ok, got subversion sorted, and got upto date xith3d and xith-tk,
however when i try and build xith3d it can't find javax.vecmath.Vector2i
and as far as i'm aware javax.vecmath never has had a Vector2i class Huh, only Tuple2i and Point2i
anyhow have the latest version of J3D installed (1.5.1).
Really quite confused.

Sorry to be a pain
John
Logged
Pandaemonium
Enjoying the stay
*
Offline Offline

Posts: 85


If at first you don't succeed; call it version 1.0


View Profile
« Reply #4 on: 10. December 2007, 11:20:48 pm »

I believe the correct package you're looking for is: org.openmali.vecmath2. I think javax.vecmath is the old one.
Logged
Pandaemonium
Enjoying the stay
*
Offline Offline

Posts: 85


If at first you don't succeed; call it version 1.0


View Profile
« Reply #5 on: 10. December 2007, 11:29:49 pm »

Oh yeah, btw, J3D is a completely separate scenegraph API. You don't need it to use Xith3d.
Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #6 on: 11. December 2007, 05:57:40 pm »

Thanks for the help, will try that.
the import does state however :- import javax.vecmath.Vector3i

will i have to change all referances to javax.vecmath to org.openmali.vecmath2 ?

btw i use J3d quite alot and still need it installed this isn't going to cause any conflicts is it?

Just trying Xith3d because i like the sound of the multipass rendering technique, I get major performance hits when i try this with J3d (Xith3d looks a hell of alot quicker to code too)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 11. December 2007, 07:06:27 pm »

the import does state however :- import javax.vecmath.Vector3i

There is no Vector3i class in vecmath2. What do you need it for? I guess, you could simply use Tuple3i instead. In vecmath2 the TupleXX classes are not abstract anymore, which means, you can directly create instances without using VectorXX or PointXX.

will i have to change all referances to javax.vecmath to org.openmali.vecmath2 ?

Well, if you want to use Xith3D, you will have to use vecmath2. javax.vecmath isn't used at all in Xith3D (anymore).

btw i use J3d quite alot and still need it installed this isn't going to cause any conflicts is it?

No, there won't be any conflicts.

Just trying Xith3d because i like the sound of the multipass rendering technique, I get major performance hits when i try this with J3d (Xith3d looks a hell of alot quicker to code too)

Thanks. Good to know Smiley.

Marvin
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #8 on: 11. December 2007, 08:47:30 pm »

Oh, btw. I hope, you know, that it is very simple to change all imports of javax.vecmath to org.openmali.vecmath2. Simply do a project global text replace of "javax.vecmath." to "org.openmali.vecmath2." and everything will be done automagically.

Marvin
Logged
hawkwind
Getting respectable
***
Offline Offline

Posts: 363



View Profile Email
« Reply #9 on: 11. December 2007, 08:58:12 pm »

Quote
Just trying Xith3d because i like the sound of the multipass rendering technique, I get major performance hits when i try this with J3d (Xith3d looks a hell of alot quicker to code too)

Pay attention to the HUD also, it is so much faster than the J3D paint over the rendered scene approach
Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #10 on: 11. December 2007, 10:08:20 pm »

Sorry i meant Vector2i
The first problem i am having is wth the org.xith3d.datatypes.Rect2i class :-

package org.xith3d.datatypes;

import javax.vecmath.Point2i;
import javax.vecmath.Tuple2i;
import javax.vecmath.Vector2i;    <<<<<<<<<<<<<<<  This doesn't exist in javax.vecmath Huh?
(Should this now be org.openmali.vecmath.Vector2i)?

/**
 * A basic 2-dimensional rectangle.
 *
 * @author Marvin Froehlich (aka Qudus)
 */
public class Rect2i implements Positioned2i, Sized2i
{



btw i cant even get the svn of openmali to build!!!! and i cant find a stable release to download (cant find a release at all!! not even alpha or beta)

Should it be this complicated?? lol

Please release a working package! SVN is doing my head in!!!
Logged
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #11 on: 11. December 2007, 10:31:16 pm »

The needed version of openmali is included in the xith3d svn trunk (look into the "third-party\math"-folder), no need to download or build anything. Openmali is the preferred math library of xith3d, so if you have old examples using javax.vecmath, just replace javax.vecmath with org.openmali.vecmath2.
Logged

Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #12 on: 11. December 2007, 10:35:39 pm »

Sorry i meant Vector2i

The Vector2i class does exist in vecmath2.

The first problem i am having is wth the org.xith3d.datatypes.Rect2i class :-

package org.xith3d.datatypes;

import javax.vecmath.Point2i;
import javax.vecmath.Tuple2i;
import javax.vecmath.Vector2i;    <<<<<<<<<<<<<<<  This doesn't exist in javax.vecmath Huh?
(Should this now be org.openmali.vecmath.Vector2i)?

/**
 * A basic 2-dimensional rectangle.
 *
 * @author Marvin Froehlich (aka Qudus)
 */
public class Rect2i implements Positioned2i, Sized2i
{

You seem to be using a very old version. This code does not exist anymore in the xith codebase, since it has been moved to the JAGaToo project along time ago. Please check, if you're using the HEAD revision of the xith3d project from sourceforge SVN.

btw i cant even get the svn of openmali to build!!!! and i cant find a stable release to download (cant find a release at all!! not even alpha or beta)

Should it be this complicated?? lol

Please release a working package! SVN is doing my head in!!!

Well, this will be done in the near future. But in the xith3d SVN project in the third-party directory (math subfolder) there is the current openmali.jar.

You don't need other projects than the xith3d project (and xith-tk for testcases). The project builds without any other dependencies.

What's the problem when you try to build openmali?

Please tell me, if you still need other jars.

Marvin
Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #13 on: 11. December 2007, 10:50:54 pm »

I h8 to be a pain in ar** but having real problems lol
such as the following errors in Transform3D class when i build Xith3d project:-
(In addition to the previous Rect2i problem)

D:\Java\Xith3d-api\branches\0.9.0\src\org\xith3d\scenegraph\Transform3D.java:464: setTranslation(javax.vecmath.Vector3f) in javax.vecmath.Matrix4f cannot be applied to (javax.vecmath.Tuple3f)
        matrix.setTranslation(v);
D:\Java\Xith3d-api\branches\0.9.0\src\org\xith3d\scenegraph\Transform3D.java:618: cannot find symbol
symbol  : method set(javax.vecmath.Quat4f,javax.vecmath.Tuple3f,float)
location: class org.xith3d.datatypes.MatrixExt4f
        matrix.set(q1, t1, s);
D:\Java\Xith3d-api\branches\0.9.0\src\org\xith3d\scenegraph\Transform3D.java:750: cannot find symbol
symbol  : method get(javax.vecmath.Tuple3f)
location: class org.xith3d.datatypes.MatrixExt4f
        matrix.get(loc);
D:\Java\Xith3d-api\branches\0.9.0\src\org\xith3d\scenegraph\View.java:548: cannot find symbol
symbol  : method mul(javax.vecmath.Vector3f,javax.vecmath.Tuple3f)
location: class javax.vecmath.Matrix3f
        rotMat.mul( TO_BACK, direction );

Seems a cast from Tuple3f to Vector3f will solve this, but i guess you guys don't have this problem, whats going on? what am i doing wrong?
Logged
badboyboogey
Enjoying the stay
*
Offline Offline

Posts: 40



View Profile
« Reply #14 on: 11. December 2007, 11:09:50 pm »

Quote
You seem to be using a very old version. This code does not exist anymore in the xith codebase, since it has been moved to the JAGaToo project along time ago. Please check, if you're using the HEAD revision of the xith3d project from sourceforge SVN.
Don't i get the most uptodate version with svn? (have just updated and no difference)

Quote
What's the problem when you try to build openmali?
Actually the problem with openmali isn't so serious org.openmali.test.VMTest is looking for classes in the old vecmath. I've deleted that class and it's building now lol.
but no change to Xith3d, still wont build same problems even after update.

Like you say got old version, but why?
(i did notice HEAD command in update string when netbeans was updating)
Logged
Pages: [1] 2 3
Print
Jump to:  

Theme orange-lt created by panic