01-24-2024, 06:14 PM
Hi st,
The difference is quite subtle, but AddBackImage applies to the back of an object and AddImage to the front. By default the back surface is not shown. Google 'GeometryModel3D.BackMaterial' for more info.
We should be able to see the effect with this
However, there is a BUG preventing the back material from being correctly added.
I have uploaded the fix to Beta version of LitDev extension version 1.2.26.0
Thanks for reporting!
The difference is quite subtle, but AddBackImage applies to the back of an object and AddImage to the front. By default the back surface is not shown. Google 'GeometryModel3D.BackMaterial' for more info.
We should be able to see the effect with this
Code:
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)
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.AddBackImage(view3D,triangle,"","Blue","D")
LD3DView.AnimateRotation(view3D,triangle,1,0,0,0,360,5,-1)
However, there is a BUG preventing the back material from being correctly added.
I have uploaded the fix to Beta version of LitDev extension version 1.2.26.0
Thanks for reporting!