Jump to content
  • Advertisement
Sign in to follow this  
hl1202

Render multiple techniques on an Object

This topic is 3047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone,

I have a question (again):

+ I have a list of techniques (A, B , C...)

+ I have an object

How can i render this object with many techniques?


Quote:

For example:

+ I have 2 techniques name "EnvironmentTechnique" and "ShadowMapTechnique"

+ I have a sphere

I want to draw a sphere that reflects the environment around it (using the EnvironmentTechnique) and the sphere also casts shadow on the ground (Using ShadowMapTechnique)




Thanks for the help!

Share this post


Link to post
Share on other sites
Advertisement
I don't think this is possible. Try making single technique


EnvironmentShadowMapTechnique{
//passes from environment
//passes from shadow map
}

Share this post


Link to post
Share on other sites
The problem is:

If i have 100 objects and 100 techniques. Each object will be rendered using different list of techniques. If doing like your suggestion, i have to create a lot of new techniques (which combine the pass of each separate technique). Very inconvenient!


Is there any other way?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!