Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (854)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Graphics Inconsistancy  (Read 1756 times)
0 Members and 1 Guest are viewing this topic.
Offline swh

Junior Newbie

Modelzilla rocks!  Java's cool too!

« Posted 2003-08-26 02:38:05 »


Just last week I changed my OpenGL rendering code to use JOGL instead of GL4Java.  I was able to get it working well on both Windows and Linux in less than a day.  Very nice.

But, Solaris wasn't so sucessful.  I am running the very latest Java version (1.4.2) and Im getting very strange lighting behaviour.  I have made a test program that shines a single directional light from the upper right top, onto a grey sphere.  The directional light comes out at maximum brightness at every vertex it strikes, regarless of the angle at which they hit the sphere.

Could I be forgetting to set some OpenGL defaults that are different on Solaris OpenGL and Windows OpenGL? Any luck with Solaris, anyone?

I have included screen shots of my test program:
Windows (good picture) Smiley

Solaris (bad picture) Sad

Oh, but wait!  Lets see what happens with GL_SPECULAR set to zero.... wait.... testing.... it fixes it!  Now the sphere looks evan better on Solaris then on Windows.  In the old version, the version that gives a specular highlight in a few polygons on Windows, the GL_SPECULAR color was set to be the same as GL_DIFFUSE - but this gives crazy shading on Solaris.  So Im not sure how safe this GL_SPECULAR term is to use.  For some reason, GL4Java doesn't have this problem.  Sven Goethel is a genius!        
Pages: [1]
  ignore  |  Print  

EgonOlsen (1249 views)
2018-06-10 19:43:48

EgonOlsen (1118 views)
2018-06-10 19:43:44

EgonOlsen (858 views)
2018-06-10 19:43:20

DesertCoockie (1268 views)
2018-05-13 18:23:11

nelsongames (1101 views)
2018-04-24 18:15:36

nelsongames (1330 views)
2018-04-24 18:14:32

ivj94 (2071 views)
2018-03-24 14:47:39

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

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

Solater (788 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!