|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
For a school project with my class, we drew a mesh over mount Pilate
(switzerland) and extracted all heights from the map. I already plotted a
3D-surface in Excel, but I thought, using povray I could somehow take a satelite
picture of the area a render a nice image of the mountain.
My problem is that I didn't use povray for a long time and thus don't know how
to do this in a quick way.
As far as I saw, I can't use height field. Should I use mesh or mesh2? How to
get my texture picture over the mesh?
Maybe somebody out there can solve my problem in no time... ;) Thanks in
advance!
Regards,
Martin
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 3-11-2015 12:08, Martin Lacher wrote:
> Hi,
>
> For a school project with my class, we drew a mesh over mount Pilate
> (switzerland) and extracted all heights from the map. I already plotted a
> 3D-surface in Excel, but I thought, using povray I could somehow take a satelite
> picture of the area a render a nice image of the mountain.
> My problem is that I didn't use povray for a long time and thus don't know how
> to do this in a quick way.
> As far as I saw, I can't use height field. Should I use mesh or mesh2? How to
> get my texture picture over the mesh?
>
> Maybe somebody out there can solve my problem in no time... ;) Thanks in
> advance!
>
Just thinking aloud: you will need to uv-map your mesh. I suppose you
can export the mesh as an obj file for instance, and load that into an
appropriate program like Wings3D (free) where you can uv-map the mesh,
export again and turn it into a mesh2 file with Poseray, and finally
render in POV-Ray. That is the way I would take.
--
Thomas
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 11/3/2015 12:41 PM, Thomas de Groot wrote:
> On 3-11-2015 12:08, Martin Lacher wrote:
>> Hi,
>>
>> For a school project with my class, we drew a mesh over mount Pilate
>> (switzerland) and extracted all heights from the map. I already plotted a
>> 3D-surface in Excel, but I thought, using povray I could somehow take
>> a satelite
>> picture of the area a render a nice image of the mountain.
>> My problem is that I didn't use povray for a long time and thus don't
>> know how
>> to do this in a quick way.
>> As far as I saw, I can't use height field. Should I use mesh or mesh2?
>> How to
>> get my texture picture over the mesh?
>>
>> Maybe somebody out there can solve my problem in no time... ;) Thanks in
>> advance!
>>
>
> Just thinking aloud: you will need to uv-map your mesh. I suppose you
> can export the mesh as an obj file for instance, and load that into an
> appropriate program like Wings3D (free) where you can uv-map the mesh,
> export again and turn it into a mesh2 file with Poseray, and finally
> render in POV-Ray. That is the way I would take.
>
>
This tutorial might be useful
Using UV-mapping with POV-Ray meshes
https://www.mediaport.net/CP/Artichaud/Tran/sources/tutuve.htm
--
Regards
Stephen
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Martin Lacher" <fue### [at] gmxch> wrote:
> Hi,
>
> For a school project with my class, we drew a mesh over mount Pilate
> (switzerland) and extracted all heights from the map. I already plotted a
> 3D-surface in Excel, but I thought, using povray I could somehow take a satelite
> picture of the area a render a nice image of the mountain.
> My problem is that I didn't use povray for a long time and thus don't know how
> to do this in a quick way.
> As far as I saw, I can't use height field. Should I use mesh or mesh2? How to
> get my texture picture over the mesh?
>
> Maybe somebody out there can solve my problem in no time... ;) Thanks in
> advance!
>
> Regards,
>
> Martin
If I understand your problem correctely mesh will be easier than mesh2. You
define a triangle for every triangle in your Excel-data and specify the
uv-vectors as the x and z component of your triangle, if y is up, or the x and y
component, if z is up. With mesh2 you have to bother about the indices of the
Vertices. Internally both objects are the same.
If you have defined proper uv-vectors you can texture your mesh with something
like
texture{
uv_mapping pigment{ Image_map { jpeg "YourSatelliteImage.jpg"} }
}
Since I never plottet surfaces with Excel, I have no idea how your data are
arranged. So I can give you this hints only.
Best regards,
Michael
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 03.11.2015 12:08, Martin Lacher wrote:
> For a school project with my class, we drew a mesh over mount Pilate
> (switzerland) and extracted all heights from the map.
when you say mesh in this context, do you mean a rectangular grid?
If so the height data is essentially an image that can be used with
height_field, except for the file format. You might be able to convert
the excel data into ppm/pgm which has an ASCII based variant and is
supported by POV-ray
http://netpbm.sourceforge.net/doc/ppm.html
Otherwise you need to go with a mesh. Since the mesh in essence
still represents a height field it is probably not necessary to uv-map
it, defining pigment without uv-mapping will allow you to project the
the satellite imagery "from above" which should be what you need.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|