We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › number of primitives with p5sunflow
Page Index Toggle Pages: 1
number of primitives with p5sunflow (Read 1441 times)
number of primitives with p5sunflow
Dec 27th, 2009, 8:06pm
 

hi all,

i am rendering some scene with a lot of polygons in p5sunflow and after a while, sometimes 20 rendered frames or 200 frames, the program stops and this is what i get.

is this because of the number of polygons or?
any help would be really appreciated.

thanks.
v

Tracing virtual photons [96%]
Tracing virtual photons [98%]
                                                                   
LIGHT  info  : Tracing time for virtual photons: 9ms
LIGHT  info  : Stored 0 virtual point lights for set 1 of 1
LIGHT  info  : Light Server stats:
LIGHT  info  :   * Light sources found: 1
LIGHT  info  :   * Light samples:       1
LIGHT  info  :   * Max raytrace depth:
LIGHT  info  :       - Diffuse          1
LIGHT  info  :       - Reflection       4
LIGHT  info  :       - Refraction       4
LIGHT  info  :   * GI engine            igi
LIGHT  info  :   * Caustics:            none
LIGHT  info  :   * Shader override:     false
LIGHT  info  :   * Photon override:     false
LIGHT  info  :   * Build time:          10ms
SCENE  info  : Rendering ...
BCKT   info  : Bucket renderer settings:
BCKT   info  :   * Resolution:         800x600
BCKT   info  :   * Bucket size:        32
BCKT   info  :   * Number of buckets:  25x19
BCKT   info  :   * Anti-aliasing:      1 sample -> 4 samples (adaptive)
BCKT   info  :   * Rays per sample:    1
BCKT   info  :   * Subpixel jitter:    off
BCKT   info  :   * Contrast threshold: 0.10
BCKT   info  :   * Filter type:        gaussian
BCKT   info  :   * Filter size:        3.00 pixels
Rendering [0%]
...
...

.
Rendering [99%]
BCKT   info  : Render time: 0:00:23.0
SCENE  info  : Raytracing stats:
SCENE  info  :   * Rays traced:              (per pixel) (per eye ray) (percentage)
SCENE  info  :       eye              595833      1.24         1.00        7.79%
SCENE  info  :       shadow          7052544     14.69        11.84       92.21%
SCENE  info  :       total           7648377     15.93        12.84      100.00%
SCENE  info  : Done.

top of draw method
set Global illumination at render
in render : Shape draw!
in render : Shape draw!
in render : Shape draw!
in render : Shape draw!
in render : Shape draw!
in render : Shape draw!

... another couple of thousands/hundreds of same lines in render: shape draw!...
then
in render : Lights set!
Set Point Light
after scene.set : (Infinity, Infinity, Infinity) to (-Infinity, -Infinity, -Infinity)
after camera.set : (Infinity, Infinity, Infinity) to (-Infinity, -Infinity, -Infinity)

API    info  : Building scene instance list for rendering ...
API    info  : Building scene light list for rendering ...
SCENE  info  : Scene stats:
SCENE  info  :   * Infinite instances:  1
SCENE  info  :   * Instances:           1074
SCENE  info  :   * Primitives:          26298
SCENE  info  :   * Instance accel:      auto
Re: number of primitives with p5sunflow
Reply #1 - Jan 3rd, 2010, 7:43am
 
i am still trying to play around with this... and i can't find the solution yet.
does anyone know if there is a way to limit the scene in processing, or this needs to be done through sunflow commands?

if i limit the scene to a cube or ball, i have a feeling that the 'infinity...' messages will disappear?

thanks

t


in render : Shape draw!
in render : Shape draw!
in render : Lights set!
Set Point Light
after scene.set : (Infinity, Infinity, Infinity) to (-Infinity, -Infinity, -Infinity)
after camera.set : (Infinity, Infinity, Infinity) to (-Infinity, -Infinity, -Infinity)

API    info  : Building scene instance list for rendering ...
API    info  : Building scene light list for rendering ...
SCENE  info  : Scene stats:
SCENE  info  :   * Infinite instances:  1
SCENE  info  :   * Instances:           64000
SCENE  info  :   * Primitives:          1407999
SCENE  info  :   * Instance accel:      auto
Re: number of primitives with p5sunflow
Reply #2 - Jan 8th, 2010, 5:16am
 
Can you post the processing code.

I have had similar issues before and it't usually during the setup() of the code.
Re: number of primitives with p5sunflow
Reply #3 - Feb 9th, 2010, 3:07pm
 
hey guys,

what version of processing are you using to get p5sunflow running. i have 1.0.7 installed and its telling me that p5sunlow needs an update in order to work with my processing version.

thanks!

// update
here is help for desperate fools like me:
discourse/yabb2/?num=1243094814
Re: number of primitives with p5sunflow
Reply #4 - Feb 10th, 2010, 4:36am
 
you can get an updated and working version here : http://github.com/hryk/p5sunflow
Page Index Toggle Pages: 1