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 ?
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|