We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No difference between AddBackImage and AddImage in LD3DView
#2
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

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!
[-] The following 1 user Likes litdev's post:
  • stevantosic
Reply


Messages In This Thread
RE: No difference between AddBackImage and AddImage in LD3DView - by litdev - 01-24-2024, 06:14 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)