Crystal Space
Welcome, Guest. Please login or register.
October 23, 2014, 01:37:59 pm

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8799 Members
Latest Member: Tahnatta
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  More layers on terrain
« previous next »
Pages: [1] Print
Author Topic: More layers on terrain  (Read 2100 times)
TurboGlider
Guest


Email
« on: July 21, 2005, 10:18:25 am »

Hi,

could I have more layers on terrain than materialbase like :

<material name="Base">
      <texture>materialmap_base.png</texture>
      <!-- <shader type="ambient">splatting_scattering_base</shader> -->
      <shader type="ambient">splatting_scattering_base</shader>
    </material> 

and regulare texture on top like :

<material name="Marble">
      <texture>andrew_marble4.jpg</texture>
      <shadervar name="tex normal" type="texture">blobbyDOT3.png</shadervar>
      <shadervar name="texture scale" type="vector2">64,64</shadervar>
      <!-- <shader type="diffuse">splatting_bump</shader> -->
      <shader type="diffuse">splatting_scattering</shader>
    </material>

I want for example draw white lines on a road, or paint lines at a soccerfield, is there a solution for that thing i CS?

/TurboGlider
Logged
TurboGlider
Guest


Email
« Reply #1 on: July 21, 2005, 04:32:51 pm »

What i'm talking about is the splatting thing.

Is there a way to use a splatting file for each texture / material instead of using one
  <materialmap image="/lev/terrain/materialmap.png" /> that contain one materialid for each pixel?

And if I could do it the right way in CS, how do I do it?

For example, i have one splatting file for my road texture, one for my grass texture.

And how to put another level over it, like lines on roads.



And another question : Could i use more than 8 bit heightmaps in CS?

/TurboGlider
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #2 on: July 21, 2005, 07:02:41 pm »

What i'm talking about is the splatting thing.

Is there a way to use a splatting file for each texture / material instead of using one
  <materialmap image="/lev/terrain/materialmap.png" /> that contain one materialid for each pixel?

And if I could do it the right way in CS, how do I do it?

For example, i have one splatting file for my road texture, one for my grass texture.

And how to put another level over it, like lines on roads.



And another question : Could i use more than 8 bit heightmaps in CS?

/TurboGlider


You only need one material map. That material map would contain (for example):
  - 0 = grass
  - 1 = sand
  - 2 = rock
Then you have one different splatting texture for every index in the material map (so one grass, sand, and rock texture).

You don't need more then one material map to do what you want.

Support for 24 bit heightmaps is already present.

Greetings,
Logged
TurboGlider
Guest


Email
« Reply #3 on: July 21, 2005, 08:12:46 pm »

You only need one material map. That material map would contain (for example):
  - 0 = grass
  - 1 = sand
  - 2 = rock
Then you have one different splatting texture for every index in the material map (so one grass, sand, and rock texture).

You don't need more then one material map to do what you want.

Thanks, this far I understand.
But, there's always a but, is there a way to have another layer on top of these texture?

Example:
Say I have grass, and on a small area I want to put some rocks on the grass, or I have sand on want to put som grass in the sand. I dont want to do 2 grass textures and 2 sand texture to have this happening. I wish I could place the rock on grass in a layer above.

Some other system use multilayer texture like : base (clean colour), structure, bumps, dirt and so on. And these layers aren't depending on each others.

Like your sample "Terrain" with a materialmap_base and materialmap.

Is there a way to add more layers in CS?


Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #4 on: July 21, 2005, 08:22:57 pm »

You only need one material map. That material map would contain (for example):
  - 0 = grass
  - 1 = sand
  - 2 = rock
Then you have one different splatting texture for every index in the material map (so one grass, sand, and rock texture).

You don't need more then one material map to do what you want.

Thanks, this far I understand.
But, there's always a but, is there a way to have another layer on top of these texture?

Example:
Say I have grass, and on a small area I want to put some rocks on the grass, or I have sand on want to put som grass in the sand. I dont want to do 2 grass textures and 2 sand texture to have this happening. I wish I could place the rock on grass in a layer above.

Some other system use multilayer texture like : base (clean colour), structure, bumps, dirt and so on. And these layers aren't depending on each others.

Like your sample "Terrain" with a materialmap_base and materialmap.

Is there a way to add more layers in CS?




Not sure. I don't think it can be done 'out of the box' but maybe we some changes it is possible. But I am not qualified to answer this question as I don't 100% know how this area in CS works.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.152 seconds with 13 queries.