• Register

ScrumbleShip is the most accurate space combat simulation devised to date. Gather resources, construct a capital ship out of individual blocks, then pilot it with AI or human help against other players.

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Raycasting
embed
share
view previous next
Share Image
Share on Facebook Tweet Email a friend
Embed Image
Comments
dirkson Author
dirkson

White lines originating from a point? What silliness is this?

Well, this is a voxel-level, generic raycaster that sees every voxel between it and its destination. We've had raycasters in the engine before, but this one is the first one that can't miss objects.

This code can be used to improve collision detection, rendering, block placement, and more. For example, raycasting a close scene (Such as inside a ship) should be faster and return better results than our old rendering method. Equally importantly, having a generic method for doing this allows me to stop wasting time re-implementing very similar situations.

Next I take it from voxel-only level to a mixed voxel/block/chunk raycast - Basically, make it skip over empty areas much faster. That code is already half done. After that, I can start slipping it into various subsections of the game.

Cheers,
-Dirk

Reply Good karma+3 votes
Deathscreton
Deathscreton

I always found Raycasting to be such a pain. But my boss is seemingly a pro at it. I don't understand how you guys do it, no matter how much I look at it. The only thing I can understand are the basics. @.@

Reply Good karma Bad karma+1 vote
DudenClarity
DudenClarity

Fascinating =o

Reply Good karma Bad karma+1 vote
Insolent.
Insolent.

This will be very useful! Super cool.

Reply Good karma Bad karma+1 vote
itsdavyjones
itsdavyjones

So how much of a performance increase is this system looking at?

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Description

This image is released on a CC-BY-ND 3.0 license

Details
Date
By
dirkson
Size
1920×1080
Options
URL
Embed
Embed Thumb
Share
New
Add media
Feed
RSS
Report
Report