Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
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 / JOGL Development / Render webpage on openGL quad on: 2007-06-11 14:48:20
Hi,

Would anybody know of a library that allows be to render a webpage (and possibly interact with it) on an OpenGL quad (either jogl or lwjgl ?)

Alex
2  Java Game APIs & Engines / Xith3D Forums / Re: PickingLibrary new supports QuadArrays on: 2006-06-30 12:20:47
You should think about about picking the OpenGL redbook. Its the defacto reference on OpenGL, and gives loks of nifty insight into 3d constructs.

Otherwise, you can just take a look at : http://www.falloutsoftware.com/tutorials/gl/gl3.htm . Its got a pretty good example of a triangle fan.

Basicly, imagine you have 6 points in your coordinates (A,B,C,D,E,F), then you need to check for triangle ABC, ACD, ADE, AEF.

Alex
3  Java Game APIs & Engines / Xith3D Forums / Re: MultiPassView and Locale on: 2006-06-30 12:16:10
French canadian, so you might see some french slip into the posts sometimes :-)

Alex
4  Java Game APIs & Engines / Xith3D Forums / Re: PickingLibrary new supports QuadArrays on: 2006-06-30 12:10:27
For triangle fans, it might be inefficient, but couldn't you just check each triangle seperatly?

Alex
5  Java Game APIs & Engines / Xith3D Forums / Re: Picking, ExtXith3DEnvironment and Perspective Projection on: 2006-06-28 22:43:43
Yup, I added this line before the pick request and it worked:

1  
environment.getView().setProjectionPolicy(RenderPass.PERSPECTIVE_PROJECTION);


Alex
6  Java Game APIs & Engines / Xith3D Forums / Re: Picking, ExtXith3DEnvironment and Perspective Projection on: 2006-06-28 21:28:28
Using your ExtEnv and ExtRender loop, I did some experiements and I think I found a bug:

if I do somethig like this:

1  
2  
3  
4  
5  
6  
      
      scenePass = new RenderPass(RenderPass.PERSPECTIVE_PROJECTION);
      hudPass = new RenderPass(RenderPass.PARALLEL_PROJECTION);
                       
      environment.addRenderPass(hudPass);
      environment.addRenderPass(scenePass);


Then the picking for scenePass gets calculated as if I was in Perspective Project. However, if I switch the addRender calls

1  
2  
3  
4  
5  
6  
      
      scenePass = new RenderPass(RenderPass.PERSPECTIVE_PROJECTION);
      hudPass = new RenderPass(RenderPass.PARALLEL_PROJECTION);
                       
      environment.addRenderPass(scenePass);
      environment.addRenderPass(hudPass);


then the picking results for scenePass are given to me as if I was in Parallel projection, even if I'm displaying in perspective mode. They way I see it, the picking library is using the last projection to resolve the coordinates, not the for the corresponding branch.

Alex
7  Java Game APIs & Engines / Xith3D Forums / Re: Picking, ExtXith3DEnvironment and Perspective Projection on: 2006-06-28 19:46:24
Actually, I wasn't having problems with the parralel view, its the perspective projection that is giving me incorrect view.

In addition, if I want to implement a game using 3/4 view (ala Diablo for example), then I need parallel view.

As for the PickListener, I could use that, its just that I have to wait for the new frame to render to get my results ... this means I'm going to have to change a lot of logic ...

Alex
8  Java Game APIs & Engines / Xith3D Forums / Picking, ExtXith3DEnvironment and Perspective Projection on: 2006-06-28 18:48:41
Hi guys,

Things are slowing moving along. I'm getting a better understand of Xith. However, I just hit a snag.

I'm currently workin with the Picking Library and everything looks good when I'm in Parallel projection (using the most excellent ExtXith3DEnvironment ). However, when I switch to perspective projection and try out picking, I get the same result as if I were in Parallel (i.e. not taking into account the Perspective pass).

Is it possible that MultiPass and Picking don't work ell togheter ?

Alex
9  Java Game APIs & Engines / Xith3D Forums / Re: MultiPassView and Locale on: 2006-06-28 15:52:48
Ok, I think I understand, lookAt only affects perspective render, for parallel, I need to rotate and translate my group.

Alex

Edit: Oups, didn't see your last message there. Ill go get the CVS version.
10  Java Game APIs & Engines / Xith3D Forums / Re: MultiPassView and Locale on: 2006-06-28 15:43:01
Looks like a good solution to my situation. But that doesn't answer my first question.

How do I make sure that the camera doesn't move for my hud render pass?

Alex
11  Java Game APIs & Engines / Xith3D Forums / Re: Wiki? on: 2006-06-28 15:10:17
I'd be happy to help if you give me publisher access. I registered a new account on the site yesterday.
12  Java Game APIs & Engines / Xith3D Forums / Re: branchgroup.compile? on: 2006-06-28 15:07:50
I think its a good idea. It would be a lot less confusing. The Xith intro doc will also need to be updated.

Alex
13  Java Game APIs & Engines / Xith3D Forums / Wiki? on: 2006-06-28 14:13:43
Does Xith 3D have a Wiki? It seems to me like a lot of the posts here could be converted into Wiki documentation.

Alex
14  Java Game APIs & Engines / Xith3D Forums / branchgroup.compile? on: 2006-06-28 13:48:08
Hi,

    I'm a little confused about the branchgroup.compile() function. I know that it compiles why scene tree into a more render-friendly format, but I'm not sure when I need to call it.

1) If a add an object to the tree, do I need to call it?
2) If I change a transformation on an object, do I need to call it?
3) If B is the child of A and I add C as the child of B ( A <-- B <-- C ), do I call B.compile, or do I need to call A.compile ?

The answer to this question might be useful addition to the Javadoc (cut & paste).

Thank you all for your patience.

Alex
15  Java Game APIs & Engines / Xith3D Forums / Re: MultiPassView and Locale on: 2006-06-28 13:44:26
Ok, that helps! Its difficult to start when the Javadoc has errors in it.  Huh

The code bellow bring two other questions to mind.

1) When working with a single view, I would use something like

1  
2  
3  
4  
         view.getTransform().lookAt(
                 new Vector3f(0, 0, 2.41f),  // location of eye
                new Vector3f( 0, 0, 0),     // center of view
                new Vector3f( 0, 1, 0));    // vector pointing up


Now, that I have two render pass,I still want the perspective pass to look at that direction, but I want the parallel pass to stay fixed. I saw your previous message where you used hud.setCameraMode(View.VIEW_FIXED); , however, what object is hud. I can't find the setCameraMode function in any of my objects (i checked, the view, the nodes, the renderpass, etc).

To change the perspective pass, do I still call the lookAt function at the view level?

2) If my two branches (perspective and parallele) are added to the view, do I still need to add them to the local?

Thanks

16  Java Game APIs & Engines / Xith3D Forums / MultiPassView and Locale on: 2006-06-28 03:11:55
Hi,

Quick question for the Xith experts:

I want to use a MultiPassView to draw in both Perspective and Parallele view (view for the scene and the hud). When I check the java doc for the MultiPassView constructor, I find:

1  
2  
MultiPassView(BranchGroup sceneGraph)
          Creates a new MultiPassView associating the given Locale with it.


But when I check, Locale is not a BranchGroup. They are both nodes, but thats about where there common ancestry ends. Im confused.

Alex
17  Java Game APIs & Engines / Xith3D Forums / glDrawPixels IN Xith3d? on: 2006-06-09 12:49:22
Hi,

My group is currently looking to switch from Jogl (doing everything ourselves) to Xith3d (where a lot is done for us). Xith seems to fit all our needs, except for one thing,

In our old interface, we would use glDrawPixels to draw the UI (the HUD). Is this functionality still available. I know that Xith3d does HUD using JPanel, but in my experiences, support for that has been buggy.

Thanks,

Alex
18  Java Game APIs & Engines / JOGL Development / Re: when does jogl call its init() function? on: 2006-06-08 17:13:31
I've noticed that it sometimes takes a few second before init is called? Is there anything special that influences the time taken for init to be called? Is there anyways I can reduce this delay?

Alex
19  Java Game APIs & Engines / JOGL Development / Re: Nicest MD2 loader ever :) on: 2006-05-19 12:47:40
Hi,

I looking into loading MD2 files into my engine. I'm already using JOGL and do not plan on switching to Xith. I'd like to see the source code of your JOGL demo box, but the link isn't good anymore.

Alex
20  Java Game APIs & Engines / Xith3D Forums / Re: Scaling of swing overlay on: 2006-04-09 16:02:34
I think I understand the bug, but I don't know how to fix it in the XithCode.

When you create a fullscreen canvas of 800x600, it is really 800 by 600.

However, when you create a windowed canvas of 800 by 600, it is realy about 770 by 590, after counting in the topbar and the borders.

So when the UI is initializes, it uses a calcPlate() or something like this to calculate the size of the window and figures out the scaling factor of the screen. Since its does not take into account the new size of the screen (770 by 590), it scales improperly.

Any ideas on this?
21  Java Game APIs & Engines / Xith3D Forums / Re: MD2 - Blender to Xith3D on: 2006-04-02 19:11:39
The md2 export in blender is broken. You can follow this thread http://www.blender.org/forum/viewtopic.php?t=8237&start=0 on the blender forum to see what we are doing.
22  Java Game APIs & Engines / Tools Discussion / Re: Webstart Configuration on: 2005-07-15 14:56:59
Me bad, didn't explain myself properly.

It's not Webstart that's not properly configured, it's their browser. So the proper question I should have asked is : Does anybody know of a good resource that will allow people to configure their browser to Webstart starts properly. In my experience, MacOs X is the only OS i've seen where every browser is configured correctly to use Webstart by default. Under Windows, Explorer is usually ok, but I've had to configure Firefox in the pass. With Linux, the browser always needs to be reconfigured.

Alex
23  Java Game APIs & Engines / Tools Discussion / Re: NSIS installer on: 2005-07-14 02:26:41
If you still have the NSIS script, I would appreciate it if you could post it on the board. Thanks.
24  Java Game APIs & Engines / Tools Discussion / Webstart Configuration on: 2005-07-14 02:25:19
Hi,

Im currently working on a project which we wish to distribute using Java WebStart. Unfortunately, we are discovering that a large number of users do not have Java Webstart properly configure (both on Windows and Linux). Does anybody know of a good webpage I can point my users to they can fix their webstart configuration. Most of my users are pretty computer savy, but I don't want to write a WebStart guide if one already exists.

Thanks,

Alex
25  Discussions / Miscellaneous Topics / Looking for Java 1.4.0 for AMD 64 on: 2005-06-09 15:58:12
Hi,

A friend of mine is doing rearch on visualing data structures in the JVM. Currently, her research works on Sun's JVM 1.4.0. Because of some special plugins, she cannot upgrade JVM.

She wants to run her project on an AMD 64 machines. Does a Sun version of 1.4.0 exist for AMD 64. Does anybody know who I could contact at Sun about this topic?

Thanks,

Alex
26  Java Game APIs & Engines / JOGL Development / Re: How to use Fullscreen in JOGL on: 2005-06-03 13:07:12
Check out the Sun official fullscreen tutorial: http://java.sun.com/docs/books/tutorial/extra/fullscreen/

It will teach you how to make a JFrame fullscreen. You can then add your GLCanvas to the JFrame and have a fullscreen GLCanvas.

For this, this works under Windows. I get wierd exceptions under MacOSX.
27  Java Game APIs & Engines / JOGL Development / Re: gluUnproject not seeming right on: 2005-05-30 16:00:12
I was having problems similar to you when I noticed that I was doing gluUnproject out of the display method (outside my valid rending context). Maybe this is the problem you are having.
28  Java Game APIs & Engines / JOGL Development / Re: glGenTextures always returns 0 on: 2005-05-18 15:54:29
Wow, that simple statement about only GLEventListener having a valid context solved all my JOGL problems. Thanks!

BTW, I already knew about the excellent Nehe ressources. Almost everything was already working in my program, I just needed to fix that nasty glGen problem and a few bus errors I was getting on Mac.
29  Java Game APIs & Engines / JOGL Development / glGenTextures always returns 0 on: 2005-05-17 16:24:01
Hi,

I'm currently have problems with glGenTextures always returning a value of 0. After searching a lot of the Net, I found that the most common cause for this is not having a valid rendering context. However, using some println statements, I found that I'm calling glGenTexture after having created glCanvas, showing it, and having completed the init function from my GLEventListener. If I manually assign texture numbers, everything works fine. Oh, and I made sure that glGenTexture is not behind called between a glBegin and a glEnd statement.

Any hints on what could be causing glGenTextures to always return 0.
30  Java Game APIs & Engines / Java 2D / Re: Incorrect Insets in Linux on: 2005-03-16 00:49:24
So i decided to go with inserting a Canvas in my JFrame since I need to be able to create a buffer strategy. Right now my code looks like this:

if (fullscreen) {
// create bufferstrategy on jframe
// draw in jframe
} else {
// insert canvas in jframe
// create bufferstrategy on canvas
// draw in canvas
}

Also, in fullscreen mode, I put the mouseListener on the jframe. In window mode, the mouseListener goes on the canvas.

So everything looks stable. I'm doing extensive testing tomorrow. I'll post if I have any problems.

Thanks for the help.
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.

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

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

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

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

Tekkerue (40 views)
2014-09-09 02:24:56

mitcheeb (63 views)
2014-09-08 06:06:29

BurntPizza (46 views)
2014-09-07 01:13:42

Longarmx (33 views)
2014-09-07 01:12:14

Longarmx (38 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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!