Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 / Java 3D / Re: GL4Java-glTranslatef.glTexture on: 2003-05-29 06:03:47
If you are using a perspective view, then the amount the globe travels in the x and y direction is highly dependant on its depth.  It will take a smaller change in x to move closer objects than it would to move farther objects the same perceived amount (i.e. a 1/4 screen).  Ortho projects maintain a constant relationship, but not necessarily 1:1, so connecting mouseMoved values directly to x or y just isn't going to work.

Do you really want to move the globe?  Perhaps, you just want to change the camera location/view.  This is a lot easier to do with the mouse and is similar to moving the scene.  Looking directly at an object and then looking to its right has the appearance of moving the object to the left.  So maybe moving the view of the camera is an option for you.

As far as the texture goes, you may want to look into mipmapping your textures, esp. if you will be changing the depth (zoom in/out) and use GL_LINEAR_MIPMAP_NEAREST instead of GL_LINEAR for your GL_TEXTURE_MIN_FILTER parameter.

2  Discussions / General Discussions / Re: New Forum: GL4Java or OpenGL on: 2003-05-22 10:49:12
Here's another vote for GL4Java as a separate forum!  Cool Now celebrating [size=6]100[/size] demos!

3  Java Game APIs & Engines / Java 3D / Re: GL4Java-GL_LINES on: 2003-05-15 02:25:34
Your code is good, check your camera position to ensure that (0,0,0) is within the view frustrum.
4  Java Game APIs & Engines / Java 3D / Re: GL4Java-TextureLoader on: 2003-05-14 07:24:18
Actually, your whole scene is being drawn upside-down, you just didn't realize it because an upside-down sphere still looks like a sphere.  ;)

Anyway, in your reshape method, just after your gluPerspective call, call this:


And that will fix it for you.  The reason is because you are using the swing version of gl4java.  If you had been using the canvas, this would have been unnecessary.  The technical reason is because gl4java copies the ogl screen buffer to the swing graphics buffer, but the two buffers interpret the direction of the Y axis differently.  In ogl, the +Y axis points up towards the top of your screen.  In swing graphics, +Y points toward the bottom of your screen.  So, an image drawn in ogl would appear upside-down when copied to swing.

5  Java Game APIs & Engines / Java 3D / Re: GL4Java- viewpoint manipulation on: 2003-05-08 22:29:58
You probably have your far clip plane set too close, try increasing the far clip plane.



P.S. My web page has about 100 gl4java tutorials you may find useful.  Grin
6  Java Game APIs & Engines / Java 3D / Re: GL4Java-GLUT Functions on: 2003-05-06 10:13:56
Try this:

protected GLUTFunc glut = null;
glut = new GLUTFuncLightImpl(gl, glu);
glut.glutWireSphere(double radius, int slices, int stacks);
Pages: [1]
ivj94 (580 views)
2018-03-24 14:47:39

ivj94 (44 views)
2018-03-24 14:46:31

ivj94 (371 views)
2018-03-24 14:43:53

Solater (60 views)
2018-03-17 05:04:08

nelsongames (107 views)
2018-03-05 17:56:34

Gornova (147 views)
2018-03-02 22:15:33

buddyBro (690 views)
2018-02-28 16:59:18

buddyBro (90 views)
2018-02-28 16:45:17

xxMrPHDxx (492 views)
2017-12-31 17:17:51

xxMrPHDxx (728 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!