|
|
"helge_h" <nomail@nomail> wrote in
news:web.44044a50a7dd28121c6902970@news.povray.org:
> "helge_h" <nomail@nomail> wrote:
>> emzic <emz### [at] SPAMembegecom> wrote:
>> > hello,
>> >
>> > i want to generate 6 quadratic images to be used as skybox textures
>> > in a game. but unfortunately i have no idea how to set up the
>> > camera correctly besides that it has to look into the 6 different
>> > directions.
>> >
>> > i would be very grateful for any help on this.
>> >
>> > thank you!
>>
>> maybe this can help:
>
> sorry, the url was too long; try this:
>
> http://tinyurl.com/pctrj
thank you!
unfortunately those six images dont fit together at all. i was even
trying to stitch them together in photoshop but couldnt find any matching
edges.
meanwhile i could create matching front, back, left and right textures
using an angle of 90.
camera {
location <0, 0, 0>
look_at <1, 0, 0> //vary the direction here
angle 90
}
just the top and bottom textures dont seem to match when i use look_at
<0,-1,0> and <0,1,0>
thank you for any help!
Post a reply to this message
|
|
|
|
"emzic" <emz### [at] SPAMembegecom> wrote in message
news:Xns9778920C76B0BemzicNOSPAMembegecom@203.29.75.35...
> ... snip ...
> meanwhile i could create matching front, back, left and right textures
> using an angle of 90.
>
> camera {
> location <0, 0, 0>
> look_at <1, 0, 0> //vary the direction here
> angle 90
> }
>
> just the top and bottom textures dont seem to match when i use look_at
> <0,-1,0> and <0,1,0>
>
> thank you for any help!
I think you're nearly there, it's probably just that the default aspect
ratio is 4 to 3, so if you add a right vector and an up vector with length 1
then you should be able to generate 6 squares that fit together around a
cube. The example below illustrates this.
Note. The image width and height you generate will need to be equal,
otherwise it still won't help much.
Regards,
Chris B.
camera {location <0,0,0>
look_at <0,-1,0>
angle 90
right x
up y
}
light_source{0 rgb 1}
cylinder {<-1,-1, 1><-1, 1, 1>,0.08 pigment {color rgb <1,0,0>}}
cylinder {< 1,-1, 1>< 1, 1, 1>,0.08 pigment {color rgb <1,1,0>}}
cylinder {<-1,-1,-1><-1, 1,-1>,0.08 pigment {color rgb <1,0,1>}}
cylinder {< 1,-1,-1>< 1, 1,-1>,0.08 pigment {color rgb <0,1,1>}}
Post a reply to this message
|
|