Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  Texturing Terrain!!! (Help me save my keyboard)  (Read 677 times)
0 Members and 1 Guest are viewing this topic.
Offline SKULLO_MONKEY

Junior Newbie




Java games rock!


« Posted 2004-11-15 17:36:14 »

Hey

This is my first post as I have only just found this board. Here goes:

I have written a program that generates a 3d representation of an image (landsat images etc) which kinda works fine. What I want to do is overlay the original image over the top to give a realistic look to the generated terrain but I do not seem to know how to do it. Please could some one suggest a way and point me in the right direction as my keyboard has teeth marks in it and I'm not sure how long its going to last. Huh

I hope  my request for help isn't too vague, but I am really very stuck on this which is a bit annoying as this really should be the simplest part.

ps. the image is 128 x 128 pixels, the generated terrain matches that size so in theory I should be able to stretch it across the image with little effort.
Offline Mike Jacobs

Junior Member





« Reply #1 - Posted 2004-11-16 13:34:23 »

You have two options.
1) If the resolution is low (128 x 128 sounds low) consider using vertex coloring.
2) Use texture mapping.  There is a good explanation in the J3D tutorial.

Special Effects for Java 3D games: http://www.indietechnologies.com
Offline SKULLO_MONKEY

Junior Newbie




Java games rock!


« Reply #2 - Posted 2004-11-16 17:55:36 »

Cheers I managed to get the terrain textured earlier today. Decided to go right back to basics and start again so that almost seems to be sorted now, only problem remaining is that the texture comes through green. Ideas any one as I do not see a reason for this?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SKULLO_MONKEY

Junior Newbie




Java games rock!


« Reply #3 - Posted 2004-11-17 06:03:24 »

Ooops sorted that too!!! Grin

Makes you wonder doesn't it? Grin
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.

pw (26 views)
2014-07-24 01:59:36

Riven (25 views)
2014-07-23 21:16:32

Riven (20 views)
2014-07-23 21:07:15

Riven (22 views)
2014-07-23 20:56:16

ctomni231 (51 views)
2014-07-18 06:55:21

Zero Volt (46 views)
2014-07-17 23:47:54

danieldean (37 views)
2014-07-17 23:41:23

MustardPeter (40 views)
2014-07-16 23:30:00

Cero (57 views)
2014-07-16 00:42:17

Riven (55 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!