2011 Software releases
Learn about the 2011 versions of some of Autodesk’s Digital Entertainment Creation tools.
  • 1/1
You are here:Forum Home / Autodesk® Softimage® / Realtime Effects / RealTime Shaders
  RSS 2.0 ATOM  

RealTime Shaders
Rate this thread
 
30210
 
Subscribe to this thread
avatar
  • ben8111
  • Posted: 06 September 2008 02:42 AM
  • Total Posts: 66
  • Joined: 2008-03-16 17:08:16

I have questions about RT shaders on XS7. I’m trying to import shaders from Mental Mill to XSI7. I have try several files : Cg, FX, GLSL. I get some results with DirectX .FX files (I do not manage to import or visualize effects with the other languages). My question concern lighting : the FX file import a point light that is not displayed in XSI (I can move it only with the parameters). Is there a way to display this light or use one of the scene instead? By the way, when I switch the view to another display mode (i.e. OpenGL) and come back to directX I can not see the shaders anymore.
Thank You for your help.



Attachment Attachment
Replies: 0
avatar
  • Total Posts: 226
  • Joined: 2008-02-19 15:36:45

..dude .!! :helpsmilie:
where can i find some good tutorials about rt shading in xsi.!?!?



Replies: 0
avatar
  • Total Posts: 271
  • Joined: 2008-02-21 02:03:00

My question concern lighting : the FX file import a point light that is not displayed in XSI (I can move it only with the parameters). Is there a way to display this light or use one of the scene instead? By the way, when I switch the view to another display mode (i.e. OpenGL) and come back to directX I can not see the shaders anymore.

http://cryrid.com/images/temp/XSI/videos/visually_controlling_lights.avi

Basically, create an object and use it to drive the parameter of the shader-light’s x/y/z positions. Then when you move that object around, it’ll take the light with it.



Replies: 0
avatar
  • ben8111
  • Posted: 07 September 2008 02:29 AM
  • Total Posts: 66
  • Joined: 2008-03-16 17:08:16

Cryrid, Thank you it’s a nice tip !
farhaad_yousefi, I would advice you to look at Mental Mill (it comes with a tutorial), it’s a nice software that is “similar” to XSI’s RenderTree. I think it should be integrated within Softimage !  If you like programming have a look at nVidia FX composer or AMD Rendermonkey.



Replies: 0
avatar
  • Total Posts: 226
  • Joined: 2008-02-19 15:36:45

..thanks i’m not into scripting...but i’ll give a try to that mental mill..!!!  thanks again..:)



Replies: 0
avatar
  • ben8111
  • Posted: 07 September 2008 08:49 AM
  • Total Posts: 66
  • Joined: 2008-03-16 17:08:16

More questions about RT shaders…
1. I try to use nVidia’s SceneLineDraw shader but it produces no effect whereas the other one mostly works. It’s maybe a problem with Vertex attributes?  The “main” technique does not work but the “Deph Only” works well. Have you any idea how to fix this?
2. I would like to animate the opacity of a realtime shader. How can I do this?

PS : the link to this shader :
http://developer.download.nvidia.com/shaderlibrary/webpages/shader_library.html
or
http://developer.download.nvidia.com/shaderlibrary/webpages/screenshots/shaders/scene_lineDraw.html



Attachment Attachment
Replies: 0
avatar
  • ElysiumGX
  • Posted: 09 September 2008 08:00 AM
  • Total Posts: 91
  • Joined: 2008-02-19 17:53:32

I’m not sure if you’ve done this already, but I found that all of my shaders that used Cg, especially in OpenGL, would not work until I installed http://developer.nvidia.com/object/cg_toolkit.html.  To someone new to this, like myself, this isn’t made clear that it’s required.  But after installation, my shaders worked.

Also, to add to Cryrid’s post.  I normally use the lights in my scene to link to the shader light’s global values.  It keeps things organized.  Haven’t found a way to link color and intensity.



Replies: 0
avatar
  • Total Posts: 271
  • Joined: 2008-02-21 02:03:00

Intensity seems to link easily the same way for me. As for the color, as a quick test I used the Parameter Connection Editor to link the light’s scale values to the shader-light’s color, and it seems to work (scaling the light to 0/0/1 makes it blue, 0/1/0 makes it green, etc)

realtime_parameter_test.jpg

Should also open up a few possibilities in case you don’t want to use the light-controller’s scale values.



Replies: 0
avatar
  • Eddieq
  • Posted: 26 December 2008 12:27 AM
  • Total Posts: 2
  • Joined: 2008-12-26 05:04:58

Hi,

I have been struggling to get a realtime shader created in Mental Mill to work in XSI 7.

In XSI after assigning a sphere with realtime Nvidia CgFX shader and loading the cgfx file, I get this error “ CgFX: technique T0 did not validate” and in the realtime display, all I see is dull grey sphere.

I have also tried to replace cg.dll and cgGL.dll files in XSI with the Cg toolkit 2.1 dlls.
Appreciate if someone could help.

Thanks



Replies: 0




   
  Settings Choose Theme color: