Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (736)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (813)
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  
  Showing wireframe on some computers  (Read 1544 times)
0 Members and 1 Guest are viewing this topic.
Offline nardev

Senior Newbie





« Posted 2005-11-11 09:02:58 »

My buddy tried a game of mine on his computer where I load 3d models from a text file. On my computer it runs ok, but on his it shows wire frames of models even though I specifically turn them off. Has anyone had problems like that before? I am using LWJGL as an openGL extension. You can see for yourself at www.javagamesfactory.org. The game is CroAsteroids. It's weird. I'm sure i'ma doing something wrong, but it's a kind of bug where you don't know where to look for problems so I am hoping there is someone out there that could point me to the right direction.

p.s. That's the worst kind: no errors but not getting what you thought you would. AAAAAaaaaaargh!!! I love it...sometimes I wonder if programmers are actually masochists of some type Cheesy

<a href="http://vedsta5.freeserverhost.com/">CroAsteroids</a> - Shoot asteroids while doing math equations.
Offline hvor2

Junior Devvie




Beyond mind, there is an awareness...


« Reply #1 - Posted 2005-11-11 09:32:33 »

Your ship is (as are yours asteroids) constantly spinning. Is it possible maybe that you paint your front polys with FILL, and back with WIREFRAME somehow?

Offline nardev

Senior Newbie





« Reply #2 - Posted 2005-11-11 10:01:24 »

ths is how a part of my init GL looks like:

        GL11.glEnable(GL11.GL_TEXTURE_2D); //Enable Texture Mapping
        GL11.glShadeModel(GL11.GL_SMOOTH); //Enable Smooth Shading
        GL11.glClearColor(0.0f, 0.0f, 0.0f, 1.0f); //Black Background
        GL11.glClearDepth(1.0f); //Depth Buffer Setup
        GL11.glEnable(GL11.GL_DEPTH_TEST); //Enables Depth Testing
        GL11.glDepthFunc(GL11.GL_LEQUAL); //The Type Of Depth Testing To Do
        GL11.glCullFace(GL11.GL_BACK);   //back facing polygons not drawn
        GL11.glEnable(GL11.GL_POLYGON_SMOOTH);
        GL11.glEnable(GL11.GL_LINE_SMOOTH);

I tried commenting out glCullFace it did ot change the effect. I wonder if it has to do with the depth because when you zoom in with + you get a nice looking spining object but when you zoom out with - you eventually get it all mangled with wireframe. Depth buffer? What is that number  GL11.glClearDepth(1.0f) for?

<a href="http://vedsta5.freeserverhost.com/">CroAsteroids</a> - Shoot asteroids while doing math equations.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline hvor2

Junior Devvie




Beyond mind, there is an awareness...


« Reply #3 - Posted 2005-11-11 11:00:06 »

Maybe you should try with
GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_FILL); ?

GL11.glClearDepth(1.0f) is depth to clear buffer to. (at the beggining of render process each frame)

Offline nardev

Senior Newbie





« Reply #4 - Posted 2005-11-11 17:59:02 »

at the moment it seems that i did not have glEnable(GL_CULLING). Ups Cheesy

<a href="http://vedsta5.freeserverhost.com/">CroAsteroids</a> - Shoot asteroids while doing math equations.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
cybrmynd (137 views)
2017-08-02 12:28:51

cybrmynd (157 views)
2017-08-02 12:19:43

cybrmynd (151 views)
2017-08-02 12:18:09

Sralse (167 views)
2017-07-25 17:13:48

Archive (640 views)
2017-04-27 17:45:51

buddyBro (764 views)
2017-04-05 03:38:00

CopyableCougar4 (1297 views)
2017-03-24 15:39:42

theagentd (1262 views)
2017-03-24 15:32:08

Rule (1235 views)
2017-03-19 12:43:22

Rule (1310 views)
2017-03-19 12:42:17
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

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51
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!