Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (488)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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 / Re: Apply transparency to glCallList on: 2010-07-22 11:31:24
I suppose I have no choise.
Thanks for your quickly answer.
2  Java Game APIs & Engines / JOGL Development / Apply transparency to glCallList on: 2010-07-22 10:45:23
Hi:

I´m working with heavy lists. And I want to change the transparency of all elements of the list. Now I´m deleting and creating the list again, what is very inefficient and it works very slow. The question is if it is possible to apply a global transparency to one list just before I draw it  ( glCallList ).

Regards.
3  Java Game APIs & Engines / JOGL Development / Re: Light problem on: 2010-07-09 08:49:35
Your are right. It is a problem of the normal. If I change the points to calculate the normal, sometimes it draws correctly, but others it doesn´t, but I don´t know how to know if the normal is correctly calculated. I use always the same code to calculate it. Some idea?
4  Java Game APIs & Engines / JOGL Development / Re: Light problem on: 2010-07-09 07:49:34
Hi again.
Thanks for the answer.

Now I have all my polygons directed to the same side, and the most of the polygons show correctly. But I continue with a problem. Some of the polygons appear black, they doesn´t apply the color that I have put to gl. I have made some tests and it seems to be related with concave and convex polygons, because when I delete some point it works. I delete the points which go toward the inside of the polygon.
I´m going to try to show an example of two polygons (with extrude) that execute the same code, the only difference is one point. Do you have some idea how to solve it??
Regards




5  Java Game APIs & Engines / JOGL Development / Re: Light problem on: 2010-07-08 14:17:19
I´m trying to get access to the process of creating shapes, perhaps I can transform some code. But I can´t solve one problem. How to know when a polygon is given in counter-clockwise order, or if the ordering is clockwise.
Thanks for your answers Wink
6  Java Game APIs & Engines / JOGL Development / Re: Light problem on: 2010-07-08 06:58:14
Thanks for the answer lhkbob.
I have no control to create the shapes, so I can´t choose the order of vertices. I have tried with glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE), but it change the face which is lighted, but it doesn´t light the two faces of shapes.
7  Java Game APIs & Engines / JOGL Development / Light problem on: 2010-07-07 10:59:31
Hi.
I have a problem with lights, and I can´t solve it.
I´m drawing several shapes which are composed by polygons. I apply the same colors and lights to all shapes. All polygons have one face lighted and the other shaded. The problem is that in some shapes the faces lighted are just the opposite that in the others, and this causes an annoyed scene.
I have made some tests, and I can change the face lighted inserting the points just in the opposite order, but I can´t control this with a lot of shapes.

Is there any way to light the two faces of the polygons (   I have tried with glMaterialfv(GL.GL_FRONT_AND_BACK,   doesn´t work to me  ), or how can I get to light always the face in the same orientation??

Thanks.
8  Java Game APIs & Engines / Xith3D Forums / Matching between coordinates and pixels on: 2010-04-08 10:47:41
Hi again.

I have another question. I´m drawing a shape3D, but I want to draw it in a position of the canvas which I have the position (in pixels). The problem is I don´t know how to do the matching between the pixels in the canvas and the space coordinates.

Some idea??
9  Java Game APIs & Engines / JOGL Development / Re: Get triangles from an image file on: 2010-04-05 13:34:43
I´m going to take a look what you say.
Thanks to both for the answers  Smiley
10  Java Game APIs & Engines / Xith3D Forums / Re: Split a TextureImage2D on: 2010-04-05 13:33:54
Thanks again. I´m going to try it Wink.
11  Java Game APIs & Engines / Xith3D Forums / Re: Split a TextureImage2D on: 2010-04-05 12:17:21
Thanks a lot for the answer. I don´t have clear one thing. In this example the object BufferedImage out what you return has all image or only the part that you clipped. If it is only the part that you clipped it is what I need.

Thanks again.
12  Java Game APIs & Engines / JOGL Development / Get triangles from an image file on: 2010-04-05 08:55:07
Hi everyone:

I have an image file and the coordinates of the triangles that the GL object uses to cut the image and draw the differents parts. I use the method "glTexCoordPointer" of the GL object to assign the Texture coordinates.
Is there any way to get a different BufferedImage from each triangle of the image that the GL object creates?

Thanks.
13  Java Game APIs & Engines / Xith3D Forums / Split a TextureImage2D on: 2010-04-05 08:32:19
Hi everyone:

I have a difficult problem to solve.
I have a Shape3D object (with his TextureImage2D and his Geometry). The TextureImage2D is loaded from an image file. I need to get a BufferedImage to each part of the Shape3D object or to each Triangle of the shape. I only can get the BufferedImage from all the image file.
May be some option to get differents images from the original image file using the texture coordinates?

Thanks
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.

TehJavaDev (17 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (68 views)
2014-08-11 02:49:23

BurntPizza (45 views)
2014-08-09 21:09:32

BurntPizza (36 views)
2014-08-08 02:01: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!