Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Metaballs.... What about lines

Metaballs.... What about lines

2005-04-12       - By Guillaume Laforge

 Back
Reply:     1     2     3     4     5     6     7     8  

> Is there any way to only get them to loft as mental ray is initialized?

Maybe you can use "OnBeginSequence" ...but I can't make it works...xsi freeze
each time when I start render because I don't know the correct scripting syntax
.

I'm not a scripting specialist but here is the idea to render some lines at
render time :

///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////
//<OnBeginSequenceJScript code>
function XSIApplication::OnBeginSequence( CustomData, RenderType, FileName,
Frame, Sequence, RenderField, UnUsed )
{
Application.LogMessage( "*** JScript Event - XSIApplication::OnBeginSequence: *
**");

// -- ---- ---- ---- ---- ---- ---- ---Rendered lines script-- ---- ---- ------
-- ---- ---- ---- ---- ---- ---- -----

//select the rendered lines ( you must add your lines to a group named
"rendered_lines" ).
SelectObj("rendered_lines", null, null);
var oRenderedLines = SelectMembers(null, null, null);

//set the thickness for the lines here.
var oRadius = 0.1

//Create a temporary circle ( deleted with  an "OnEndSequence"event ? )
var oCircle = CreatePrim("Circle", "NurbsCurve", null, null);
SetValue(oCircle+".circle.radius", oRadius, null);
RenderLines( oRenderedLines , oCircle )

//At the end the lofted lines are also deleted with an "OnEndSequence"event
Is it possible ?

//The RenderLines function
function RenderLines( limbs , profile )
{
for (var i = 0 ; i < limbs.count ; i++)
{
ApplyGenOp("Extrusion", "NurbsSurface", profile + ";" + limbs(i), 3,
siPersistentOperation, siKeepGenOpInputs, null);
FreezeModeling(null, null, null);
}
}


return 0;
}

//</OnBeginSequenceJScript code>
///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////

Cheers,

Guillaume Laforge
CG artist learning scripting once in a while :-p
www.vol2nuit.fr



-- -- Original Message -- --
From: "Wayne Williams" <wayne@(protected)>
To: <XSI@(protected)>
Sent: Tuesday, April 12, 2005 10:06 PM
Subject: RE: Metaballs.... What about lines


> Is there any way to only get them to loft as mental ray is initialized? I'm
guessing this is all max is doing as well...you just don't get the circle....it
's over in the modifier panel where you can change the thickness etc.
>
> -- --Original Message-- --
> From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Guillaume Laforge
> Sent: Tuesday, April 12, 2005 3:45 PM
> To: XSI@(protected)
> Subject: Re: Metaballs.... What about lines
>
>
> I don't know C4D rendered curves but the 3ds max "rendered lines" looks like
> some extrusions along curve in XSI...
>
> So here is a possible  workaround :
> - Create a circle to control the thickness/subdivision of the "rendered
> lines" then select all the curves you want to render.
> - Run this script
> http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut.js
> - Pick the circle et voilĂ .
>
> Curves are not lofted at render time but it can do the job.
>
> Cheers,
>
> Guillaume Laforge
> CG artist
> www.vol2nuit.fr
>
>
>
>
>
> -- -- Original Message -- --
> From: "Lawrence Nimrichter" <lawrence@(protected)>
> To: <XSI@(protected)>
> Sent: Tuesday, April 12, 2005 8:07 PM
> Subject: RE: Metaballs.... What about lines
>
>
>> Part of this notion of actually adding useful tools we crave... What
>> about the ability to render curves? Can everyone do this but us? There
>> have been several instances where I have been working on more abstract
>> projects and have had our designers laugh at us because Cinema 4D can
>> render curves so nicely and we cannot render them at all. Whats the
>> deal with that!!!! Why can't we have a line shader that we can
>> attached to curves? Ofcourse we need to then be able to put lines in
>> Render passes, control thickness, choose whether perspective
>> influences thickness etc(all the basic stuff you have for controlling
>> ink lines in the toon renderer). That would be a nice addition too.
>>
>> Ofcourse Cinema 4D has one cool ass toon shader.  Have you guys seen
>> the sketch render that Cinema 4D can do? Wow.... Can't reproduce that
>> in XSI...
>>
>> Lawrence
>>
>>
>>
>> ---
>> Unsubscribe? Mail Majordomo@(protected) with the following text in
>> body: unsubscribe xsi
>>
>
>
>
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
unsubscribe xsi
>
> ---
> Unsubscribe? Mail Majordomo@(protected) with the following text in body:
> unsubscribe xsi
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>&gt;&nbsp;Is there any way to only get them to
loft
as mental ray is initialized?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Maybe you can use&nbsp;"OnBeginSequence" ...but I
can't make it works...xsi freeze each time when I start&nbsp;render because I
don't know the correct scripting syntax.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm not a scripting specialist but here is the
idea
to render some lines at render time :<BR></FONT><FONT face=Arial
size=2><BR>////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////<BR>//&lt
;OnBeginSequenceJScript
code&gt;<BR>function XSIApplication::OnBeginSequence( CustomData, RenderType,
FileName, Frame, Sequence, RenderField, UnUsed ) <BR>{
<BR>Application.LogMessage( "*** JScript Event -
XSIApplication::OnBeginSequence: ***"); <BR><BR>//
-- ---- ---- ---- ---- ---- ---- ---Rendered lines
script-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----</FONT></DIV>
<DIV><FONT face=Arial size=2>
<P><BR>//select the rendered lines ( you must add your lines to a group named
"rendered_lines" ).<BR></FONT><FONT face=Arial
size=2>SelectObj("rendered_lines", null, null);<BR>var oRenderedLines =
SelectMembers(null, null, null);<BR><BR>//set the thickness for the lines
here.<BR>var oRadius = 0.1<BR><BR>//Create a temporary circle ( deleted
with&nbsp; an "OnEndSequence"event ? )<BR>var oCircle = CreatePrim("Circle",
"NurbsCurve", null, null);<BR>SetValue(oCircle+".circle.radius", oRadius,
null);<BR>RenderLines( oRenderedLines , oCircle )<BR><BR>//At the end the
lofted
lines are also deleted with an "OnEndSequence"event <BR>Is it possible
?</FONT><FONT face=Arial size=2><BR><BR>//The RenderLines function<BR>function
RenderLines( limbs , profile )<BR>{<BR>for (var i = 0 ; i &lt; limbs.count ;
i++)<BR>{<BR>ApplyGenOp("Extrusion", "NurbsSurface", profile + ";" + limbs(i),
3, siPersistentOperation, siKeepGenOpInputs, null);<BR>FreezeModeling(null,
null, null);<BR>}<BR>}</FONT></P>
<P><FONT face=Arial size=2></FONT></P>
<P><FONT face=Arial size=2>return 0; <BR>} </FONT></P>
<P><FONT face=Arial size=2>//&lt;/OnBeginSequenceJScript code&gt;
<BR>///////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////</FONT></P>
<P><FONT face=Arial size=2>Cheers,</FONT></P>
<P><FONT face=Arial size=2>Guillaume Laforge<BR>CG artist learning scripting
once in a while :-p<BR><A
href="http://www.vol2nuit.fr">www.vol2nuit.fr</A></FONT></P>
<P><FONT face=Arial size=2></FONT>&nbsp;</P></DIV>
<DIV><FONT face=Arial size=2>-- -- Original Message -- -- </FONT>
<DIV><FONT face=Arial size=2>From: "Wayne Williams" &lt;</FONT><A
href="mailto:wayne@(protected)"><FONT face=Arial
size=2>wayne@(protected)</FONT></A><FONT face=Arial
size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: &lt;</FONT><A
href="mailto:XSI@(protected)"><FONT face=Arial
size=2>XSI@(protected)</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Tuesday, April 12, 2005 10:06 PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: RE: Metaballs.... What about
lines</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>&gt; Is there any way to only get them to loft as mental ray is
initialized? I'm guessing this is all max is doing as well...you just don't get
the circle....it's over in the modifier panel where you can change the
thickness
etc. <BR>&gt; <BR>&gt; -- --Original Message-- --<BR>&gt; From: </FONT><A
href="mailto:owner-xsi@(protected)"><FONT face=Arial
size=2>owner-xsi@(protected)</FONT></A><FONT face=Arial size=2>
[mailto:owner-xsi@(protected)] On Behalf Of Guillaume Laforge<BR>&gt; Sent:
Tuesday, April 12, 2005 3:45 PM<BR>&gt; To: </FONT><A
href="mailto:XSI@(protected)"><FONT face=Arial
size=2>XSI@(protected)</FONT></A><BR><FONT face=Arial size=2>&gt; Subject: Re
:
Metaballs.... What about lines<BR>&gt; <BR>&gt; <BR>&gt; I don't know C4D
rendered curves but the 3ds max "rendered lines" looks like <BR>&gt; some
extrusions along curve in XSI...<BR>&gt; <BR>&gt; So here is a possible&nbsp;
workaround :<BR>&gt; - Create a circle to control the thickness/subdivision of
the "rendered <BR>&gt; lines" then select all the curves you want to
render.<BR>&gt; - Run this script <BR>&gt; </FONT><A
href="http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut.js
"><FONT
face=Arial
size=2>http://www.philbarrenger.com/tutorials/beggin-script/begginerscripttut
.js</FONT></A><BR><FONT
face=Arial size=2>&gt; - Pick the circle et voilĂ .<BR>&gt; <BR>&gt; Curves are
not lofted at render time but it can do the job.<BR>&gt; <BR>&gt;
Cheers,<BR>&gt; <BR>&gt; Guillaume Laforge<BR>&gt; CG artist<BR>&gt; </FONT><A
href="http://www.vol2nuit.fr"><FONT face=Arial
size=2>www.vol2nuit.fr</FONT></A><BR><FONT face=Arial size=2>&gt; <BR>&gt;
<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- -- Original Message -- -- <BR>&gt; From:
"Lawrence Nimrichter" &lt;</FONT><A href="mailto:lawrence@(protected)"><FONT
face=Arial size=2>lawrence@(protected)</FONT></A><FONT face=Arial
size=2>&gt;<BR>&gt; To: &lt;</FONT><A href="mailto:XSI@(protected)"><FONT
face=Arial size=2>XSI@(protected)</FONT></A><FONT face=Arial
size=2>&gt;<BR>&gt; Sent: Tuesday, April 12, 2005 8:07 PM<BR>&gt; Subject: RE:
Metaballs.... What about lines<BR>&gt; <BR>&gt; <BR>&gt;&gt; Part of this
notion
of actually adding useful tools we crave... What <BR>&gt;&gt; about the ability
to render curves? Can everyone do this but us? There <BR>&gt;&gt; have been
several instances where I have been working on more abstract <BR>&gt;&gt;
projects and have had our designers laugh at us because Cinema 4D can
<BR>&gt;&gt; render curves so nicely and we cannot render them at all. Whats
the
<BR>&gt;&gt; deal with that!!!! Why can't we have a line shader that we can
<BR>&gt;&gt; attached to curves? Ofcourse we need to then be able to put lines
in <BR>&gt;&gt; Render passes, control thickness, choose whether perspective
<BR>&gt;&gt; influences thickness etc(all the basic stuff you have for
controlling <BR>&gt;&gt; ink lines in the toon renderer). That would be a nice
addition too.<BR>&gt;&gt;<BR>&gt;&gt; Ofcourse Cinema 4D has one cool ass toon
shader.&nbsp; Have you guys seen <BR>&gt;&gt; the sketch render that Cinema 4D
can do? Wow.... Can't reproduce that <BR>&gt;&gt; in
XSI...<BR>&gt;&gt;<BR>&gt;&gt;
Lawrence<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; ---<BR>&gt;&gt;
Unsubscribe? Mail </FONT><A href="mailto:Majordomo@(protected)"><FONT
face=Arial size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2>
with the following text in <BR>&gt;&gt; body: unsubscribe xsi<BR>&gt;&gt;
<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ---<BR>&gt; Unsubscribe? Mail
</FONT><A href="mailto:Majordomo@(protected)"><FONT face=Arial
size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2> with the
following text in body: unsubscribe xsi<BR>&gt; <BR>&gt; ---<BR>&gt;
Unsubscribe? Mail </FONT><A href="mailto:Majordomo@(protected)"><FONT
face=Arial size=2>Majordomo@(protected)</FONT></A><FONT face=Arial size=2>
with the following text in body:<BR>&gt; unsubscribe xsi</FONT></BODY></HTML>