Trouble with suns and static mesh...
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
Trouble with suns and static mesh...
I have lighting problems when I use either Sun or sunlight entities with static mesh. Everything compiles ok and the level runs, but the staticmesh is totally black. I made sure that I set it to compute all lights and made sure that nothing is wrong with the actor I used for the mesh.
Can anyone please give me some tips on how to fix this problem?
thanks
Can anyone please give me some tips on how to fix this problem?
thanks
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Ok, I've checked the code and it works fine, the problem with the sunlight is that the skybox itself is casting a shadow on static meshes (genesis collision routines are the problem here) so just make the skybox large enough (skybox should be ~10000 texels away from the static mesh in the direction the light is coming from) and the lighting should be ok.
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
very wierdOk, I've checked the code and it works fine, the problem with the sunlight is that the skybox itself is casting a shadow on static meshes
collisions are a massive problem for me as well as I can just walk up to a wall mesh and go right through it (even jump right though the ceiling part of the mesh.genesis collision routines are the problem here
I did that ( made it to max size without compiler tossing it out) and it got me nowhere.so just make the skybox large enough (skybox should be ~10000 texels away from the static mesh in the direction the light is coming from) and the lighting should be ok.
I guess this bring my project to a standstill or I will have to find something else other than RF because if I did brushes RF would just bog down big time as you add more brushes.. thanks for having a look at the problem
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
If you want, you can send me the level and I'll try to fix it for you (realityfactory@gmx.at)
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
sure and thanks
btw, delete the skydome entity because i forgot to add the script file for it or you can just change it.
btw, delete the skydome entity because i forgot to add the script file for it or you can just change it.
- Attachments
-
- level.zip
- A Small Cave level
- (13.61 KiB) Downloaded 72 times
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact:
Ok, I now know what's going on. In the RFEditPro code there is a second Sunlight entity defined which seems to cause a conflict so RF doesn't recognize it. I've used the old RFEdit and there it worked perfectly fine.
I've added a SunLight entity to the level, extended the skybox and changed some entries in the StaticMesh entity (also changed the player scale and rotation since I used virgil as player actor (and had to reduce the bounding box size in the playersetup.ini - otherwise the player got stuck in the cave))
So until I've uploaded a fixed version of RFEditPro you may use RFEdit...
I've just sent you the changed 3dt..
I've added a SunLight entity to the level, extended the skybox and changed some entries in the StaticMesh entity (also changed the player scale and rotation since I used virgil as player actor (and had to reduce the bounding box size in the playersetup.ini - otherwise the player got stuck in the cave))
So until I've uploaded a fixed version of RFEditPro you may use RFEdit...
I've just sent you the changed 3dt..
-
- Posts: 23
- Joined: Wed Jul 06, 2005 2:51 pm
- QuestOfDreams
- Site Admin
- Posts: 1520
- Joined: Sun Jul 03, 2005 11:12 pm
- Location: Austria
- Contact: