Author Topic: Brian Smith's Terrain Generator v4  (Read 9816 times)


stuff's coming (ignore the FPS im still working on the stuffty array forget) and I was taking a picture which is blegh


perlin noise, stop using pygame

perlin noise, stop using pygame
I only use pygame for the FPS counter and the spectator object.

I only use pygame for the FPS counter and the spectator object.

look at the program icon
that's the pygame logo

look at the program icon
that's the pygame logo
   def __init__(self,player,w,h,fov):
      self.player = player
      pygame.init()
      pygame.display.set_mode((w,h), pygame.OPENGL | \
         pygame.DOUBLEBUF)
      glMatrixMode(GL_PROJECTION)
      aspect = w/h
      gluPerspective(fov, aspect, 0.001, 100000.0);
      glMatrixMode(GL_MODELVIEW)
      #glDepthFunc(GL_LESS)
      glEnable(GL_DEPTH_TEST)
      self.player.parent = self
      self.tree = block.BlockList(50000)
      #self.tree.createCube((0.0,0.0,0.0),(0.0,1.0,1.0))
      #self.tree.createCube((0.0,1.0,0.0),(1.0,1.0,0.0))
      #self.tree.createCube((0.0,2.0,0.0),(1.0,1.0,1.0))
      #self.tree.createCube((1.0,1.0,0.0),(1.0,0.0,0.0))
      #self.tree.createCube((-1.0,1.0,0.0),(0.0,1.0,0.0))
      self.tree.populateWithNoise(30)
      self.program = compileProgram(compileShader(VERT_SHADER,GL_VERTEX_SHADER),compileShader(FRAG_SHADER,GL_FRAGMENT_SHADER))


blegh
i dont know how to do button stuff with just pyopengl.

you know pygame was last updated 3 years ago right

something happened

you know pygame was last updated 3 years ago right

something happened
well
i'm removing all pygame stuff.
It's rendering (i think)
now i just need it to let me move around
i think im going to get better FPS with only PyOpenGL


stuff's coming (ignore the FPS im still working on the stuffty array forget) and I was taking a picture which is blegh
Are yoo trying to make something
Like
A new game

Are yoo trying to make something
Like
A new game
I think he's just visualizing his generation.


stuff's coming (ignore the FPS im still working on the stuffty array forget) and I was taking a picture which is blegh

More Spammy?