Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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 / JOGL Development / XOR with texture masked on: 2005-08-30 21:37:09
Hi,

I'm working in a 2D editor ( polygons, rectangles, circles, lines, images, etc). Images are represented by textured polygons.
To translate the shapes fast I use the xor operation. My problem is when I translating a masked image.

The xor operation don't respect the alpha channel, and  the masked area from image appear white.

Any idea?

Thank's.

Stiva
2  Java Game APIs & Engines / JOGL Development / Partial drawing of model on: 2005-06-08 13:17:41
I am developing a 2d editor. In some cases, is necessary render specific regions of the model, instead of render it all.  This is possible?
3  Java Game APIs & Engines / JOGL Development / Re: Using a GLCanvas with SWT ? on: 2005-05-27 11:24:55
To use GLCanvas with swt, I do this:

- First I extend a Panel and add a GLCanvas:

public class GLPanel extends Panel{
   private GLCanvas canvas = null;
   private GL gl;
   private GLU glu;

   public GLPanel(){
     GLCapabilities cap = new GLCapabilities();
     this.canvas = GLDrawableFactory.getFactory().createGLCanvas(cap);
     this.setLayout(new BorderLayout());
     this.add(canvas);
     }

     .....
}


- Then I add the GLCanvas to a SWT Composite, with SWT_AWT bridje.

private void addGlCanvas(Composite parent)
     {
     FillLayout fl = new FillLayout();
         parent.setLayout(fl);
         Composite glCompo = new Composite(parent, SWT.EMBEDDED);
     // bridje swt -> awt
     fDrawSurface = new GLPanel();
     fDrawSurface.addAdjustmentListener(this);
           

     Frame awtFrame = SWT_AWT.new_Frame(glCompo);
     awtFrame.add(fDrawSurface);
     }

Work's fine.
4  Java Game APIs & Engines / JOGL Development / Xor operation on: 2005-05-24 19:40:25
Hi,

I need to draw elements of feedback with the user as marquee of selection, mouse cursors , etc...  I do not want to render all drawing to each movement of mouse.  Exists some more performatic alternative, as xor operation (to invert pixels)?

thanks
5  Java Game APIs & Engines / JOGL Development / Share textures and DisplayLists on: 2005-05-19 20:16:43
I have two GLCanvas in my application.  I can share textures and DisplayLists created from one between the two?
6  Java Game APIs & Engines / JOGL Development / Re: Quality for small polygons on: 2005-04-27 12:19:16
I get good results applying a contour to the polygons with 50% of transparency. Work like a antialias.
7  Java Game APIs & Engines / JOGL Development / Quality for small polygons on: 2005-04-20 20:30:35
Hi,

I am drawing characters from poligonos returned from the Freetype library.  I am having problem when apply zoom out, because the text is unreadable.  The fine poligonos disappear or are distorted.

Exists some filter that improves the quality to the poligonos?
8  Java Game APIs & Engines / JOGL Development / Re: Problem with glGetIntegerv/glGetDoublev on: 2005-03-21 16:06:15
Can you write a simple code with the skeleton of sugestion?
9  Java Game APIs & Engines / JOGL Development / Problem with glGetIntegerv/glGetDoublev on: 2005-03-21 15:15:46
Hi,

I have a problem to get values for modelMatrix, projectionMatrix and viewport.  I only obtain the values for this matrices if the respective init function are called in Display() method.

Follows the code:

     private YxxfGfxPointW DCStoMCS(YxxfGfxPointS pt) {
           int[] viewport = new int[4];
           double[] matrizModelo = new double[16];
           double[] matrizProjecao = new double[16];
           int winY;
           double[] x = new double[1];
           double[] y = new double[1];
           double[] z = new double[1];
           
           // get the matrix values
           gl.glGetIntegerv(GL.GL_VIEWPORT, viewport);
           winY = viewport[3] - pt.y - 1;
           gl.glGetDoublev(GL.GL_MODELVIEW_MATRIX, matrizModelo);
           gl.glGetDoublev(GL.GL_PROJECTION_MATRIX, matrizProjecao);
...

somebody knows the reason?

MaurĂ­cio
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.

xsi3rr4x (56 views)
2014-04-15 18:08:23

BurntPizza (54 views)
2014-04-15 03:46:01

UprightPath (67 views)
2014-04-14 17:39:50

UprightPath (50 views)
2014-04-14 17:35:47

Porlus (67 views)
2014-04-14 15:48:38

tom_mai78101 (91 views)
2014-04-10 04:04:31

BurntPizza (152 views)
2014-04-08 23:06:04

tom_mai78101 (248 views)
2014-04-05 13:34:39

trollwarrior1 (205 views)
2014-04-04 12:06:45

CJLetsGame (212 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!