Page 1 of 1

Lighting just the Avatar is it possible?

PostPosted: Mon Dec 12, 2011 10:39 am
by Tweek
Pretty much covered in the title.

I added a sun to the environment I was working on so that the Avatar was lit and not just black but it makes everything too bright so it needs to go.

So I'm curious if there is a way to have a light source that only lights the Avatar.

Re: Lighting just the Avatar is it possible?

PostPosted: Mon Dec 12, 2011 2:02 pm
by D'Lanor
Yes, that is possible. I assume you are still using Blender? PyPRP (1.6) automatically assigns all lights to every object in an age unless its material is set to Shadeless. There is an exception though: It only does this for objects which are in the same prp file as the light source. So what you could do is place the sun in a separate prp file.

Re: Lighting just the Avatar is it possible?

PostPosted: Mon Dec 12, 2011 3:51 pm
by Tweek
I'm using Blender yes, I believe it is 1.6 of pyprp I am using too.

How would I go about moving it to a different .prp?

Re: Lighting just the Avatar is it possible?

PostPosted: Mon Dec 12, 2011 4:23 pm
by D'Lanor
In your Book text you add a new page:
Code: Select all
   pages:
      - index: 0
        name: mainRoom
      - index: 1
        name: someName

Then select your sun and under Logic (F4) add a new string property with the name page_num and value 1

Re: Lighting just the Avatar is it possible?

PostPosted: Mon Dec 12, 2011 4:58 pm
by Tweek
Will give it a go, thanks.