Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Need a OpenGL Pro or Master.  (Read 640 times)

Hippoman

  • Bay Watcher
    • View Profile
Need a OpenGL Pro or Master.
« on: October 30, 2009, 06:43:45 pm »

A guy I know is rendering terrain from a .RAW file but when rendering the triangle strips, they never appear. He thinks it may be lost due to his rendering setup

Talk to me, and i'll pass it on to him, or get you a direct line to him.
« Last Edit: October 30, 2009, 06:46:34 pm by Hippoman »
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Need a OpenGL Pro or Master.
« Reply #1 on: October 31, 2009, 08:47:51 am »

I am little more than a beginner, so I can only point out the obvious, but is backface culling in use, and you are seeing the back face(that isn't drawn)? Is it drawing behind the view? Is the clipping distance too near? Is the colour full alpha or otherwise indistinguishable from the background? If textured, is the texture fully transparent? Did he forget to glEnable() something critical? Is it simply a misplaced glClear()? Could the problem be that he is rendering in double-buffered mode and forgetting to swap buffers?

Some/all of that can be tested by switching to GL_POINTS rather than a line strip, and setting a constant colour before. That way, it should be evident if the issue is just seeing it at all or if it is seeing the full object.
Logged
Eh?
Eh!

Cthulhu

  • Bay Watcher
  • A squid
    • View Profile
Re: Need a OpenGL Pro or Master.
« Reply #2 on: October 31, 2009, 09:15:57 am »

Did he try reticulating the horizontal p-splines?  Or, perhaps, did he reticulate the vertical p-splines, or did he reticulate b-splines?  Horizontal or vertical will do it there.
Logged
Shoes...

Hippoman

  • Bay Watcher
    • View Profile
Re: Need a OpenGL Pro or Master.
« Reply #3 on: October 31, 2009, 10:45:41 am »

I will have him check this topic once he gets on.
Logged
THPÆCROSSISM
ΘπÆ┼ - Rise up against our superiors! Let all dwarves be equal!
KHDownloads