Rare material pseudo-shadow
Posted: Thu Sep 05, 2019 5:55 pm
Have this.
As can see, there is not a natural way of the shadow: the material is in some way, auto-shadowed.
If do NormalizeMesh(1) before the entity is created (after mesh transformation), the issue get better, but still the shadow is not correct.
Any idea?
Needed data here:
https://file.io/z7LHWc
EDIT:
Damn !
It is volatile. Those services (file.io) are not useful for this.
Take it from here:
https://mega.nz/#!B9gwzIyQ!ZPay9tie_lXi ... 9vHnI-I64Q
or:
http://s000.tinyupload.com/?file_id=319 ... 3489564400
As can see, there is not a natural way of the shadow: the material is in some way, auto-shadowed.
If do NormalizeMesh(1) before the entity is created (after mesh transformation), the issue get better, but still the shadow is not correct.
Any idea?
Code: Select all
InitEngine3D():InitSprite():InitKeyboard():InitMouse()
ExamineDesktops()
Global bitplanes.a=DesktopDepth(0),FRX.u=DesktopWidth(0),FRY.u=DesktopHeight(0),RX.u,RY.u
If FRX<1280 Or FRY<720:RX=FRX*2/3:RY=FRY*2/3:Else:RX=1280:RY=720:EndIf
OpenWindow(0,0,0,RX,RY,"switch screen size",#PB_Window_BorderLess|#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0),0,0,RX,RY,1,0,0,#PB_Screen_WaitSynchronization)
Add3DArchive(#PB_Compiler_Home+"examples/3D/Data/Textures",#PB_3DArchive_FileSystem)
Add3DArchive("media/",#PB_3DArchive_FileSystem)
Parse3DScripts()
CreateLight(0,$EEEEEE,4,4,2,#PB_Light_Point)
CreateCamera(0,0,0,100,100)
MoveCamera(0,0,0,3,#PB_Absolute)
LoadMesh(1,"peg-toporiginal_3ds.mesh")
TransformMesh(1,0,0,0,1,1,1,270,0,0):UpdateMeshBoundingBox(1)
;GetScriptMaterial(2,"peg-toporiginal_3ds#2")
CreateEntity(0,MeshID(1),#PB_Material_None,0,0,0)
Repeat
ExamineKeyboard()
WindowEvent()
rotateentity(0,0,1,0,#PB_Relative)
TimeSinceLastFrame.i=RenderWorld(50)
FlipBuffers()
Delay(8)
Until KeyboardPushed(#PB_Key_Escape)
https://file.io/z7LHWc
EDIT:
Damn !
It is volatile. Those services (file.io) are not useful for this.
Take it from here:
https://mega.nz/#!B9gwzIyQ!ZPay9tie_lXi ... 9vHnI-I64Q
or:
http://s000.tinyupload.com/?file_id=319 ... 3489564400