我尝试 using System.Web.Mail;
MailMessage mailMsg = new MailMessage();
mailMsg.From = msgfrom;
mailMsg.To = "info@magnumhunt.com;";
mailMsg.Subject = name + " has query for MagnumHunt.com";
mailMsg.Body = "<table border=1 width=600 cellspecing=5 cellpadding=0><tr><td>Name</td><td>" + name + "</td></tr><tr><td>Email</td><td>" + msgfrom + "</td></tr><tr><td>Phone</td><td>" + phone + "</td></tr><tr><td>Comment</td><td>" + msgmessage + "</td></tr></table>"; ;
mailMsg.BodyFormat = MailFormat.Html;
mailMsg.Priority = MailPriority.High;
SmtpMail.SmtpServer = "servername";
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "abc@gmail.com");
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "mypassword");
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "25");
mailMsg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true");
try
{
SmtpMail.Send(mailMsg);
}
catch(Exception ex){}
使用clone()
创建Mesh
,但它永远不会呈现。
BABYLON.Mesh.CreateGroundFromHeightMap()
答案 0 :(得分:0)
自// Ground
var groundMaterial = new BABYLON.StandardMaterial("ground", scene);
groundMaterial.emissiveTexture = new BABYLON.Texture("textures/earth.jpg", scene);
var ground = BABYLON.Mesh.CreateGroundFromHeightMap("ground", "textures/worldHeightMap.jpg", 200, 200, 250, 0, 10, scene, false);
ground.material = groundMaterial;
// Cloned Ground
var groundMaterial2 = new BABYLON.StandardMaterial("ground2", scene);
groundMaterial2.emissiveColor = new BABYLON.Color3(1, 0, 0);
groundMaterial2.alpha = 0.5;
var ground2 = ground.clone("ground2");
ground2.position = new BABYLON.Vector3(0, 1, 0);
ground2.material = groundMaterial2;
loads its VertexData
from an image起,CreateGroundFromHeightMap()
尚未准备好进行克隆,直到加载完毕。通过使用Mesh
的可选CreateGroundFromHeightMap
参数,我们可以延迟onReady
,直到所有内容都准备就绪。
clone()