Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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 4
1  Java Game APIs & Engines / Xith3D Forums / Re: Pick ray on: 2004-04-26 20:46:30
Have a look at the documentation provided at Xith's webpage: http:// www.xith.org


Answers might be deeper than you expence ;p

2  Java Game APIs & Engines / JOGL Development / Re: Problem loading jogl_cg with Java WebStart on: 2004-04-24 22:10:17
Does it work if you rename jogl_cg to joglcg for example (renaming the .dll file too of course) ?

I thought the way to specify native libraries with JWS is using the tag:

<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
<nativelib href="jogl-natives-win32.jar"/>
</resources>

for example.

Do you hardcode the System.loadLibrary inside your code? Isn't better to try using the .jnlp file to load the libraries?

I had some troubles with webstart in linux, because it complained about finding the library files but in windows everything worked ok. (in linux, I had to extract the files from the .jar and place them in the codebase of the .jnlp file)  Hope I'm making some sense Wink
3  Java Game APIs & Engines / Xith3D Forums / Re: Scene tree display tool, is there one?? on: 2004-04-23 19:43:13
You can get the root of your scene graph, and dump that into a JTree.  Write a recursive toTreeNode(SceneGraphObject obj) and that shoul do it. I don't have time to write some example code now, but some might be able to help more.

I thought that some code that printed the tree structure somewhere.. can't remember now.
4  Java Game APIs & Engines / Xith3D Forums / Re: Permission Denied in accessing driver in linux on: 2004-04-22 16:20:37

quoting myself from my reply at jogl:

Thanks for the hints folks.

I asked around a few people here, and I was told that this was due to a bug in RedHat.  It seems that there is a problem with users sharing same security policies (the first user that logged on the machine holds the access to the nvidia card, and any other user that tries access it, gets a "permission deined").  The solution is just to reset the machine, and be the first to log in  

This is a public machine at a university, btw.

appreaciat the help anyway.

5  Java Game APIs & Engines / JOGL Development / Re: Permission Denied to access graphics card on: 2004-04-22 16:18:02
Thanks for the hints folks.

I asked around a few people here, and I was told that this was due to a bug in RedHat.  It seems that there is a problem with users sharing same security policies (the first user that logged on the machine holds the access to the nvidia card, and any other user that tries access it, gets a "permission deined").  The solution is just to reset the machine, and be the first to log in Wink

This is a public machine at a university, btw.

thanks anyway.
6  Java Game APIs & Engines / Xith3D Forums / Permission Denied in accessing driver in linux on: 2004-04-22 14:24:00
I was trying to run a jogl-based xith application on a linux machine and got the following problem:


1  
2  
3  
4  
5  
NV: could not open control device /dev/nvidiactl (Permission denied)
Error: Could not open /dev/nvidiactl because the permissions
are too resticitive.  Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.


Do I need to be root to access the driver? How can this be solved? I really


ps: I'm sorry for posting here since it's really a jogl issue, but maybe some one had some experience with this issue. thanks
7  Java Game APIs & Engines / JOGL Development / Permission Denied to access graphics card on: 2004-04-22 14:20:16

I was trying to run a jogl application on a linux machine and got the following problem:


1  
2  
3  
4  
5  
NV: could not open control device /dev/nvidiactl (Permission denied)
Error: Could not open /dev/nvidiactl because the permissions
are too resticitive.  Please see the FREQUENTLY ASKED QUESTIONS
section of /usr/share/doc/NVIDIA_GLX-1.0/README for steps
to correct.


Do I need to be root to access the driver? How can this be solved? I really need this to work on this machine, which I don't have root access. Help, please Smiley



8  Java Game APIs & Engines / Xith3D Forums / Re: Changes to match latest JOGL build on: 2004-04-22 08:43:44
WOW!

[pedro kindly bows, in awe, to Yuri]

ps: I actually wasted 20mins trying to understand buffers to adapt to the change, but all in vain :p
9  Java Game APIs & Engines / Xith3D Forums / Re: Changes to match latest JOGL build on: 2004-04-22 07:55:14


There is a new jogl build: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1081799754

I think there will be more work coming to the Xith guys Wink

First thing I realised was that it uses some buffers instead of arrays. I tried used the new build with xith, and it was ok until I tried to pick something. Their new glSelectBuffer takes different parameters.



Technology always moves too fast... Smiley


10  Java Game APIs & Engines / Xith3D Forums / Re: Changes to match latest JOGL build on: 2004-04-20 11:21:03
Sorry... my bad. My classpath wasn't pointing to new builds Embarrassed  Everything works great!
11  Java Game APIs & Engines / Xith3D Forums / Re: Changes to match latest JOGL build on: 2004-04-20 10:43:54
I updated my CVS tree to reflect the new changes, and I also got the jogl library and I get the following error trying to run Xith:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
java.lang.AbstractMethodError: com.xith3d.render.jogl.OldStyleGLCapabilitiesChooser.chooseCapabilities(Lnet/java/games/jogl/GLCapabilities;[Lnet/java/games/jogl/GLCapabilities;)I
      at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCreateContext(WindowsGLContext.java:283)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.create(WindowsOnscreenGLContext.java:204)
      at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:129)
      at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
      at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:199)
      at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
      at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
      at com.xith3d.render.jogl.CanvasPeerImpl.render(CanvasPeerImpl.java:1084)
      at com.xith3d.scenegraph.View.renderOnce(View.java:734)
      at com.xith3d.scenegraph.View.renderOnce(View.java:667)
      at third.Main.run(Main.java:158)
      at java.lang.Thread.run(Thread.java:536)


I'm trying to see what's wrong, but if you could spot it easier, let me know Smiley



EDIT: use [ code ] tag
12  Discussions / General Discussions / Re: (yet another) YABB annoyance on: 2004-04-18 19:59:38
Quote


The old board is still accessible here:

http://www.java-gaming.org/discus/

Please be aware that that board was shut down in late 2002.  Technology has changed, Java has certainly changed, and I would hope that most of the people here have changed as well.  Don't treat any listed opinions as an accurate representation of a person today, and don't even look at any benchmarks! Grin


The current forum definitely looks much better Smiley
Thanks for the link, and don't worry. I always expect things to evolve/change as time passes.



13  Java Game APIs & Engines / Xith3D Forums / Re: Changes to match latest JOGL build on: 2004-04-18 16:51:50
Quote

b) GL_SELECT: works fine now I think (the single-frame flicker is gone). However, when I load at least one large 3d model (with many polgons) and set all its nodes to setPickable(true), and then call view.pick(..) it takes ages (3++ seconds) until the call returns. No matter where I click and if there's a hit or no hit result.
How would I do it correctly so that it is fast?



I have the same problem. Picking takes ages for me too. I think an altervative to solve this is to implement our own picking, which could be designed in way that is efficient for us.

I use picking to select objects that are on the scenegraph, but since I keep a reference of all those objects anyway. I was thinking that checking which object contains a given point might be faster than using the current picking ray algorithm. I do not really know why it takes so long for jogl to find those objects, and I might not be aware of all the technical problems with the approach I consided above. But it's what I'm considering to do right now.  

(Do you think that if we setPickable to false to some shapes that we know are not in the picking area, that might improve performance? Not sure if just the act to check which shapes are probably in the picking area might take too long anyway.. well.. it's an open problem :))


Yuri, I'll try the new changes from CVS, and see how it goes. Thanks :)





14  Discussions / General Discussions / Re: (yet another) YABB annoyance on: 2004-04-18 16:40:01
Quote


Maybe the forum hates me because I'm using Opera...
:-)


I recently discovered that if you paste some text into the message text area, if the lines are longer than the width of the box, it will not get wrapped, and they will simply not show on the screen. Do you get those as well? I couldn't say if it's an Opera issue or an YaBB one, or both Wink


In relation to all the comments, I did realise that YaBB is not that bad. It's pretty good, and fast and realiable. It's also a piece of software, which is open to a few routine  bugs Tongue

I do not really know about the "other" forum. I think  cfmdobbie mentioned about [em]discus[/em], is there a link pointing to some history about that? I'm quite new to the javagaming community, and I would be curious to learn a bit about its past... Smiley

15  Java Game APIs & Engines / Java Sound & OpenAL / Re: JOAL not working? Please try this. on: 2004-04-18 16:39:11
Try https://joal.dev.java.net/  Wink
16  Discussions / Miscellaneous Topics / Re: Some papers on: 2004-04-18 02:11:59
Hehe. I'm not sure why the tag is showing. Quite amusing Smiley   I noticed a few bugs in the forum, but in light of what was said about YABB in another thread, it does a relative good job Grin


I think most things are accessible online nowadays. We probably associate "code things" to be online because the Internet was a common medium to programmers. But now the Internet is becoming the the vehicle of choice of any type of information. I don't think need anyone can emphasise enough on how this is a marvellous thing Smiley

Look at what Amazon did with their extra-cool search engine. You can search inside ALL their books. Implying that their content is partially on-line. Today, I can see lectures, videos, etc... all via my broadband access. But anyway, sometimes my eyes do get tired and I still like the feeling of hard copy books. But who knows if the newer generations only might only have e-ink books, and paper books will be considered a "thing" of the old Tongue

17  Java Game APIs & Engines / Xith3D Forums / Re: Text2D, Text3D in Xith3D? on: 2004-04-18 01:42:37
Hi gpothier,

Great work with the text stuff! Thanks for making it available Grin  I was I trying to use it at this momenet, but the texture of the shape appears reflected on the screen. I'm trying to fix that, but it would be cool if you could give me a hint Tongue

In the FontManager class, you have the following to render the texture of a char of the string:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
char theChar = aString.charAt(i);
                  int theWidth = getWidth(theChar);
                 
                  int theBaseTexCoordIndex = (theChar - 32) * 4;
                 
                  float theCurrentX = aRenderLocation.getX();
                  int theVertexIndex = aRenderLocation.getVertexIndex();

aQuadArray.setCoordinate(theCurrentX, 0, 0);
                  aQuadArray.setCoordinate(theCurrentX, itsFontHeight, 0);
                  aQuadArray.setCoordinate(theCurrentX+theWidth, itsFontHeight, 0);                  
                  aQuadArray.setCoordinate(theCurrentX+theWidth, 0, 0);
                 
aQuadArray.setTextureCoordinates(0,
                                    theVertexIndex,
                                              itsTextureCoordinates,
                                                    theBaseTexCoordIndex, 4);
                                                     
     
                  ..



I don't really understand how the setTextureCoordinate method works... What's the meaning of  theBaseTexCoordIndex variable? and why the hell equals  (theChar - 32) * 4 ? Sorry to be annoying to ask all these simple questions.

I'm trying to get the font work with Billboards too.. Has anyone actually improved the Billboard class? I heard in the forum about people using Billboard to display labels.. how did people implement that?  I'm really considering using the amazing UIOverlay hack, but I fear that my already low FPS will drop a lot Sad





18  Java Game APIs & Engines / Xith3D Forums / Re: Scenegraph to/from XML on: 2004-04-17 23:46:39
Quote


Note I'll worry about a version that outputs X3D XML format when I get this all working with my format.



Hi zparticle,

thanks for the Xml reader/writer. It was quite useful for my project.

A quick question, are you going to attempt to ouput to X3D format? How would you start the job? I had a look at the X3D specification, and it's looks a bit daunting..

19  Discussions / Miscellaneous Topics / Some papers on: 2004-04-17 19:13:48

I was just browsing around, and the papers in this link might be useful for someon: http://
http://hypertext.rmit.edu.au/dac/papers/
20  Java Game APIs & Engines / Xith3D Forums / Re: Geometric primitives factory on: 2004-04-17 14:09:18
Your code works really well for me so far. Great job and thanks for taking the initiative! As a side effect, I hope you are not seing the world around you as collection of triangles and vertices Wink I'm looking forward to see all these new features indeed Roll Eyes

Just a quick question: when do you think you'll be adding texture support?

And perhaps, we should leave the world dominatio task to pink & the brain* Tongue



* the cartoon


EDIT: spelling
21  Java Game APIs & Engines / Java Sound & OpenAL / Re: Out of Memory Error on: 2004-04-17 13:42:10
I'm trying to update my .dlls... I think there's where the problem lies Tongue

Just did it, as it was mentioned in a previous post and got a different error now:

ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
Pointer = 104007248
ALC = net.java.games.joal.ALCImpl@42552c
no more sources available : INVALID VALUE
OpenAL sound driver initialized with 29 availble sources
Exception in thread "main" java.lang.Error: A null URL was passed to MediaContainer.
       at com.xith3d.scenegraph.MediaContainer.<init>(MediaContainer.java:74)
       at com.xith3d.test.SoundTest.<init>(SoundTest.java:134)
       at com.xith3d.test.SoundTest.main(SoundTest.java:258)

Hmm...
22  Java Game APIs & Engines / Java Sound & OpenAL / Re: Out of Memory Error on: 2004-04-17 13:26:44
I'm getting a similar error (whilst using joal under Xith):

ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
Pointer = 104348400
ALC = net.java.games.joal.ALCImpl@42552c
no more sources available : OUT OF MEMORY
OpenAL sound driver initialized with 32 availble sources
Exception in thread "main" java.lang.Error: A null URL was passed to MediaContainer.
       at com.xith3d.scenegraph.MediaContainer.<init>(MediaContainer.java:74)
       at com.xith3d.test.SoundTest.<init>(SoundTest.java:134)
       at com.xith3d.test.SoundTest.main(SoundTest.java:258)

Could anyone give some hints?


Guoshima,

Change the shorcut of eclipse to something like:

eclipse.exe -vmargs -Xmx256m

It didn't help me anyway Tongue


23  Java Game APIs & Engines / Xith3D Forums / Re: Performance boost with quadrics on: 2004-04-17 12:13:07
Worked like a charm Smiley

Just added the line you proposed to ShaderAtomPeer, and that was it. Magic!

I actually new about that GLU method, but wouldn't expect that was the only thing required, but it was Tongue


thanks for the hint.
24  Java Game APIs & Engines / Xith3D Forums / Re: textures only showing in .setShowBounds(true, on: 2004-04-17 12:11:39
Mine is working now too Grin

The problem was that some of my geometries didn't have textured generated (the Utils.createSphere() method does not include texture coordinates, for instance).


Xith still rulez Roll Eyes



EDIT: spelling
25  Java Game APIs & Engines / Xith3D Forums / Re: Performance boost with quadrics on: 2004-04-16 19:09:48
jkc6n, did you try to use textures with your QuadricSphere?

Could you or someone enlighten me on how this can be done?

26  Java Game APIs & Engines / Xith3D Forums / Re: Geometric primitives factory on: 2004-04-16 18:47:22

I was having a look around the code, and I think it would be very useful to add texture coordinates to the geometries too.

The way I undestand Xith, if the geometry doesn't have such information, then textures simply won't work. Am I mistaken?
27  Java Game APIs & Engines / Xith3D Forums / turning debug on? on: 2004-04-16 16:29:46

Is there a way to turn the debug from Xith on?

I even tried setting the debugGL in CanvasPeerImpl to true, but it didn't work.  Any hints?
28  Java Game APIs & Engines / Xith3D Forums / Re: I will try and get Xith3D to work with LWJGL . on: 2004-04-16 16:17:29
In JCD we trust Wink
may the force be with you.



EDIT: spelling
29  Java Game APIs & Engines / Xith3D Forums / Re: [Problem] Shape3D geometries on: 2004-04-16 15:43:01
I know.. there are many unimplemented method in the Xith api.  I've implemented some of those that were trivial and essential to me (such as some in the VirtualUniverse  about adding Views and so on..)

Yuri say that we should post those issues on bugzilla on the project's webpage. But I've been lazy to actually use it.


I'm just curious about the question you posed, what does it mean for a Shape to have more than one geometry? Visually, I mean?  I can understand a shape object having stored a lot of geometries but just one active. But is that what you meant?

My tip for now is, just quickly implement those methods you know you need to keep you working.

If people could enlight me too: a problem I face is that I'm not sure how to update stuff from CVS now. Is there a way to update from CVS and keep my changes in place, even if only have a guest account?


30  Java Game APIs & Engines / Xith3D Forums / Re: textures only showing in .setShowBounds(true, on: 2004-04-16 15:35:03
This post is useless in many sences, but you might feel better that's not only you having difficulties with texture Wink I am having troubles with textures as well...

Right now, not even using .setShowBounds(true, true) works for me.  I had them working before, so not sure what's going on.

Having a look at the demos, to set up a shape with texture, we only need:

Texture2D texture;

aPlane = new Appearance();
aPlane.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_FILL, PolygonAttributes.CULL_NONE, 0));
aPlane.setTexture(texture);
plane.setAppearance(aPlane);

But I'm getting a gray shape.. hmm.. not sure what's going on.

Mine scenegraph is not simple one, so I cannot really see what's going on. I have an "editing" scenegraph, and then I copy all the nodes of interest to a "playing" scenegraph, and change the appearances of certain shapes as adequate. The application creates a new canvas to view the "playing" scenegraph, but textures are not working, *and* having any shape which is *different* from QuadricSphere (implemented from a thread in this forum) makes the application crash.  Very annoying stuff... and I'm trying to solve it now.

Ah, what's the version of xith and jogl you're running?
What kind of situation is yours roughly? Do you do any copying of nodes? The problem might be related to mine. I think in my case, there is some problem regarding the cloning of scenegraphobjects, since I might not sure if it's good idea to have things being shared between two running views.

Can anyone clarify on that? If there two canvas, with two different universes but which share some appearances and shapes, is there any potential issue on that?

cheers Tongue



Pages: [1] 2 3 4
 

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

The first screenshot will be displayed as a thumbnail.

Riven (4 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (20 views)
2014-07-29 03:07:13

E.R. Fleming (8 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!