Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 22nd Jan 2011 18:33
Hi.

I've tried many methods on making shadows, which i could apply to my simulator which i am on now, but i can't find suitable one. Any help ?

Cheers!

~Kamac
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 22nd Jan 2011 18:37
Here are some options:
-A flat plane on the ground with a dark faded circle texture for a shadow.
-Light mapping (this would not allow for moving shadows though)
-SET SHADOW SHADING ON (the shadows look OK)
-A soft shadow shader http://www.evolved-software.com/shaders/shadowing
-Some kind of raycasting solution where you cast rays from the sun to your object (I have never tried this).

There are probably other options but those are some of the ones that come to mind


Guns, cinematics, stealth, items and more!
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 22nd Jan 2011 20:31 Edited at: 22nd Jan 2011 20:33
And which of these do you recommend the most ? I mean, you made/are in progress of making a game, did you use shadows to it?

PS.
I've seen you are using this nice shader, which makes light go smoothly... dunno how to describe that )

Cheers!

~Kamac
Sixty Squares
20
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 22nd Jan 2011 22:37 Edited at: 22nd Jan 2011 22:44
It depends on what you want to do .
-If you just want to cast a shadow under your character, then I'd use the flat plain idea. This is probably the fastest way.
-If you want a more detailed shadow for your character, then use SET SHADOW SHADING ON (I would use this command sparingly though because it can lag!).
-If you're making a map in 3D World Studio or something and you want the map to cast multiple shadows from multiple light sources then the fastest way might be light mapping (you would create this lightmap in 3D World Studio or a similar program, like Map Scape. Map Scape can be found on the same site that I linked to before). Bear in mind that these shadows will not be cast onto any characters walking through the world.
-If you're particularly daring and you've got a fast computer, then the shaders are the best-looking way to make shadows. On EVOLVED's website (the site I linked to before) there is an Advanced Lighting system that can handle multiple lights and looks amazing. It's slow though. I believe Green Gandalf posted a different shadow shader in the Learning to Write Shaders thread a little while ago as well.

My two favorite methods right now are light mapping and SET SHADOW SHADING ON. If I restrict myself to character shadows (and set the UseShader flag to 1) then I can usually get away with using SET SHADOW SHADING ON with little lag. It's an easy command to use and the shadows are cast onto all of your objects. It can be used on 3D worlds too but it can cause a slowdown depending on how complex your world is.
Light mapping is fast and convenient, and it is almost a must for any 3D world you might model.

In the game in my signature I used SET SHADOW SHADING ON and light mapping. In my other game (RND Sprint) I used SET SHADOW SHADING ON in combination with a blur shader I edited to smooth the edges. (This technique is similar to the "Soft Shadows" example on EVOLVED's website)

I hope this helps


Guns, cinematics, stealth, items and more!

Login to post a reply

Server time is: 2026-07-18 02:08:12
Your offset time is: 2026-07-18 02:08:12