POV-Ray : Newsgroups : povray.general : Creating a real world image Server Time
26 Nov 2024 03:38:52 EST (-0500)
  Creating a real world image (Message 1 to 7 of 7)  
From: Mike Larry
Subject: Creating a real world image
Date: 7 Nov 2011 06:30:01
Message: <web.4eb7c113698d79b3827ea9b0@news.povray.org>
Hello there,
       I'm new to pov-ray, and have been messing around with pov ray for a bit.
I would like to create a real world 3D room in povray. By this what I mean is, I
want to create a room, and attach real world images into some parts of the room
( like a table, or computer).
       Then problem is I have no idea how to go about this. Do I create a model
of a table in pov ray and try to find a picture which looks similar? Or, do I
find a picture and try to model it in pov ray? But what if, say I find a picture
of a sofa from one angle, and model it, attach the picture, but when I look at
it from another angle the sofa won't look the part (since I don't have a picture
to associate the sofa from that angle).
       If there are guides out there, please point me the right direction. Thank
you for your help in advance. Much appreciated.

Mike


Post a reply to this message

From: nemesis
Subject: Re: Creating a real world image
Date: 7 Nov 2011 07:00:01
Message: <web.4eb7c778b3fce9899a1bcfb90@news.povray.org>
"Mike Larry" <nomail@nomail> wrote:
> Hello there,
>        I'm new to pov-ray, and have been messing around with pov ray for a bit.
> I would like to create a real world 3D room in povray. By this what I mean is, I
> want to create a room, and attach real world images into some parts of the room
> ( like a table, or computer).
>        Then problem is I have no idea how to go about this. Do I create a model
> of a table in pov ray and try to find a picture which looks similar? Or, do I
> find a picture and try to model it in pov ray? But what if, say I find a picture
> of a sofa from one angle, and model it, attach the picture, but when I look at
> it from another angle the sofa won't look the part (since I don't have a picture
> to associate the sofa from that angle).
>        If there are guides out there, please point me the right direction. Thank
> you for your help in advance. Much appreciated.
>

You've got 2 issues there.  First, you don't have complete reference pictures,
so you have to use the imagination to fill in missing parts. Second: povray is
not fit for this kind or real-world modeling, such that it would probably be
easy to design toy csg furniture with it and then try to find pictures that look
like it then finding pictures of real-world paraphernalia and trying to model it
with boxes, cylinders and spheres or math functions.  For that what you really
need is a mesh or nurbs modeler with graphical interface.


Post a reply to this message

From: Stephen
Subject: Re: Creating a real world image
Date: 7 Nov 2011 07:04:38
Message: <4eb7c956$1@news.povray.org>
On 07/11/2011 11:29 AM, Mike Larry wrote:
> Hello there,
>         I'm new to pov-ray, and have been messing around with pov ray for a bit.
> I would like to create a real world 3D room in povray. By this what I mean is, I
> want to create a room, and attach real world images into some parts of the room
> ( like a table, or computer).
>         Then problem is I have no idea how to go about this. Do I create a model
> of a table in pov ray and try to find a picture which looks similar? Or, do I
> find a picture and try to model it in pov ray? But what if, say I find a picture
> of a sofa from one angle, and model it, attach the picture, but when I look at
> it from another angle the sofa won't look the part (since I don't have a picture
> to associate the sofa from that angle).
>         If there are guides out there, please point me the right direction. Thank
> you for your help in advance. Much appreciated.
>
> Mike
>
>
Hi Mike,
	This question is more complicated than it seems at first reading. You 
could build a 3D model using CSG then use image maps to texture the 
separate parts of it. Or you could build a mesh model outside of PovRay 
and UV map it. Then import it into PovRay as a Mesh2 object. To build it 
with CSG you would need different techniques for different types of 
models. Something angular could easily be built with boxes, cones, 
cylinders etc. but a sofa might need superellipsoids to get the 
roundness. You would need images of the different parts of the model and 
a paint program to manipulate them.
It would be best to start out simple and build something like a modest 
table and chair and not be too ambitious to start with. And ask for 
advice in povray.newusers


-- 
Regards
     Stephen


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Creating a real world image
Date: 7 Nov 2011 08:54:31
Message: <4eb7e317$1@news.povray.org>
Mike Larry wrote:

> I would like to create a real world 3D room in povray. By this what I mean is, I
> want to create a room, and attach real world images into some parts of the room
> ( like a table, or computer).

This may not be what you really need. As you yourself noticed this
technique will not allow you to move freely around the room (it can
be used to take an existing photo an insert an artifical object, but
that is also rather advanced).

In order to get a real 3d scene you will need to model the geometry
in all detail at least for foreground objects, and texture them based
on the material they are made of and let lighting handle the rest.


might get away with billboards, i.e. placing a photo of an object in the
scene as a simple textured box where the background is made transparent

some fake shadows, a trick someone posted here once for trees).


Post a reply to this message

From: Mike Larry
Subject: Re: Creating a real world image
Date: 10 Nov 2011 08:55:00
Message: <web.4ebbd74db3fce989ad767bf40@news.povray.org>
Christian Froeschlin <chr### [at] chrfrde> wrote:
> Mike Larry wrote:
>
> > I would like to create a real world 3D room in povray. By this what I mean is, I
> > want to create a room, and attach real world images into some parts of the room
> > ( like a table, or computer).
>
> This may not be what you really need. As you yourself noticed this
> technique will not allow you to move freely around the room (it can
> be used to take an existing photo an insert an artifical object, but
> that is also rather advanced).
>
> In order to get a real 3d scene you will need to model the geometry
> in all detail at least for foreground objects, and texture them based
> on the material they are made of and let lighting handle the rest.
>

> might get away with billboards, i.e. placing a photo of an object in the
> scene as a simple textured box where the background is made transparent

> some fake shadows, a trick someone posted here once for trees).

Thankyou all for the advice. I'm going to go in the way as you guys suggested,
and create my object in povray, and let the lighting handle the realism feel of
it.

On rather different note. Say I have a box, which is hollow(a room). I want to
change colors of different sides of this box(different colors for the walls). Is
this possible? Or do I have to create separate boxes so I can have a room with
different colors for each wall?

Regards,
Mike


Post a reply to this message

From: Jim Holsenback
Subject: Re: Creating a real world image
Date: 10 Nov 2011 09:05:09
Message: <4ebbda15@news.povray.org>
On 11/10/2011 08:53 AM, Mike Larry wrote:
> On rather different note. Say I have a box, which is hollow(a room). I want to
> change colors of different sides of this box(different colors for the walls). Is
> this possible? Or do I have to create separate boxes so I can have a room with
> different colors for each wall?
>
> Regards,
> Mike

povray 3.7beta24 added the cubic pattern:
http://wiki.povray.org/content/Documentation:Reference_Section_5.3#Cubic


Post a reply to this message

From: Alain
Subject: Re: Creating a real world image
Date: 10 Nov 2011 21:36:40
Message: <4ebc8a38@news.povray.org>

>
> On rather different note. Say I have a box, which is hollow(a room). I want to
> change colors of different sides of this box(different colors for the walls). Is
> this possible? Or do I have to create separate boxes so I can have a room with
> different colors for each wall?
>
> Regards,
> Mike
>
>

For that case, using separate boxes for the various walls, floor and 
ceiling is not a big deal. Just make sure that the walls are actualy 
overlaping slightly to prevent cracks and gaps.

That way, you also have more freedom in placing the doors and windows. 
You just cut them out from the wall where they are placed.

Then, there is nothing preventing you from using Jim's proposition. It 
can even be used with the multi-boxes aproatch without trouble.


Alain


Post a reply to this message

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