Twisted DIRT Forums

MX vs ATV (and prior MX games) Forum => Track Making Tools (Reflex Track Compiler, MVA Editor, Armadillo/Dillo Too/APM/Etc.) => Topic started by: Robbo566 on February 17, 2005, 07:36:16 AM

Title: Pov-Ray Help
Post by: Robbo566 on February 17, 2005, 07:36:16 AM
Hi, I'm having some trouble with Pov-Ray. The tutorials I read weren't in depth enough for me. I kinda didn't understand.
I searched through this forum, and didn't really find much.
I typed in my displacement map..

object {
  height_field {
    /*
     *  CHANGE the next line to point to your displacement map.
     */
    tga "C:\MCM2\Other\Povray\track27copy.tga"
    scale <SCALE_FACTOR, 50.0, SCALE_FACTOR>
    smooth

And now smooth up there^^ is in yellow. It stoped on there. What else do I have to do in Pov-Ray to get it to make my textures?

Thanks for your time.
Ben.
Title: Re: Pov-Ray Help
Post by: aaron.270 on February 17, 2005, 06:54:37 PM
I think you have to remove the smooth line.  It must have been used in earlier versions of POV-RAY and got dropped or something like that so try and remove it.
Title: Re: Pov-Ray Help
Post by: DirtTwister on February 17, 2005, 08:22:05 PM
Read this thread.  It will help you.

http://dirttwister.com/smf/index.php?topic=626.0

Bruce
Title: Re: Pov-Ray Help
Post by: Robbo566 on February 18, 2005, 03:29:20 AM
Thanks fellas. I read it before, but I didn't really think anything of it. But then since mxd_motoron said something about the smoothing part, it made sense.

So I've got it to render without faults. Now I have been trying to make my DispMap smoother, so the shadows look better. But how do I adjust the angle on where the sun comes on?

I'm going to use this sky, http://mcmfactory.com/display.php?cat=objects&id=59

There doesn't seem to be much sun. What do you suggest I do as in setting it up in Pov-Ray?
I want the sun to come from the bottom of the screen (If for example, It was in Pov-Ray)

Thanks for your time.
Title: Re: Pov-Ray Help
Post by: 51 on February 19, 2005, 10:50:02 AM
you can adjust both the scale factor below your TGA file and the light position. one way which may be easier is to rotate your map to compensate. like if the sun is or light is currently on the top of the screen just rotate your track 180 degrees in photoshop, save a copy, render it in pov ray, and then rotate the render back to fit over your texmap.