Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
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  
  Couple of questions on Texturing 2D terrain.  (Read 1759 times)
0 Members and 1 Guest are viewing this topic.
Offline Harley Rana

Junior Member




Java games rock!


« Posted 2003-03-25 00:48:30 »

Hey another terrain question!  This ones for the 2D rts josrts.org.
Theres a bunch of questions i need to clear up on texturing. Smiley

The general question is what is the best way to texture the large flat landscape?   The two main ways are basic tiled approch, or one large texture with a detail texture.

More specific question regarding display lists and multitextuing.
Is there any benifit using multi texturing if your compiling into a display list?
Trying to create tiles of the landscape, drawing a section with multitexturing into display lists.  But when i call the lists, there a weird pattern in the tiles, some are out of order, or stetched.
http://www.froggy.com.au/harleyrana/java/TerrainRender.java
(only offending parts) Smiley

When im drawing in interpreted mode, it looks cool if you don't mind the repeating detail texture.  To make it more interesting i could draw rock and grass patterns.   How should i draw the extra detail in the terrain?  TEXTURE2_ARB ,or go back to TEXTURE0_ARB ?

On gljournal's extension data base multitexturing has support for some old chips, and it was incororated into gl 1.2.1.  So can i assume that its going to work on most cards?  What is the normal number of texture units available / should i use?

Still just playing around with the multitextured terrain, to see the difference between tiles.
If i do use tiles im thinking of having a base texture, detail texture for transitions or just extra details like grass spots, and color index for each point in the terrain grid.  Does that sound right?

If your still here, thanks for your patience Cheesy
Obviously these are basic questions, but where better to learn!   Thanks for any help or suggestions.  Smiley
Harley.
Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #1 - Posted 2003-03-25 07:14:02 »

Texture splatting is pretty nice: http://cbloom.com/3d/techdocs/splatting.txt

For best results you'll have to abuse multitexturing as much as possible. Just be careful that you can do the same effect on limited hardware,  TEXTURE2_ARB won't be avalible on alot of cards (GeForce3 and up i think, prior to that almost every card from the voodoo2 to the GeForce2 only has two multitexture units). You'll have to query GL at runtime and decide which rendering 'path' to follow.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (55 views)
2014-04-15 18:08:23

BurntPizza (53 views)
2014-04-15 03:46:01

UprightPath (66 views)
2014-04-14 17:39:50

UprightPath (49 views)
2014-04-14 17:35:47

Porlus (66 views)
2014-04-14 15:48:38

tom_mai78101 (90 views)
2014-04-10 04:04:31

BurntPizza (151 views)
2014-04-08 23:06:04

tom_mai78101 (246 views)
2014-04-05 13:34:39

trollwarrior1 (204 views)
2014-04-04 12:06:45

CJLetsGame (211 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!