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
#6
Hi Scout,

Outside (front) is defined by triangle index order, anticlocwise as viewed from the front (2D) or from outside for a 3D shape.  Backface is therefore when viewed with clockwise triangle indices.

To view the backface of a 3D object you must be inside looking out.  Viewing from the other side is still looking at the outside faces, just from a different direction.

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)
cube = LD3DView.AddCube(view3D,1,"Red","D")
LD3DView.AddBackImage(view3D,cube,"","Blue","D")
LD3DView.AnimateRotation(view3D,cube,1,0,0,0,360,5,-1)

Above is a cube, with inside coloured blue, to get inside you need to mouse wheel back.

Harder to position inside your tube, but its there for me when viewed from inside it.
[-] The following 3 users Like litdev's post:
  • AbsoluteBeginner, Scout, stevantosic
Reply


Messages In This Thread
RE: No difference between AddBackImage and AddImage in LD3DView - by litdev - 01-26-2024, 09:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)