I haven't managed to insert a back image yet. For the solid bodies at least the image passed with AddImage appears; with AddGeometry only the colors appear.
Does anyone have a small demo that displays both images?
Code:
LDUtilities.CurrentCulture = "en-US"
LDUtilities.Version()
Outside = ImageList.LoadImage (Program.Directory + "\Teich.jpg")'<-----------put ur image here
Inside = ImageList.LoadImage (Program.Directory + "\Rosen.jpg")'<-----------put ur image here
view3D = LD3DView.AddView(GraphicsWindow.Width,GraphicsWindow.Height,"True")
LD3DView.AutoControl("True","True",2,1)
LD3DView.AddDirectionalLight(view3D,"White",-0.612372,-0.5,-0.612372)
LD3DView.AddDirectionalLight(view3D,"White",0.612372,-0.5,-0.612372)
cone =LD3DView.AddPipe (view3D 13 6 8 36 "white" "D")
LD3DView.AddImage(view3D,cone,"",Outside ,"D")
LD3DView.SetBackMaterial(view3D,cone , "Green" ,"D")
LD3DView.AddBackImage(view3D,cone,"", Inside ,"D")
LD3DView.TranslateGeometry (view3D,cone,-5,1,-5)
LD3DView.AnimateRotation(view3D,cone,1,0,0,0,360,15,-1)
triangle = LD3DView.AddGeometry(view3D,"-0.5 -0.5 0.5 0.5 -0.5 0.5 0.5 0.5 0.5 0.5 0.5 0.5 -0.5 0.5 0.5 -0.5 -0.5 0.5","0 1 2 3 4 5","","Red","D")
LD3DView.AddImage(view3D,triangle,"",Outside ,"D")
LD3DView.SetBackMaterial(view3D,triangle , "Green" ,"D")
LD3DView.AddBackImage(view3D,triangle,"", Inside ,"D")
LD3DView.TranslateGeometry (view3D,triangle,5,5,-5)
LD3DView.AnimateRotation(view3D,triangle,1,5,1,0,360,5,-1)
cube = LD3DView.AddGeometry(view3D,"-1 1 1 -1 -1 1 1 -1 1 1 1 1 1 1 1 1 -1 1 1 -1 -1 1 1 -1 -1 1 -1 -1 1 1 1 1 1 1 1 -1","0 1 2 2 3 0 4 5 6 6 7 4 8 9 10 10 11 8","","Red","D")
LD3DView.AddImage(view3D,cube,"",Outside ,"D")
LD3DView.SetBackMaterial(view3D,cube , "Green" ,"D")
LD3DView.AddBackImage(view3D,cube,"", Inside ,"D")
LD3DView.TranslateGeometry (view3D,cube,10,10,-5)
LD3DView.AnimateRotation(view3D,cube,1,11,1,0,360,3,-1)
Does anyone have a small demo that displays both images?