They're here! More Muvipix.com Guides by Steve Grisetti!
The Muvipix.com Guides to Premiere & Photoshop Elements 2024
As well as The Muvipix.com Guide to CyberLink PowerDirector 21
Because there are stories to tell
muvipix.com

3D Video Mapping using POVRay

Video / Image editing, advanced techniques, computer settings, third party software, shortcuts, workarounds ... share your tips and tricks here.

3D Video Mapping using POVRay

Postby Chris B » Tue Oct 18, 2011 2:46 pm

Not quite sure if this is the right section. I downloaded POVRAY today (http://www.povray.org) in the ongoing quest for the perfect page turn :) POVRay is something I used to play with years ago. Anyhow I worked out how to place an image map onto an object in the ray tracer and animate this. At the moment I've just mapped onto a torus - which I know can be done in other ways. My goal is to map to more useful or interesting shapes - say a flag or page or similar. Here's what I have so far using VMS 10 and POVRAY 3.7 rc3:

[wmvvideo]http://muvipix.com/cpg/albums/userpics/10215/torus_map.wmv[/wmvvideo]

Basic technique (deep breath) - export video as a series of images to use as "image maps" on POVRAY with the frame number for each frame then export back out a series of images to import as an image series into Vegas. If I get something more useful I'll come back with detailed instructions.

You could potentially use this to do some of the fancy 3d compositing that after effects manages - although it would be a lot more manual.
Intel Core i7 8700 - 32GB DDR4 - 500GB Evo 970 SSD - 3+2 TB HDD - GTX 1080- MSI Z370 Pro - Win10 64 bit - Cannon HV30 (PAL) - Sony A6000 - GoPro 3 Black
User avatar
Chris B
Moderator
Moderator
 
Posts: 819
Joined: Tue Apr 24, 2007 6:04 pm
Location: UK

Re: 3D Video Mapping using POVRay

Postby Steve Grisetti » Tue Oct 18, 2011 3:19 pm

Wow! That's a cool effect, Chris!
HP Envy with 2.9/4.4 ghz i7-10700 and 16 gig of RAM running Windows 11 Pro
User avatar
Steve Grisetti
Super Moderator
Super Moderator
 
Posts: 14444
Joined: Sat Feb 17, 2007 5:11 pm
Location: Milwaukee, Wisconsin

Re: 3D Video Mapping using POVRay

Postby Dave McElderry » Tue Oct 18, 2011 4:18 pm

Wow - that's wild! Not sure where I'd ever use it.
Be yourself; everyone else is taken.

Asus X570-E motherboard; AMD Ryzen 9 3900X 3.8 GHz; 64GB DDR4; GeForce RTX 2060 6GB; 1TB Samsung 970 Pro M.2 SSD
User avatar
Dave McElderry
Moderator
Moderator
 
Posts: 4758
Joined: Fri Feb 23, 2007 10:18 am
Location: Lost In Middle America

Re: 3D Video Mapping using POVRay

Postby Jayell » Tue Oct 18, 2011 11:26 pm

Not sure I follow the details .. but very cool looking.
HP Envy Desktop 795-0040xt / Win 10 Home/ Intel Core i7-8700 / 32GB memory / NVidia GeForce GTS 1060 3G
User avatar
Jayell
Premiere Member
Premiere Member
 
Posts: 1896
Joined: Wed Feb 21, 2007 11:05 am
Location: near Tucson, Arizona

Re: 3D Video Mapping using POVRay

Postby Chris B » Thu Oct 20, 2011 5:51 pm

OK - this is not quite the same thing but it's using the same tools. A small title animation using POVRay. It's not that clear on the video but the text is made of Orange glass with a soft shadow including simulated caustics.

[wmvvideo]http://muvipix.com/cpg/albums/userpics/10215/muvipix_text%7E0.wmv[/wmvvideo]

I think there's potential in this program. I've got some more seroius 3d stuff that I'm going to try. Anyhow - here's the source POV file for the title above.

Code: Select all
  #include "colors.inc"   
  #include "textures.inc"
   
   global_settings {
   photons {
     count 100000
     autostop 0
     jitter .4   } }
 
  camera {
    location <0, 0, -6>
    look_at  <0, 0,  0>  }
         
plane { z,1
pigment { colour White
}  }
       
  light_source { <2.5-clock*4, 3.5-clock*7, -6+clock*2> colour White 
    area_light <0.25, 0, 0>, <0, 0.25, 0>, 5, 5
    adaptive 1
    jitter
     photons {
     refraction on
     reflection on   }  }

  text {
    ttf "cyrvetic.ttf" "Muvipix.com" .3, 0   
    translate x*-2.5
    texture { Orange_Glass }
    photons{
  target
  reflection on
  refraction on
  collect on    } }


And this in the accompanying ini file use to render it.

Code: Select all
; Persistence Of Vision raytracer version 3.5 ini file.
Antialias=On
Antialias_Threshold=0.3
Antialias_Depth=3

Input_File_Name=text.pov

Output_File_Name=muvipix

Initial_Frame=0
Final_Frame=89

Initial_Clock=0
Final_Clock=1
Intel Core i7 8700 - 32GB DDR4 - 500GB Evo 970 SSD - 3+2 TB HDD - GTX 1080- MSI Z370 Pro - Win10 64 bit - Cannon HV30 (PAL) - Sony A6000 - GoPro 3 Black
User avatar
Chris B
Moderator
Moderator
 
Posts: 819
Joined: Tue Apr 24, 2007 6:04 pm
Location: UK

Re: 3D Video Mapping using POVRay

Postby momoffduty » Fri Oct 21, 2011 2:15 pm

I like the sparkle to the glass. Is this a stand alone program?
aka Cheryl
Intel i7 3770, Windows 7 Pro w/SP1, 64 bit, Intel 520 Series SSD, 32G RAM, 2 – 2T RAID, (1T external), GTX 550 Ti graphics
User avatar
momoffduty
Moderator
Moderator
 
Posts: 7599
Joined: Thu Feb 22, 2007 10:43 am
Location: near St. Louis

Re: 3D Video Mapping using POVRay

Postby dlgilbert » Fri Oct 21, 2011 3:12 pm

Oh, I'll bet you could have all KINDS of fun with that program! Very cool!
Dan Gilbert
User avatar
dlgilbert
Registered User
Registered User
 
Posts: 75
Joined: Mon Aug 23, 2010 6:13 pm

Re: 3D Video Mapping using POVRay

Postby Chris B » Fri Oct 21, 2011 5:02 pm

Yes, it's stand alone - although there are lots of support programs.

I've never really played with animation with this before - I think there's a lot of potential with titles. Because it's a Ray Tracer it does things like glass and mirrors and shadows very well.

Here's the "hall of fame" of user created images.

http://hof.povray.org/
Intel Core i7 8700 - 32GB DDR4 - 500GB Evo 970 SSD - 3+2 TB HDD - GTX 1080- MSI Z370 Pro - Win10 64 bit - Cannon HV30 (PAL) - Sony A6000 - GoPro 3 Black
User avatar
Chris B
Moderator
Moderator
 
Posts: 819
Joined: Tue Apr 24, 2007 6:04 pm
Location: UK

Re: 3D Video Mapping using POVRay

Postby Chris B » Sat Oct 22, 2011 1:02 am

Here's another slightly higher resolution example. Shows a bit more detail. I've also tweaked the font, colour and camera movement slightly. (the ivdeo is actually 640x480 - but I can;t make it appear in the post - Help Ron?). Download for a better look in the meantime.

[wmvvideo1]http://muvipix.com/cpg/albums/userpics/10215/muvipix_text_2.wmv[/wmvvideo1]

And the .pov file:
Code: Select all
  #include "colors.inc"   
  #include "textures.inc"
   
   global_settings {
   photons {
     count 100000
     autostop 0
     jitter .4   } }
 
  camera {
    location <0, 0, -6+clock/2>
    look_at  <0, 0,  0>  }
         
plane { z,1
pigment { colour White
}  }
       
  light_source { <3.5-clock*6, 5-clock*11, -6+clock*2> colour White 
    area_light <0.25, 0, 0>, <0, 0.25, 0>, 5, 5
    adaptive 1
    jitter
     photons {
     refraction on
     reflection on   } 
}

  text {
    ttf "JOKERMAN.TTF" "Muvipix.com" .3, 0   
    translate x*-3.15
    texture {
    NBglass
    pigment{ gradient x
    color_map {
      [0.00 color rgbf <1,0,0,0.8>]
      [1 color rgbf <0,.25,1,0.8> ]
      }
      scale 6.5
      translate -3.15
 }      }
    photons{
  target
  reflection on
  refraction on
  collect on    }
}
Intel Core i7 8700 - 32GB DDR4 - 500GB Evo 970 SSD - 3+2 TB HDD - GTX 1080- MSI Z370 Pro - Win10 64 bit - Cannon HV30 (PAL) - Sony A6000 - GoPro 3 Black
User avatar
Chris B
Moderator
Moderator
 
Posts: 819
Joined: Tue Apr 24, 2007 6:04 pm
Location: UK

Re: 3D Video Mapping using POVRay

Postby Paul LS » Sat Oct 22, 2011 4:17 am

Some incredible work in the "hall of fame"... amazing :)
Paul LS
Super Contributor
Super Contributor
 
Posts: 3064
Joined: Sat Feb 10, 2007 11:21 am
Location: Southampton, UK

Re: 3D Video Mapping using POVRay

Postby Chris B » Sun Oct 23, 2011 9:52 am

OK - next attempt.
[wmvvideo1]http://muvipix.com/cpg/albums/userpics/10215/POV_Video.wmv[/wmvvideo1]
This is a scene using POVRay and three imported videos from the background collections. Not quite as I'd hoped but reasonably pleased with the results.
Intel Core i7 8700 - 32GB DDR4 - 500GB Evo 970 SSD - 3+2 TB HDD - GTX 1080- MSI Z370 Pro - Win10 64 bit - Cannon HV30 (PAL) - Sony A6000 - GoPro 3 Black
User avatar
Chris B
Moderator
Moderator
 
Posts: 819
Joined: Tue Apr 24, 2007 6:04 pm
Location: UK


Return to Tips and Tricks 


Similar topics


Who is online

Users browsing this forum: Google [Bot] and 25 guests