POV-Ray : Newsgroups : povray.binaries.images : HELP: How to replace image? Server Time
23 Dec 2024 22:31:10 EST (-0500)
  HELP: How to replace image? (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Alain
Subject: Re: HELP: How to replace image?
Date: 29 Mar 2015 16:47:12
Message: <551864d0@news.povray.org>

> Thanks to both of you.
>
> As wished, I am attaching now a rendered image.
>
> Color Depth: great reminder! Of course. I won't reduce their dimensions as i
> need them in hi-res, and i cannot adjust compression levels in PNGs. but yes, I
> will make them gray-scale. Let's see. :-)
>
> I also created already a first animation, but the ship is still very far from
> complete.
>
>
>
>
>
>
>
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> Hi,
>>
>> currently, I am using large images for my spaceship project as hull
>> textures (please see the attached image). But that takes plenty memory
>> and increases a lot the rendering time.
>>
>> If you look to the attached hull texture, is there any way to create
>> something like this with a function or formula? Please assists. Thanks.
>

If you use IrfanView, you can easily change the compression level from 0 
(barely any) to 9 (maximum).
Other graphic tools may also offer such an option, or always use some 
hard coded setting.


Post a reply to this message

From: Kenneth
Subject: Re: HELP: How to replace image?
Date: 29 Mar 2015 20:10:00
Message: <web.5518931b1418ae68f644696d0@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
> Hi,
>
> currently, I am using large images for my spaceship project as hull
> textures (please see the attached image). But that takes plenty memory
> and increases a lot the rendering time.
>

If you are applying your single image_map *many* times to your model (for
example, like many randomly-placed 'decals'), another way to save memory is to
first #declare the image_map in a pigment statement:

#declare my_hull_pigment = pigment{image_map{.....}}

......then use that in your scene, as the pigment in your (many) textures,
instead of a new image_map statement every time. This way, the original image
takes up memory only once. The idea is similar in concept to using a single mesh
object many times in a scene: one mesh which is 're-used', requiring no
additional memory.


Post a reply to this message

From: Thomas de Groot
Subject: Re: HELP: How to replace image?
Date: 30 Mar 2015 03:06:10
Message: <5518f5e2@news.povray.org>
On 29-3-2015 22:47, Alain wrote:

>> Thanks to both of you.
>>
>> As wished, I am attaching now a rendered image.
>>
>> Color Depth: great reminder! Of course. I won't reduce their
>> dimensions as i
>> need them in hi-res, and i cannot adjust compression levels in PNGs.
>> but yes, I
>> will make them gray-scale. Let's see. :-)
>>
>> I also created already a first animation, but the ship is still very
>> far from
>> complete.
>>
>>
>>
>>
>>
>>
>>
>> Sven Littkowski <jam### [at] yahoocom> wrote:
>>> Hi,
>>>
>>> currently, I am using large images for my spaceship project as hull
>>> textures (please see the attached image). But that takes plenty memory
>>> and increases a lot the rendering time.
>>>
>>> If you look to the attached hull texture, is there any way to create
>>> something like this with a function or formula? Please assists. Thanks.
>>
>
> If you use IrfanView, you can easily change the compression level from 0
> (barely any) to 9 (maximum).
> Other graphic tools may also offer such an option, or always use some
> hard coded setting.
>

The GIMP offers that possibility too.

-- 
Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: HELP: How to replace image?
Date: 30 Mar 2015 03:07:57
Message: <5518f64d$1@news.povray.org>
On 30-3-2015 2:07, Kenneth wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> Hi,
>>
>> currently, I am using large images for my spaceship project as hull
>> textures (please see the attached image). But that takes plenty memory
>> and increases a lot the rendering time.
>>
>
> If you are applying your single image_map *many* times to your model (for
> example, like many randomly-placed 'decals'), another way to save memory is to
> first #declare the image_map in a pigment statement:
>
> #declare my_hull_pigment = pigment{image_map{.....}}
>
> ......then use that in your scene, as the pigment in your (many) textures,
> instead of a new image_map statement every time. This way, the original image
> takes up memory only once. The idea is similar in concept to using a single mesh
> object many times in a scene: one mesh which is 're-used', requiring no
> additional memory.
>

Good point! I did not know that, but is obvious indeed.


-- 
Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: HELP: How to replace image?
Date: 30 Mar 2015 03:25:04
Message: <5518fa50$1@news.povray.org>
On 29-3-2015 14:22, Thomas de Groot wrote:
> On 29-3-2015 11:11, Sven Littkowski wrote:
>> Tiles! Yes, of course! Thanks.
>>
>
> You could play with a combination of tiling patterns and pavement patterns.

Reminder: When using patterns for uv_mapping, remember that tiling and 
pavement patterns are oriented according to the x/z plane while uv 
coordinates lie in the x/y plane. For use on an object you need to 
rotate your texture by -90*x

-- 
Thomas


Post a reply to this message

From: Kenneth
Subject: Re: HELP: How to replace image?
Date: 30 Mar 2015 13:00:01
Message: <web.551980711418ae68f644696d0@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:

>
> Good point! I did not know that, but is obvious indeed.
>

I discovered that trick several years(?) ago, while working on a complex
animation scene. It greatly reduces scene-parsing time, when re-using an
image_map.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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