Author Topic: A bit confused about Ray Marching meshes  (Read 3748 times)

0 Members and 1 Guest are viewing this topic.

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
A bit confused about Ray Marching meshes
« on: November 12, 2011 »
I've been reading up on ray marching with a view to trying to put something together. I think I've got my head around how ray marching works for rendering volumes and creating objects using distance functions but I'm confused about how one would go about using ray matching for a complex mesh (loaded from a 3ds object or whatever). Is such a thing possible? I'm starting to think it's not, or at least not possible easily. Any pointers would be wonderful.

Thanks,

Raizor
raizor

Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: A bit confused about Ray Marching meshes
« Reply #1 on: November 13, 2011 »
Us YUP guys have a system of getting an SDF texture from a mesh just based on polygon distances to texel centers and doing some play for the sign. It's quite easy to march through but is much better to use for effects such as AO or SSS, since it's often relatively low-quality compared to the polygon data to reduce memory consumption.

Animated meshes present their own set of problems, too...
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: A bit confused about Ray Marching meshes
« Reply #2 on: November 13, 2011 »
Us YUP guys have a system of getting an SDF texture from a mesh just based on polygon distances to texel centers and doing some play for the sign. It's quite easy to march through but is much better to use for effects such as AO or SSS, since it's often relatively low-quality compared to the polygon data to reduce memory consumption.

Animated meshes present their own set of problems, too...

Thanks Ferris. SDF sounds like something to look into in the future then. I'll start with the simpler stuff to begin with. I found this, but you're probably already aware of it (or don't need it, by the sound if it).

K++
raizor

Challenge Trophies Won:

Offline ferris

  • Pentium
  • *****
  • Posts: 841
  • Karma: 84
    • View Profile
    • Youth Uprising Home
Re: A bit confused about Ray Marching meshes
« Reply #3 on: November 13, 2011 »
Actually, by SDF, I meant signed distance field :) Cool link, though!!
http://iamferris.com/
http://youth-uprising.com/

Where the fun's at.
Challenge Trophies Won:

Offline Raizor

  • Founder Member
  • Pentium
  • ********
  • Posts: 1154
  • Karma: 175
    • View Profile
Re: A bit confused about Ray Marching meshes
« Reply #4 on: November 14, 2011 »
Heh, damn acronyms! Thanks Ferris. I didn't actually read through that page, but it looked relevant so I bookmarked it for later. Found some stuff on signed distance fields, so all good :)
raizor

Challenge Trophies Won: