Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Mesh Water is very dark !!!  (Read 855 times)
meiko
Community Member
*
Posts: 6


« on: September 08, 2007, 07:37:46 PM »

Hi
i am french and my english is poor... sorry :p

i wante make water (and wave) whit mesh builder. But water is very dark !!!

Code:

Textures.LoadTexture App.Path + "\map\002eau.jpg", "teau", 1024, 1024

Materials.CreateMaterial "mat_eau"
Materials.SetAmbient GetMat("mat_eau"), 1, 1, 1, 1
Materials.SetDiffuse GetMat("mat_eau"), 1, 1, 1, 1
Materials.SetEmissive GetMat("mat_eau"), 0#, 0#, 0#, 0#
Materials.SetPower GetMat("mat_eau"), 30

                With Water(index)
                    .SetColor RGBA(0, 255, 255, 255)
                    .AddDynamicWater wPosA.X, wPosA.Y, wPosA.Z, detail, False, True, True
                    .ScaleMesh wPosB.X / detail, 1, wPosB.Z / detail
                    .MakeWave 1, 1, 50
                    .SetRotation wRot.X, wRot.Y, wRot.Z
                    .SetTexture GetTex("teau")
                    .SetMaterial GetMat("mat_eau")
           
                End With

helpe me plz.
answer me with sentences simple...
Logged

Win2000 SP4, VB6, TV3.5
dev. Tchat3D
French Smiley
vsleepy
Customers
Community Member
*****
Posts: 245


« Reply #1 on: September 18, 2007, 10:04:21 PM »

try changing:

From:
RGBA(0, 255, 255, 255)

To:
 .SetColor RGBA(255, 255, 255, 255)

the order is RED, GREEN, BLUE, ALPHA
Logged
meiko
Community Member
*
Posts: 6


« Reply #2 on: September 19, 2007, 12:36:43 PM »

change is not affected :s
I tested with other value but change anything.
I tested with texture and without but water is always dark !

Move camera arround water dark and his change becomes clear (light) :s

that a water bug !?

See sample "temple" whit TV package 6.3 and remove this line :
Code:
Water.SetEnvironmentMap True, RenderSurface.GetTexture

thx
Logged

Win2000 SP4, VB6, TV3.5
dev. Tchat3D
French Smiley
baiqian
Community Member
*
Posts: 7


« Reply #3 on: December 17, 2007, 01:56:18 AM »

I got the same problem, i try mant textures, but it seems so dark with mesh water.
If you do not use mesh water, use the normal "tvlandscape" to create water, the water effect is not good. with SetWaterAnimation function, the water just regularity shake. and you can      see the texture edge obviously on the water surface.   
Logged
Pages: [1]
  Print  
 
Jump to:  

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