Render Region
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 07/06/2003 at 09:17, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.100
Platform: Windows ;
Language(s) : C++ ;---------
Hi,
how can I find out if the user has choosen RenderRegion/Render Active Objects. I tried it with RDATA_ACTIVEOBJECTSONLY but that isn't working and I don't find the command for Render Region and the choosen coordinates for Render Region.
Thanks
Cathleen -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2003 at 02:53, xxxxxxxx wrote:
this can be found by checking for a few things
firstly check if the editor render flag is set
if it is you can ask for the resolution of the render ray->sizex,ect
the ask check as follows
x1 = ray->left;
y1 = ray->top;
x2 = ray->right;
y2 = ray->bottom;
LONG w=x2-x1+1;
LONG h=y2-y1+1;
if this w and h are not the same as the xres or yres then you know that this is a marque render.
there are no commands for render region.
you must make a render thread , create/ clone a document and call renderdocument.
for this you must provide a bitmap among other things.
its important that the bitmap be the same size as the xres,yres even if your just doing a marque render.
I hope that helps
Paul Everett
www.tools4d.com -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2003 at 04:56, xxxxxxxx wrote:
hi,
thanks that will help and how can I find out RenderActiveObject for the editor renderer?
Cathleen -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2003 at 05:08, xxxxxxxx wrote:
what do you mean by RenderActiveObject ?
I dont understand that bit cam you explain a bit more and I can maybe help you. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/06/2003 at 05:53, xxxxxxxx wrote:
Hi,
I mean when you make editor rendering you have 3 different choices Render All in the Editor / Rende Region or Render Active Objects. That means it render only the selected objects into the edior. I have tried RDATA_ACTIVEOBJECTSONLY but that only return the setting for Render Active Objects in the Global Render Settings and not for the edior rendering.
Cathleen -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/06/2003 at 13:44, xxxxxxxx wrote:
I haven't found any way to access this information and are still waiting for a reply from the programmers. I guess you could see if all objects in the scene are active. (If they still are in the render document.)
Out of curiosity, why do need this flag? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/06/2003 at 14:42, xxxxxxxx wrote:
Uhh... Maybe I am missing the point here, but, doesn't GetActiveDocument()->GetActiveObjects() do the trick? Get AtomArray and loop through objects, done. Anyway, that is what I did for VELMA.
Mikael, I think the reason she wants the active objects is to only generate the NPR strokes for those objects. Otherwise the NPR strokes would be generate for all objects in the scene even though only the active objects were rendering. Might have something to do with speed also. ( this is assuming Cathleen is generating the strokes from the scene and not the render geometry ).
My unbounded speculations...
bt - cidertank.com
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/06/2003 at 15:49, xxxxxxxx wrote:
I guess she means the detection of the call itself. She wants to detect if this command is chosen by the user rather than getting the active objects themselves.
If not, yes, looping thru the AtomArray is the way to go as darf mentions. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/06/2003 at 22:24, xxxxxxxx wrote:
Huh, that makes sense too. I will have to go look at the VELMA code as I believe I solved that. Hmm...
bt
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/06/2003 at 02:21, xxxxxxxx wrote:
According to the programmers, the flag isn't set in the main document, but in the render data. The render data is available to all post effects and can be retreived using Render::GetRenderData().