Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (290)
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 / OpenGL Development / Re: Textures on: 2012-04-04 05:09:28
Yea that was on C++ not sure if the same methods apply. Thanks for the help though.
2  Java Game APIs & Engines / OpenGL Development / Textures on: 2012-04-04 04:44:52
Alright so i need help applying my texture to my terrain.

I finally got it to load correctly and its drawing my texture to each of the Quads. The whole image is on one quad, im sure this is simple but heres a pic.

3  Java Game APIs & Engines / OpenGL Development / Re: Terrain Question on: 2012-04-02 02:41:49
Thank you for this and i will study hard.
4  Java Game APIs & Engines / OpenGL Development / Re: Terrain Question on: 2012-04-02 02:38:27
No i havent, i got that piece of code from a tutorial which i have analyzed well. I am really despirate for this, is it possible we can communicate via a messenger?
5  Java Game APIs & Engines / OpenGL Development / Re: Terrain Question on: 2012-04-02 02:31:06
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
floorDisplayList = glGenLists(1);
        glNewList(floorDisplayList, GL_COMPILE);
           glBegin(GL_QUADS);
              glTexCoord2f(0, 0);
                 glVertex3f(-gridSize, floorHeight, -gridSize);
              glTexCoord2f(0, gridSize * 10 * tileSize);
                 glVertex3f(-gridSize, floorHeight, gridSize);
              glTexCoord2f(gridSize * 10 * tileSize, gridSize * 10 * tileSize);
                 glVertex3f(gridSize, floorHeight, gridSize);
              glTexCoord2f(gridSize * 10 * tileSize, 0);
                 glVertex3f(gridSize, floorHeight, -gridSize);
           glEnd();
        glEndList();


Is what im using.
6  Java Game APIs & Engines / OpenGL Development / Re: Terrain Question on: 2012-04-02 02:24:53
Its a 3D heightmap, what would be the commands for this. This is why i wanted an open source, i cant really find anything for heightmaps open source.
7  Java Game APIs & Engines / OpenGL Development / Re: Terrain Question on: 2012-04-02 02:17:33
So... what bit are you having problems with?
I am having problems with getting the heightmap/terrain loaded.

Are you loading from an existing heightmap file format, or do you want to make your own?
I think i have my own, is a heightmap a 2d image? If not i can easily make a heightmap through a program.

Have you managed to get a flat terrain grid drawing (without loading any heights)?
Yes, i have a 3d system with a flat floor with 8x8 textures.

What kind of terrain are you aiming for?
Just a simple one for now with a few hills so i can test with it an later make a real one that will be used.
3D terrain i meant to add.
8  Java Game APIs & Engines / OpenGL Development / Terrain Question on: 2012-04-02 02:06:23
So i have spent 3 days looking for open source for heightmap/landscape/terrain loaders and cant find anything besides engines like Xith3D or JmonkeyEngine to load these. However i wish to create my own.

I need help with loading a the heightmap, if i could have a little help with this i would be forever grateful. This is one of my only problems i have had along the way.
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (65 views)
2013-05-17 21:29:12

alaslipknot (74 views)
2013-05-16 21:24:48

gouessej (105 views)
2013-05-16 00:53:38

gouessej (102 views)
2013-05-16 00:17:58

theagentd (112 views)
2013-05-15 15:01:13

theagentd (102 views)
2013-05-15 15:00:54

StreetDoggy (147 views)
2013-05-14 15:56:26

kutucuk (169 views)
2013-05-12 17:10:36

kutucuk (168 views)
2013-05-12 15:36:09

UnluckyDevil (177 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.118 seconds with 21 queries.