Return to “Technical”

Post

Shadows

#1
I'm guessing this would be the correct place to put this. I'm watching the last dev video again, and I'm noticing that there aren't any shadows being cast by ships or asteroids - while ships and asteroids have a dark side and a light side, none of them cast shadows on each other. A very good example is at 14:10 - with the ship lodged in an asteroid. Is it going to be like this when the game is done?

If this topic already exists, I haven't seen it, I apologize, and feel free to merge this thread. I did a quick search before I posted - didn't see anything, but I wouldn't be surprised if it exists and I just missed it.
Have a question? Send me a PM! || I have a Patreon page up for REKT now! || People talking in IRC over the past two hours: Image
Image
Image
Post

Re: Shadows

#2
Talvieno wrote:I'm watching the last dev video again, and I'm noticing that there aren't any shadows being cast by ships or asteroids - while ships and asteroids have a dark side and a light side, none of them cast shadows on each other.
I've asked about that, but it's been a while.

Wouldn't mind a bit of volumetric lighting, know what I mean, nudge-nudge, say no more?
Post

Re: Shadows

#3
I think that might be because Josh turned off collision. Then again what do I know? :problem:
Image The results of logic, of natural progression? Boring! An expected result? Dull! An obvious next step? Pfui! Where is the fun in that? A dream may soothe, but our nightmares make us run!
Post

Re: Shadows

#4
Idunno wrote:I think that might be because Josh turned off collision. Then again what do I know? :problem:
In real life, collisions and shadows are essentially the same: particles of light are colliding with objects and creating areas where there are fewer particles as a result. In a game, though, they're two entirely different things. One is a graphics effect and one is physics.

I know he turned off collisions, but there should still be shadows, unless he hasn't implemented them - and I haven't seen anywhere where it says or shows that he has.

I think we need to let this guy loose for a little bit: :monkey: (nudge nudge)
Have a question? Send me a PM! || I have a Patreon page up for REKT now! || People talking in IRC over the past two hours: Image
Image
Image
Post

Re: Shadows

#5
Shadows are just something that I have never gotten around to, but never quite felt it would be worth the time. I've never done shadows before, so it would take a bit of a time investment to bring that technical facet up to par with the rest of the engine. Frankly, since shadows are a bit...less relevant in space than they are in high-object-density situations, I figured I could get away without them for 1.0 :oops:

Currently that sits in the bowl of 'executive decisions with no real justification other than saving time.' :P

Someday I will enjoy implementing them :)
“Whether you think you can, or you think you can't--you're right.” ~ Henry Ford
Post

Re: Shadows

#6
Frankly, since shadows are a bit...less relevant in space than they are in high-object-density situations, I figured I could get away without them for 1.0
In the last dev video, perhaps, but I've seen dev videos with significantly denser asteroid fields. I do feel it can provide quite a great deal to the feel of the universe, particularly if there's a planet in the way or something (Best example is how weird it'll be to see a well-lit asteroid field where a planet's shadow ought to be, I suppose.). Seeing an enemy ship's shadow flit over an asteroid as they pass it seems pretty good, too. I understand the concerns with time, so I'm wondering just exactly how long you think it'll take. You managed water on planets in a single day, as I recall.

I threw this together in about an hour or so. Just a simple comparison, using the color scheme from your last dev video. (And yes, the asteroid field is fairly thick.)

(Also, yes, it's ugly, I know. Just bear with me.)
Without: Image With: Image edit: rendered a quick flyby to show the field density: https://www.youtube.com/watch?v=o6f6QWana3w
Last edited by Talvieno on Sun Jun 01, 2014 7:15 am, edited 2 times in total.
Have a question? Send me a PM! || I have a Patreon page up for REKT now! || People talking in IRC over the past two hours: Image
Image
Image
Post

Re: Shadows

#10
i wonder how much of an impact shadows will have on performance. if it came down to it i'd turn shadows off if it meant smoother gameplay in a crowded system.
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg."
- Bjarne Stroustrup

"A mathematician is a device for turning coffee into theorems."
- Paul Erdos (1913-1996)
Post

Re: Shadows

#12
Jamiee5300 wrote:To be honest I hadn't noticed the lack of shadows at all, I'm not really fussed, I'm still hypnotised by the dynamic lighting and nebulae. :lol:
I'm sure you'd notice, after they'd been there a bit. Really, they're more than just a bit of eye candy... shadows help with depth perception, too.
Have a question? Send me a PM! || I have a Patreon page up for REKT now! || People talking in IRC over the past two hours: Image
Image
Image
Post

Re: Shadows

#13
Jacobi1981 wrote:i wonder how much of an impact shadows will have on performance. if it came down to it i'd turn shadows off if it meant smoother gameplay in a crowded system.
That's you. And for those with more powerful hardware, the impact of shadows on performance would be negligible.

Not to mention, there are a couple of ways to implement shadows in game, each with various hits on performance at the cost of realism (e.g. blurry shadows compared to sharp shadows).
"The first 90 percent of the code accounts for the first 90 percent of the development time. The remaining 10 percent of the code accounts for the other 90 percent of the development time." —Tom Cargill
Post

Re: Shadows

#15
Actually, the more I think about it, the more shadows make a ton a sense.

Unless we have binary star systems (which we have not seen yet), all systems will have one big single light source. How cool would it be to see the giant shadow of a planet against a string of asteroids?

You could even get fancy and have the option of equipping ships with light sources and have a flash light effect...

Optional of course, but I plan on upgrading right before release for a reason. :D
My Signature

Online Now

Users browsing this forum: No registered users and 5 guests

cron