Archived

This topic is now archived and is closed to further replies.

edwinnie

fx composer and others...

Recommended Posts

ok i need to understand this logic: suppose i got a model in .x file format,loaded into fx composer, edited with it, saved the fx project as .fx so if a shader-based engine tries to load the .fx and its vertex shader program, it would still need the .x model? thx! Edwinz

Share this post


Link to post
Share on other sites
No. The compiled shader can be used on any vertex buffer source. That model parameter is only used by fx composer to select the model it should use at that moment. In your app, the shader will use the vertices in the vertex stream, regardless of their origin.

Share this post


Link to post
Share on other sites
i see
tats gd!

But i got another qn:
suppose there is more than one object in the scene, so how would u position the objects in this case, since u have loaded the mesh files into fx composer, and exported a scenegraph.xml via fx composer?

can it be done easily in fx composer or its better to use a level editing program first?

also can fx composer apply shader stuffz differently for >1 object in the scene as desired? or the shader stuffz applied in there will generally affect all the objects in the scene by default?

thx!
Edwinz

[edited by - edwinnie on March 28, 2004 3:33:19 AM]

Share this post


Link to post
Share on other sites