Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (565)
Games in Android Showcase (151)
games submitted by our members
Games in WIP (606)
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 1991 times)
0 Members and 1 Guest are viewing this topic.
Offline Harley Rana

Junior Devvie

Java games rock!

« Posted 2003-03-24 23:48:30 »

Hey another terrain question!  This ones for the 2D rts
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.
(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
Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

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

Texture splatting is pretty nice:

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.

[ - 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.

theagentd (13 views)
2015-03-27 23:08:20

wxwsk8er (54 views)
2015-03-20 15:39:46

Fairy Tailz (47 views)
2015-03-15 21:52:20

Olo (29 views)
2015-03-13 17:51:59

Olo (32 views)
2015-03-13 17:50:51

Olo (39 views)
2015-03-13 17:50:16

Olo (44 views)
2015-03-13 17:47:07

ClaasJG (58 views)
2015-03-10 11:36:42

ClaasJG (42 views)
2015-03-10 11:33:01

Pippogeek (50 views)
2015-03-05 14:36:23
How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27 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‑
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!