|
|
Patrick Elliott wrote:
> Any idea why Thunderbird sometimes completely screws up some messages? I
> had to go to the web view to see this at all, since the copy in
> Thunderbird was completely empty...
I see it fine in Thunderbird.
> Planned to generate the test data in POV-Ray. And, no I don't really
> have the coordinates *until runtime* either. The following is the test
> code I used to get the general concept working
considering you already use vb as a test environment you
might try the following route to avoid reproducing everything
in SDL
1. Use POV-Ray to generate a grey scale heigth image
(not rendering a height_field, just using texture
to define terrain elevation). For testing purposes,
you can skip this step and use handpainted data or
terrain generated, e.g., from World machine.
2. Create a Bitmap object in your VB App. When determining
the height of the ground over a position, use Bitmap.GetPixel
to get the heigth information (rounding to the nearest pixel
value may ok, otherwise, evaluate the four surrounding pixels
and calculate the weighted average).
3. At the end of your algorithm, write an include file containing
a union of spheres for the generated objects.
4. Render a POV-Ray scene containing a height_field based on
the image and your exported spheres.
Post a reply to this message
|
|