POV-Ray : Newsgroups : povray.beta-test : A bug in shapes.inc? : Re: A bug in shapes.inc? Server Time
1 Jun 2024 20:33:48 EDT (-0400)
  Re: A bug in shapes.inc?  
From: Thomas de Groot
Date: 18 May 2011 03:17:06
Message: <4dd37272$1@news.povray.org>
"Le_Forgeron" <jgr### [at] freefr> schreef in bericht 
news:4dd2a7cf$1@news.povray.org...
> I got 8 lines in the saved file with a 2400x1200 image.
> No comma between vector (but comma is traditionally optional in SDL)
> I have an issue on the face_indices values: 1.996e+06 is not a good
> value, as I have a bit more vectors and it complains about finding a "<"
> instead of a "}".

The better output format would be line feed for every data value, separated 
by commas, i.e. the way Poseray writes mesh2 data. That way the file is 
easily readable in all circumstances.

>
> The number should not be rounded.
> You get lucky with 1000x1000 as it comes out as 1e+06
> but you would be in trouble with 1001x1001, IMHO.
> A few line feed would be welcome too.
> (like one every 10 vector ?)
>
> The update should be done in the #Write of HFCreate_, to replace
> xRes*zRes with
> xRes,"*",zRes
>
> (and
> (xRes-1)*(zRes-1)*2 with
> (xRes-1),"*",(zRes-1),"*2"
> ) (if you get the spirit of it ?)

As shall play with this, thanks!

>
> There already some double while-loop used to dump the vectors, so adding
> a "\n" under #if(WriteFile) might already ease the output file.
> (well, instead of 1 line of 1 million vectors... 1000 lines of 1000
> vectors each... is that better ?)

As said above, Poseray's lay-out is a better standard imo.


> I got a full render if I comment out the last "object" from the scene.
> It's just plain black. (well, no light, no ambient.. ok)
>
> The maximum resident size was 2 161 776 kilobytes. Might be an issue for
> 32 bits systems. (that's a bit more than 2 Giga, usual issue for 32 bits
> program)
> What is your system ?

Yes, the size of the output might be a problem indeed. In general, I want to 
keep my mesh2 files well under the 100Mb.

My system is an 32 bits WinXP-SP3, 3GHz, dual core machine.

Thanks for this already!!

Thomas


Post a reply to this message

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