POV-Ray : Newsgroups : povray.general : Skybox problem : Re: Skybox problem Server Time
30 Jul 2024 08:29:03 EDT (-0400)
  Re: Skybox problem  
From: "Jérôme M. Berger"
Date: 3 May 2009 02:28:33
Message: <49fd3991$1@news.povray.org>
JS wrote:
> I have been using Pov-ray to generate textures for my Direct3D game and thought
> it would be perfect for creating the 6 textures to be mapped to the skybox in
> my game. Using a sky_sphere, I have the camera with a FOV of 90 degrees and
> rotated the camera as needed and can line up all by the top and bottom textures
> to the front texture.
> 
> This is how each texture generated by Pov-Ray with the camera rotated are lined
> up:
> 
>       top
>         |
> left-front-right-back
>         |
>      bottom
> 
> The left texture lines up perfectly with the front, the front with the right and
> the right with the back. But the top and bottom do not line up with the front
> texture of the sky sphere.
> 
> These are the camera rotation angles I have used:
> 
> front=(0,180,0)
> left=(0,-90,0)
> back=(0,0,0)
> right=(0,90,0)
> up=(-90,90,0)
> down=(90,90,0)
> 
> The camera setup I have is this:
> 
> camera {
>     location <0,0,0>
>     direction 0.5*z right x up 0.75*y
>     look_at <0,0,1>
>     rotate <0,0,0>}
> 
> Which is meant to give a FOV of 90 degrees.
> 
	You have an horizontal FOV of 90 degrees, but a smaller vertical 
FOV. You should use "up y" instead of "up 0.75*y".

		Jerome
-- 
mailto:jeb### [at] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.