Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: New Pre-Release Landscape Splatting  (Read 452 times)
newborn
Customers
Community Member
*****
Posts: 2437


WWW
« on: May 23, 2008, 07:42:54 PM »

Weird behavior with the new pre-release regarding splatting and base layer.

1) Create landscape (this creates a black landscape)
2) Set a base texture (landscape still black, no texture)
3) Add alpha layer (base texture appears)

To make sure this is not a bug within my coding, I reverted back to the old release, and everything works fine.
Logged

SylvainTV
Administrator
Community Member
*****
Posts: 4478


WWW
« Reply #1 on: May 24, 2008, 10:33:42 AM »

It's not very logical indeed.
Do you use the PS2 shader mode or non shader mode ? (Land.setShaderMode)

There is also a new parameter for SetSplattingEnable, it allows to blend between splatting and no splatting on a chunk basis. If you want the old behavior, use 1.0 here.

void  CTVLandscape::SetSplattingEnable(bool bEnable, int iChunk, float fSplattingAlpha)
« Last Edit: May 24, 2008, 10:35:16 AM by SylvainTV » Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
newborn
Customers
Community Member
*****
Posts: 2437


WWW
« Reply #2 on: May 24, 2008, 11:16:50 AM »

Switching the following parameter did the trick

.SetSplattingMode(False)

Thank you Sylvain

Logged

pizzayoyo
Customers
Community Member
*****
Posts: 1320


WWW
« Reply #3 on: May 26, 2008, 10:19:05 PM »

By calling SetSplattingMode(false) I believe you are making it so each additional layer is an extra pass. I tried to do SetSplattingEnable(True, -1, 1.0) as Sylvain suggested, but I'm still having this problem.
Logged

Toaster
Community Member
*
Posts: 147


WWW
« Reply #4 on: May 26, 2008, 10:50:17 PM »

I also have a problem with splatting. Here's a screeny...

http://willhostforfood.com/users/toasterthegamer/TerrainCompare.jpg

With no splatting it looks like the first image as well. I am not loading any textures though  but this use to work before the update.

Edit: NVM i got it to work by doing this..

Code:
            Land.SetSplattingEnable(true, 1, 1);
            Land.SetSplattingMode(true, false);

-Toaster
« Last Edit: May 26, 2008, 10:53:17 PM by Toaster » Logged

Visit my site at: Unknown Abstraction
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks