Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (116)
games submitted by our members
Games in WIP (563)
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
1  Java Game APIs & Engines / Xith3D Forums / Re: Good Geometry editors for Xith3D? on: 2005-04-27 22:59:11
definitely give fragmotion a shot
2  Java Game APIs & Engines / Xith3D Forums / Re: How does views work in XIth3d ? on: 2005-01-24 13:33:57
not sure why...
for a workaround, just set the views transform to the objects transformgroup that you want it to follow
3  Java Game APIs & Engines / Xith3D Forums / Re: SkyBox mini-tutorial and utility class on: 2005-01-17 12:50:14
i think that bug has more to do with the view being in an uncomprising position than with the skybox.
4  Java Game APIs & Engines / Xith3D Forums / Re: Collision projectile on: 2005-01-11 18:00:14
interesting idea but wont you have issues when trying to pick an object beneath another?
5  Java Game APIs & Engines / Xith3D Forums / Geosphere? on: 2005-01-10 13:41:47
Can anyone please tell me where the new primitives package is? Thanks
6  Java Game APIs & Engines / Xith3D Forums / Collision Confusion on: 2005-01-05 20:20:46
Hello all
I'm a little confused about xith's innate collision system. The balls and cubes demo doesnt work and breaks but the quake 3 bsp demo does. So if it works in one scenario...why exactly is it unsupported?
7  Java Game APIs & Engines / Xith3D Forums / Re: slide on collision on: 2004-12-14 13:04:48
This article should help out...
http://www.gamasutra.com/features/20010324/melax_pfv.htm


Also, take a look at CollisionSystem.java.
8  Java Game APIs & Engines / Xith3D Forums / Re: Link+SharedGroup on: 2004-12-14 12:31:57
You should create a new MD2ModelInstance instead of using shared node

1  
copy = md2Model.getInstance();
9  Java Game APIs & Engines / Xith3D Forums / Re: Snap to Grid on: 2004-12-13 20:14:27
Yeah, a good system/gui is tough. There's also other elements like object-to-object collisions -- snapping around other objects. I guess it depends on how well you want the system to be...
10  Java Game APIs & Engines / Xith3D Forums / Collada DAE Loader on: 2004-12-13 16:00:40
I'm currently writing a loader for the Collada format for Xith (and one more for some other tool).
For more info on Collada and .DAE, go to http://www.collada.org
11  Java Game APIs & Engines / Xith3D Forums / Re: Filter Effects on: 2004-12-10 20:11:24
tinkering about, you can tint the screen with various colors using a slightly transparent plane as a foreground node in front of the view...not sophisticated I guess .... and not effective for B&W....  more to come
12  Java Game APIs & Engines / Xith3D Forums / Re: Foreground node prejiduced against coord syste on: 2004-12-10 19:38:33
on the topic of foreground nodes... shapes in my foreground node are intersecting with other geometries not in the foreground node... is this the norm? i was under the assumption that foreground nodes were drawn over everything else. Can someone please clarify? Thanks  Embarrassed
13  Java Game APIs & Engines / Xith3D Forums / Re: Misc FAQ on: 2004-12-09 12:04:44
Thanks. I was able to add the questions to the FAQ.

http://www.xith.org/tiki-view_faq.php?faqId=3
14  Java Game APIs & Engines / Xith3D Forums / Re: Misc FAQ on: 2004-12-08 21:32:50
I sent a PM. My username is the same: LaLiLuLeLo
15  Java Game APIs & Engines / Xith3D Forums / Misc FAQ on: 2004-12-08 19:37:37
Here are some questions/answers I'm compiling. I'm not sure if the xith FAQ would be a better place to put it since it would just clog up the FAQ section, so I am putting them here for now. Hope it helps.

1. How do you set whole mesh transparencies? (I want to make my monsters fade away when they die!)

You'll need to set Transparency Attributes on the mesh's appearance and the material's color target.
To make objects fade away, just change the transparency value during your render loop.

1  
2  
3  
      ta = new TransparencyAttributes(TransparencyAttributes.BLENDED, 0.1f );
      mat.setColorTarget(Material.DIFFUSE);
      app.setTransparencyAttributes(ta);


2. How do you use alpha maps? (How do I use a saw I created that uses textures instead of polygons to show the teeth details?)

This is one way of doing it. You will need to load a texture file that supports the alpha channel. The best format for this is PNG. Load the texture as an alpha texture and set it to the object's appearance. Then, set transparency attributes to the appearance.

1  
2  
3  
4  
          app.setTexture(TextureLoader.tf.getAlphaTexture(filename));
          ta = new TransparencyAttributes(TransparencyAttributes.BLENDED, 0.0f );
          mat.setColorTarget(Material.DIFFUSE);
          app.setTransparencyAttributes(ta);


3. How do you render everything as wireframe?

Set the RenderOptions' wireframe option to true for the canvas peer.

1  
2  
3  
        ro = new RenderOptions();
        ro.setOption(Option.ENABLE_WIREFRAME_MODE, true);
        cp.setRenderOptions(ro);


4. How do you render just one particular model as wireframe?

Get the model's appearance and set its appearance's polygon attributes.

1  
2  
3  
4  
        Appearance temp = sh.getAppearance();
        PolygonAttributes pa = new PolygonAttributes(
                PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0f);
        temp.setPolygonAttributes(pa);


5. How do you display an image icon over a character?

Use a Billboard and an appearance to create a new shape which can be made a child of the
character's branchgroup. Apply the image as a texture to the appearance. A Billboard ensures
that the image is always pointing to the camera.

6. What is a Vertex Shader? How do you use a Vertex Shader in Xith?

A Vertex Shader or Vertex Program is essentially a graphics processing function that lets you change properties of a vertex such as position and color. This can allow you to do deformation, morphing and many other interesting effects. This processing is done by the hardware alleviating the burden on the CPU. To use one in xith, you'll need to open your vertex shader and parse it into a String. Then use that string and set it as the appearance's vertex program.

1  
      appearance.setVertexProgram(new VertexProgram(strVertexShader));
16  Java Game APIs & Engines / Xith3D Forums / Re: Snap to Grid on: 2004-12-08 12:35:52
for the grid just create (or import) a plane and make it wireframe using PolygonAttributes
1  
2  
3  
Appearance temp =  grid.getAppearance();
PolygonAttributes pa = new PolygonAttributes(PolygonAttributes.POLYGON_LINE,PolygonAttributes.CULL_NONE, 0f );
temp.setPolygonAttributes(pa);


i'm not sure about snapping ... will let you know shortly
17  Java Game APIs & Engines / Xith3D Forums / Re: How do I load .MD3 object files? on: 2004-12-07 14:18:06
There's also an MD3 compiler that will let you compile MD2, 3DS and ASE objects.
You can find the link on this page
http://www.merlin.zsnes.com/tutorials/export/
18  Java Game APIs & Engines / Xith3D Forums / Re: Adding two Canvas3d's to a View doesn't work on: 2004-12-06 15:59:17
I use Windows XP, ATI Radeon 9800 Pro
19  Java Game APIs & Engines / Xith3D Forums / Re: Adding two Canvas3d's to a View doesn't work on: 2004-12-06 14:10:07
hello arne ... thanks for the tips, I tried it out but only one view renders and the other doesn't and sometimes, the other renders and the first doesn't. Have you run into this? This is the code

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  
               RenderPeer rp = new RenderPeerImpl(); 
               CanvasPeer cp = rp.makeCanvas(null,440, 480, 32, false);
               Canvas3D canvas = new Canvas3D();
               canvas.set3DPeer(cp);
               view.addCanvas3D(canvas);
                
               //RenderPeer rp2 = new RenderPeerImpl();
              CanvasPeer cp2 = rp.makeCanvas(null,640, 480, 32, false);
               Canvas3D canvas2 = new Canvas3D();
               canvas2.set3DPeer(cp2);
               view2.addCanvas3D(canvas2);
                
               view.getTransform().lookAt(      new Vector3f(0, 20, 1.0f), //Loc Camera
                             new Vector3f(0, 0, 0), //COV
                             new Vector3f(0, 1, 0)); //Up Vector
              view2.getTransform().lookAt(      new Vector3f(0, 50, 1.0f), //Loc Camera
                             new Vector3f(0, 0, 0), //COV
                             new Vector3f(0, 1, 0)); //Up Vector
             
              
               view.startView();
               view2.startView();
              
                              
               while(true) {
              view.renderOnce();
              
               }
                


Edit:
If I ask it to render both views, I sometimes get the distortion I was speaking of earlier...
Edit #2:
It renders both views correctly sometimes   :-/
20  Java Game APIs & Engines / Xith3D Forums / Re: Adding two Canvas3d's to a View doesn't work on: 2004-12-06 13:17:39
i've been mulling over this issue for a while now. In my case, only one canvas renders correctly and the other is distorted.
Please can you release your source for displaying multiple canvases?
Thanks
21  Java Game APIs & Engines / Xith3D Forums / Re: thread question on: 2004-12-02 20:04:51
it's possible ... this way you avoid making simulation changes while the view of the scenegraph is rendering
22  Java Game APIs & Engines / Xith3D Forums / Re: rotation question on: 2004-11-29 12:39:01
Maybe you could try the lookAt function
1  
2  
3  
view.getTransform().lookAt(      new Vector3f(0, 120.0f, 1.0f), //Camera location
                                                     new Vector3f(0, 0, 0), //COV
                                                     new Vector3f(0, 1, 0)); //Up Vector

23  Java Game APIs & Engines / Xith3D Forums / Re: Filter Effects on: 2004-11-29 12:19:40
it's a bummer that the solution I had in mind would be slow
24  Java Game APIs & Engines / Xith3D Forums / Re: Filter Effects on: 2004-11-27 18:42:52
that's a bummer ... thanks for the pointer
25  Java Game APIs & Engines / Xith3D Forums / Filter Effects on: 2004-11-23 12:27:55
Does anyone know how to modify the rendered images in Xith? I want to be able to make the output black and white for some real-time cutscenes.
Thanks in advance  Smiley

Edit:
I was thinking a solution would be to do an offscreen render, getting the snapshot bufferedimage and making the changes and drawing them out. Could I get some direction on this? Thanks.
26  Java Game APIs & Engines / Xith3D Forums / 3D Levels on: 2004-11-22 16:44:16
Does anyone know how to tackle building 3d levels in Xith? I'd just like some tips to get started.
Thanks  Smiley
27  Java Game APIs & Engines / Xith3D Forums / Re: geometry from shape3d on: 2004-11-16 17:23:02
GeometryArray has the info you need

1  
2  
3  
            Geometry g = shape.getGeometry();
            GeometryArray ga = (GeometryArray) g;
            System.out.println(ga.getNormalData().getCount());
28  Discussions / Miscellaneous Topics / Re: CS degrees in high demand=unemployed programer on: 2004-11-15 17:18:30
I think potential students are yet to catch up on the state of the job market or their recruiters are telling them lies... School recruiters are dangerous
29  Java Game APIs & Engines / Xith3D Forums / Re: rotation question on: 2004-11-11 13:10:57
To rotate around a particular axis, this is one way.
1  
hero.getTransform().setRotation(new AxisAngle4f(new Vector3f(0, 0, 1), 3.14f))


It sounds to me like you have two transform3d nodes (one for rotation and one for translation) and that you have their positions in the scenegraph mixed up.

To convert mouse coords to world coords, you might need to consider that the (0,0) is at the top left of the canvas for the mouse and (0,0,0) is at the center. You can always do a hack conversion like this "(e.getX() - canvas.getWidth()/2)/3;" till you can figure out the trig to get the correct values of depth
30  Java Game APIs & Engines / Xith3D Forums / Re: Setting Transparency recursively. on: 2004-11-10 12:21:26
Could you please explain this a little more? I tried this but no success...thanks  Smiley

1  
a.getMaterial().setColorTarget(Material.NONE);
Pages: [1] 2
 

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

The first screenshot will be displayed as a thumbnail.

radar3301 (12 views)
2014-09-21 23:33:17

BurntPizza (30 views)
2014-09-21 02:42:18

BurntPizza (20 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (28 views)
2014-09-20 20:14:06

BurntPizza (32 views)
2014-09-19 03:14:18

Dwinin (48 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (102 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!