Jump to content

..pointlight artifacts..


Naughty Alien
 Share

Recommended Posts

..josh example is superbasic and supersimple one...basic use of light, even shadows disabled..i have used it over scene.gmf provided with old heathaze tutorial, just to make sure that im not delusional..here it is code..

SuperStrict

Framework leadwerks.framewerk
RegisterAbstractPath(AppDir)

Graphics(800, 600)

Local fw:TFramewerk

fw = TFramewerk.Create()
If Not fw RuntimeError "Failed to initialize engine."

Include "FreeLook.bmx"

'load a scene
LoadMesh("abstract::scene.gmf")
'Create light
Local light:TLight = CreatePointLight(5)
PositionEntity(light, Vec3(0, .25, 0))
EntityColor(light, Vec4(1, 0.5, 0, 0.1))
EntityShadowMode(light, 0)'disabling/enabling shadows doesnt change a thing



Repeat
 FreeLook(fw.Main.camera, .1)

 fw.Update()
 fw.Render()

 Flip(0)
Until KeyHit(KEY_ESCAPE)
End

 

and its still looking same as before..it seems like creating some sort of rectangle with size of given light range and from each corner of that rectangle, sides are extruded..sort of...weird..

 

here is result on given scene used from tutorials

shotm.jpg

 

 

also, just side note, doesnt matter is it used with framewerk or not, it does produce same result..

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...