Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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 19:37:09

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?


2  Java Game APIs & Engines / JOGL Development / Partial drawing of model on: 2005-06-08 11: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 09: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());


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

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

     Frame awtFrame = SWT_AWT.new_Frame(glCompo);

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

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)?

5  Java Game APIs & Engines / JOGL Development / Share textures and DisplayLists on: 2005-05-19 18: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 10: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 18:30:35

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 15: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 14:15:46

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?

Pages: [1]
Dwinin (61 views)
2015-11-07 13:29:08

Rems19 (74 views)
2015-10-31 01:36:56

Rems19 (67 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (90 views)
2015-10-23 10:42:45

Jervac_ (103 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (113 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (165 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!