<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV>Hello Wolfgang</DIV>
<DIV>&nbsp;</DIV>
<DIV>&gt; i am not so much in this texture rendering stuff... could you maybe 
give me <BR>&gt; a little hint what<BR>&gt; could be realised (or even one or 
two more example patches). i thought of <BR>&gt; something like<BR>&gt; 
rendering a tree on the texture of another trees objects (... or am i too 
<BR>&gt; wrong?)<BR></DIV>
<DIV>well, the renderTexture object has 3 outlets, from the right to the left 
they are:</DIV>
<DIV>&nbsp;</DIV>
<DIV>- the pBuffer has been bound. Rendering context have been set to its own 
one, all the things you will draw from this inlet will be drawn to the 
pBuffer.</DIV>
<DIV>- the pBuffer has been bound as a texture: in order to see your drawing you 
need to set a primitive (whatever you want)&nbsp;on which the texture will be 
applied</DIV>
<DIV>- the process is over, we&nbsp;can continue to render on the main 
display</DIV>
<DIV>&nbsp;</DIV>
<DIV>I currently only use the Gem opengl wrapper commands to draw and set my 
primitive, i dont know yet if other Gem objects can be applied to this.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I personally use that to have different objects with different feedback 
(this feedback is actually simulated from within the object via the alpha 
message...). As you can see in the demo patch, there is 2 objects like this 
applied to 2 different quads. you can play with the quads size and Blend 
parameters to have an idea of what can be achieved. This is for sure a very 
simple first approach but this is currently the fastest way to render something 
on a texture.</DIV>
<DIV><BR>&gt; and...<BR>&gt; in the cgvertexprogramm i get cg error messages 
that it cant read your <BR>&gt; files... (wave2... and so on)<BR></DIV>
<DIV>you folder must look like this in order to work:</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Courier>- (your folder)</FONT></DIV>
<DIV><FONT face=Courier>&nbsp;| RenderTexture.pd&nbsp;</FONT></DIV>
<DIV><FONT face=Courier>&nbsp;| cgVertexProgram.pd</FONT></DIV>
<DIV><FONT face=Courier>&nbsp;| - Cg</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| 
Wave2.cg</FONT></DIV>
<DIV><FONT face=Courier size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 
Wave.cg</FONT></DIV>
<DIV><FONT face=Courier size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Does it solve the problem ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'm also curious about one thing:</FONT></DIV>
<DIV><FONT face=Arial size=2>What kind of graphic card are you running 
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>Ronan</FONT></DIV></BODY></HTML>