Author Topic: Problem generating Texture  (Read 2325 times)

Offline Uija

  • int
  • **
  • Posts: 52
    • View Profile
Problem generating Texture
« on: September 08, 2006, 02:33:03 pm »
This is not a direct jpct related question, as I am missing an idea, how to handle this. I am going to create a map a similar way, helge is doing it for his game. I wrote a little editor (Screenshot of basic tool) to draw those maps.
The different colors define several textures and materials (green=grass, yellow=sand, red=stone, gray=wall, blue=water). Createing A World out of it isnt a big problem, but its ugly, at those party, where textures "meet". My idea is to generate border-textures, when I see, than some different textures meet, but I am missing an idea, how to do it.
How do I get a smooth AND good looking change from one texture to another? I have spend some time on google, but I seem to miss the correct keywords to find a solution =/ So perhaps someone here can help :)

Offline Mizuki Takase

  • int
  • **
  • Posts: 97
    • View Profile
Problem generating Texture
« Reply #1 on: September 08, 2006, 03:29:20 pm »
I cannot say for sure, but I hope that the link here helps you... I know that the article is written in C++, but since the source code for the article is available, maybe you can get a better understanding of how the technique works... I am learning a lot of other technologies in this fashion...

http://www.gamedev.net/reference/articles/article2238.asp

Don't forget that there is com.threed.jpct.TextureInfo that can do multi-texturing. The only problem is that the feature is only for the OpenGL renderer...

Offline manumoi

  • long
  • ***
  • Posts: 121
    • View Profile
    • http://www.iro.umontreal.ca/~blanchae
Problem generating Texture
« Reply #2 on: September 08, 2006, 05:16:20 pm »
Hello,

I remember Rolz posted something about that long time ago

http://www.jpct.net/forum/viewtopic.php?t=190&postdays=0&postorder=asc&start=90

I thought the code was somewhere but i wasn t able to find it. However i think explanations are quite clear.
He uses an RGBImageFilter to generate a new texture from preexisting ones.

Manu