Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
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: How to use OpenGL extensions in JOGL on: 2003-08-01 22:15:16
the only time ive had to check for a function is with ati's GL_ATIX_PN_TRIANGLES also called GL_ATI_PN_TRIANGLES which isn't in the extention list when it should be,  so checking if the function glPNTrianglesiATI was available was the only way to see if i could use the extention.

In most cases you should just be able to check for the extention (or check your opengl version number as in the multitexture case if its later than 1.2.1 it must be there)
2  Java Game APIs & Engines / JOGL Development / Re: mipmap problems on: 2003-08-01 11:50:39
hmm, /me looks at code again
3  Java Game APIs & Engines / JOGL Development / Re: How to handle more texture units than allowed on: 2003-08-01 07:03:24
You draw the polygon as normal with the first textures.
You then bind the new textures.
Enable glBlend and choose the correct blend function (the options are listed in section 4.1.7 in the gl Spec document)
Draw the polygon again with the new textures.
Disable gl_Blend

or in code form:
//Draw normally here

//change the texture env (fiddle with them until you get the right effect

//change the blend function to the wanted effect
//this one is a double modulate blend
//you should be able to get all of the same glTexEnv's you can get in single pass rendering with diffrent blend functions
//enable blending
gl.glEnable (GL.GL_BLEND);

//bind new textures

//draw the polygon again here

gl.glDisable (GL.GL_BLEND);
4  Java Game APIs & Engines / JOGL Development / Re: jawt and jogl install on: 2003-07-30 20:59:19
make sure 'C:\j2sdk1.4.2\jre\bin' is in your path, i had a similar problem.
Pages: [1]
roseslayer (529 views)
2016-08-06 11:43:29

roseslayer (485 views)
2016-08-06 09:43:11

xTheGamerCodes (559 views)
2016-08-04 15:40:59

xTheGamerCodes (554 views)
2016-08-04 15:40:24

orrenravid (899 views)
2016-07-16 03:57:23

theagentd (976 views)
2016-07-11 14:28:54

Hydroque (1073 views)
2016-07-06 05:56:57

Hydroque (1047 views)
2016-07-03 08:52:54

GrandCastle (863 views)
2016-07-01 09:13:47

GrandCastle (644 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 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!