Cheetah3D User Forum  


Reply
 
Thread Tools Search this Thread Display Modes
Old
  (#1)
chris g (Offline)
Neuer Benutzer
 
Posts: 10
Join Date: 27.07.2012
Default A Possible Bug in C3D v6.0? - 13.08.2012, 20:49

I'm trying to create a simple rack focus using an polygon object to set the focal distance. I'm using "DOF Target.js" script to calculate the distance between the camera and the object as it moves and update the DOF tag's focalDistance parameter.

When I render the animation, at some point during the render C3D hangs. Sometimes it hangs within the first couple of frames but most of the time it hangs around frame 18. I don't think it's the script file as it renders frames before hanging, but I can't be sure.

When setting the DOF tag key frames directly, without using the script the animation renders fine.

See attached zip for test files.

Thanks
-chris
Attached Files
File Type: zip DOF_Scripting_Test.zip (11.8 KB, 18 views)
   
Reply With Quote
Old
  (#2)
tg_jp (Offline)
Erfahrener Benutzer
 
Posts: 899
Join Date: 09.04.2005
Default 14.08.2012, 02:11

hi

it's a bug of script. I updated it, so please check the latest one.

http://www.tres-graficos.jp/blog/fil...icle.php?id=77

old code seems to make a infinite update loop or something while rendering.

Code:
//line.37 //dofTag.setParameter("focalDistance", cam_distance.norm() ); dofTag.setParameter("focalDistance", cam_distance.norm(), false );

regards.

tg_jp, Hiroto


Blog ( mainly japanese ): http://www.tres-graficos.jp/blog/
Twitter ( almost japanese ): http://twitter.com/tg_jp
   
Reply With Quote
Old
  (#3)
chris g (Offline)
Neuer Benutzer
 
Posts: 10
Join Date: 27.07.2012
Default 14.08.2012, 15:42

Thank you. That seems like it fixed it.

My first thought was that it was an Infinite loop, but it didn't make sense why it would render out a bunch of frames before hanging. Any thoughts?

-chris
   
Reply With Quote
Old
  (#4)
tg_jp (Offline)
Erfahrener Benutzer
 
Posts: 899
Join Date: 09.04.2005
Default 15.08.2012, 00:34

hi

Quote:

My first thought was that it was an Infinite loop, but it didn't make sense why it would render out a bunch of frames before hanging. Any thoughts?


I am guessing, update timing for object tree is different when Rendering and 3D preview ( multi threading ? caching scene graph info for next frame? ). anyway, we have take care using Object::setParameter function from some object/tag to another object/tag of different object tree. we can make infinit update loop easily.

regards.

tg_jp, Hiroto


Blog ( mainly japanese ): http://www.tres-graficos.jp/blog/
Twitter ( almost japanese ): http://twitter.com/tg_jp

Last edited by tg_jp : 17.08.2012 at 22:31. Reason: typo..
   
Reply With Quote
Old
  (#5)
chris g (Offline)
Neuer Benutzer
 
Posts: 10
Join Date: 27.07.2012
Default 17.08.2012, 15:03

good to know.

thanks
-chris
   
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com