Jump to content
  • Advertisement


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

Saurabh Torne

fractral programming with dirextX

This topic is 5523 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

Is anyone having any links to fractral programming with dirextX? I want to learn to make perpetual textures or whatever they are called Thankyou in advance.

Share this post

Link to post
Share on other sites
You mean procedural textures.

You basically just do this(not using pixelshaders):

1. Create a texture to be used as a rendertarget.

2. Acquire the surface pointer to a level on that texture
by locking it.

3. Render the graphics by using a formula of your desire.
Any formula will do. To create motion just add a modifier that changes over time.

4. Unlock it.

5. Render your polygons using the new texture.

6. step through 2 again if you want to change the texture.

Don''t draw textures that are too big in dimensions (you are after all CPU bound in this example)
To save time you can create a texture animation instead.
You can also use pixelshaders etc...
but the basic principle is there and you should be able to do nice things with it. Remember to set the renderstates so the textures smoothes out or it will be heavily pixelated.

Good luck.

Try RealityRift at www.planetrift.com
Feel free to comment, object, laugh at or agree to this. I won''t engage in flaming because of what I have said.
I could be wrong or right but the ideas are mine.

Share this post

Link to post
Share on other sites

  • 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!