Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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 / Isometric view of cube ? on: 2004-04-06 13:00:06

I am a newbie to OpenGL and JOGL. I have defined a cube as a Collection of polygons. How does one render this to show the 3D effect ? I tried doing a glu.glLookAt(...) function but it doesnt seem to help.

Any ideas or sample code will  be appreciated.

Thanks

-- pady
2  Java Game APIs & Engines / JOGL Development / filled polgon not working for star-shape... on: 2004-02-27 17:00:31

I have a set of coordinates ( 10 of them ) that forms a star-shape. When I use GL.glBegin(GL_LINE_STRIP ), the lines show up as a star-shape ( as expected ) but not filled. When I try to use GL_POLYGON, I see that the first coordinate and the last coordinate dont complete. Rather polygon 1-2-3 get filled and then the rest are filled correctly.

Any ideas ?


Thanks

-- pady
3  Java Game APIs & Engines / JOGL Development / jogl error - newbie question... on: 2004-01-28 01:29:16

I am learning OpenGL as part of a computer graphics course using JOGL.

I have a JFrame, whose content pane has a main panel I have created with a cardlayout. To this panel, I add 2 panels ( one for animation and one to show matrix transformations ). Both of these panels ( are in their own class ) creates a GLJPanel to do the OpenGL calls. But when I add these 2 panels to the main panel ( card layout ), I get an exception when the frame is displayed.

net.java.games.jogl.GLException: Error creating offscreen bitmap
at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.create(WindowsOffscreenGLContext.java:150)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:117)
at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.makeCurrent(WindowsOffscreenGLContext.java:116)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLJPanel.reshape(GLJPanel.java:131)
at java.awt.Component.setBounds(Component.java:1665)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:683)
at java.awt.Container.layout(Container.java:1017)


Any ideas ?

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.

pw (22 views)
2014-07-24 01:59:36

Riven (20 views)
2014-07-23 21:16:32

Riven (17 views)
2014-07-23 21:07:15

Riven (20 views)
2014-07-23 20:56:16

ctomni231 (48 views)
2014-07-18 06:55:21

Zero Volt (44 views)
2014-07-17 23:47:54

danieldean (35 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (52 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!