POV-Ray : Newsgroups : povray.newusers : How to locate/light this airplane skeleton? : Re: How to locate/light this airplane skeleton? Server Time
25 Jul 2021 14:34:14 EDT (-0400)
  Re: How to locate/light this airplane skeleton?  
From: Cousin Ricky
Date: 11 May 2021 00:57:52
Message: <609a0ed0$1@news.povray.org>
On 2021-05-09 11:01 PM (-4), coltson wrote:
> Hello. I got the code to render the skeleton of an airplane. However, its only
> the airplane's skeleton code, no "scene" code is there, so I cannot send povray
> ro render it and see the results. So I used the menu and inserted two default
> point light (changed one of them a bit) and "A typical camera".
> 
> However, the end result is nearly black, and nothing from the skeleton can be
> seen:

Moving the lights and camera, or setting emission on the texture will
not help in this case (sorry, Bill).  Only creating an environment will
reveal the problem.

1. First declare the airplane, so its dimensions can be read.

2. Place the airplane in the scene.

3. Create a ground plane, using the airplane's dimensions as a guide.

4. Add a background.

----------[BEGIN CODE EXCERPT]----------
#declare Airplane =
object { Body(R1, R2, R3, R4, R5)
        texture {
                pigment {
                        color_map {      // color map
                                [0.1 color red 1]
                                [0.5 color rgbf 1]
                        }
                }
                finish {diffuse 0.9 phong 1}
        }
}
object { Airplane }
plane
{ y, min_extent (Airplane).y
  pigment { rgb 0.5 }
}
background { rgb <0.3, 0.5, 0.7> }
-----------[END CODE EXCERPT]-----------

As it turns out, your current camera shows enough of the airplane to
give you an idea of how to adjust it.

As you can see, the airplane really is black.  The reason is that the
pigment has no pattern on which to apply the color map.  The pigment
needs a pattern, such as gradient, marble, or wood.

You should have gotten a parse warning "Pigment type unspecified or not
1st item" or "No pigment type given" in the message window.


Post a reply to this message

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