Jump to content

PointLights Don't Follow Scene In Standalone Exe


Guest Red Ocktober
 Share

Recommended Posts

Guest Red Ocktober

in the editor, the point lights i have in my scene show up nicely... but when i run the exe outside the editor, my point lights aren't there...

 

anyone else getting the same...

 

 

--Mike

Link to comment
Share on other sites

hmmm... no I just added a pointlight to my test scene and it seemed to work just fine... perhaps its the same issue with the spotlight, where the INI file is wrong, so when you save it sets the SBX settings to something that will not actually show the pointlight

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Mike, try changing the light_point INI file from this:

classname="light_point"
color=255,255,255,255
intensity=1
range=10
shadowmapsize=256
shadowoffset=0.0,0.95
inversesquarefalloff=1

 

to this:

classname="light_point"
color=255,255,255,255
intensity=1
range=10
resolution=0
linearoffset=0.0
multoffset=0.95
inversesquarefalloff=1

 

This is the easiest so you don't have to change the lua script.

 

Linearoffset and multoffset replace shadowoffset.

 

Resolution replaces shadowmapsize in the INI file and the settings are this:

resolution=0 is a shadowmapsize of 256

resolution=1 is a shadowmapsize of 512

resolution=2 is a shadowmapsize of 1024

resolution=3 is a shadowmapsize of 2048

 

Then restart the Editor and open up your scene and click onto your pointlight and check the settings... then resave the sbx and see if works now... you might have to delete the pointlight and recreate it to get it to work correctly.

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Guest Red Ocktober

changing the .ini file seems to have been the solution...

 

thx again...

 

 

i think i spoke too soon... it the exe doesn't seem to be reading in the keys or something... lights still aint being set properly...

 

 

--Mike

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...