all
/
g
/
s
/
fur
/
art
/
ai
/
3dcg
/
f
/
rp
/
req
/
p2p
/
dis
/
lit
/
kaki
chat
GUROchan!
This list is WIP...
1
2
3
So use the classic menu
Link 4
Link 5
Link 6
Link 7
List 3
Link 8
Link 9
[
Settings
]
[
Home
] [
Catalog
] [
Search
] [
Thread list
] [
Stats
] [
Reports
] [
Watcher
] [
PMs
] [
Admin
]
3D CGI
[
Return
]
Report a post
Preview
Aoi Hikari
2024/05/15
(Wed)
05:04:18
No.
52746
[
Report
]
▶
> I have no idea what I am doing, but I'm doing it.
Neither was I when I started, but doing it is the best way to get some idea what you're doing, so keep it up. Looks nice so far. Feel free to ask for advice.
Here's some unprompted advice for start, as I find this pretty vital to make lighting make any sense:
To make map and some objects obey the light direction you will need this script.
foreach (var r in GameObject.FindObjectsOfType<MeshRenderer>())
{
r.castShadows = true;
r.receiveShadows = true;
if(r.gameObject.layer == 11)
r.gameObject.layer = 10;
}
QualitySettings.shadowDistance = 100;
To use the script, first press F12, a menu will appear at the bottom of the screen, click the button that mentions a console. Then copy the script above into the console and run it (press Enter). Click anywhere in the scene to switch focus away from the console then press F12 again to hide it and the menu. It doesn't persist through saving and loading a scene, so you will have to do this every time you load the scene.
The script also makes all objects cast shadow, which sometimes includes the skybox and then everything is in shadow. You can probably just remove the castShadow line from the script to avoid it, but I imagine it's there for a reason (I wasn't the one who wrote it, was just lucky to find it on discord in my early days of Koikatsu), so I just manually switch it back off for the skybox when it happens (via MaterialEditor).
Post number
No.
52746
Board
3D CGI
Reason
Optional. Describe what's wrong with it.
Style: