Large City Model Lighting


#1

Hi all,

My project is https://playcanvas.com/editor/scene/737610.

I am having troubles lighting the large city model. How do I go about it?


#2

There’s no light in the scene?

Adding a directional light looks fine: https://playcanvas.com/editor/scene/737673


#3

There’s no light since I tried adding a spot light but it didn’t work, so I deleted it. Thanks for replying, I’ll use a directional light.


#4

A spot light has a radius of effect that can be modified. That’s probably why it didn’t work as your model is quite large.


#5

I’ll remember that. Also, mesh colliders are falling right through - https://playcanvas.com/editor/scene/738294. I don’t quite get why it’s not working. Can you please help out?


#6

You can’t do mesh to mesh collision with Ammo.js. Change the car to be a box and you should be fine.


#7

Then how do I go about exactly giving a collision shape to my city and car? If I change it to a box, the camera goes crazy. I just undid it. My restitution was 0.013 on both.


#8

Change the car collision to be a box and you should be fine.


#9

Please refer to the edited post.


#10

Works fine in my test scene: https://playcanvas.com/editor/scene/737673

Created a box with a box collision.


#11

I don’t know why it didn’t work. Thanks for the workaround.


#12

@coderMACi5 hey what is your plan for this project?


#13

Please talk to me on Skype. The invite is below.

Renegade Lab Studios would like to chat with you on Skype. It’s free!

https://join.skype.com/invite/l8ILZ4WDjW0C

I’ll describe it to you. I really need help, so please get back to me. Thanks.


#14

Sure! will join as soon as i am free!


#15

Hey @Nathan_Hawkins1, this is for a game jam, so we need to get started as soon as possible!