Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMedo3337

Posted 23 April 2013 - 05:55 AM

The way that I'm drawing the terrain differ from the sample.

 

I have exported terrain and drawing it ONCE, in the above example, it's drawing the terrain 4 times to set 4 textures which I think it's not a good idea for performance.

 

I want to accomplish texture splatting without Shader and draw the terrain once.

 

The way that I want to do it is exactly as I mentioned:

 

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
device->SetTexture(2, &stoneTexture);
// Code to draw terrain here...

and NOT this:

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
// Code to draw terrain...
device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &stoneTexture);
// Code to draw terrain again...

#2Medo3337

Posted 23 April 2013 - 05:55 AM

The way that I'm drawing the terrain differ from the sample.

 

I have exported terrain and drawing it ONCE, in the above example, it's drawing the terrain 4 times to set 4 textures which I think it's not a good idea for performance.

 

I want to accomplish texture splatting without Shader and draw the terrain once.

 

The way that I want to do it is exactly as I mentioned:

 

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
device->SetTexture(2, &stoneTexture);
// Code to draw terrain here...

and NOT this:

 

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
// Code to draw terrain...
device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &stoneTexture);
// Code to draw terrain again...

#1Medo3337

Posted 23 April 2013 - 05:24 AM

The way that I'm drawing the terrain differ from the sample.

 

I have exported terrain and drawing it ONCE, in the above example, it's drawing the terrain 4 times to set 4 textures which I think it's not a good idea for performance.

 

I want to accomplish texture splatting without Shader and draw the terrain once.

 

The way that I want to do it is exactly as I mentioned:

 

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
device->SetTexture(2, &stoneTexture);

and NOT this:

 

device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &grassTexture);
// Code to draw terrain...
device->SetTexture(0, &blendingMapTexture);
device->SetTexture(1, &stoneTexture);
// Code to draw terrain again...

PARTNERS