(C++) Procedural Texture Manager + Cross Plane Scene Node

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
Post Reply
CZestmyr
Posts: 72
Joined: Sat Feb 12, 2005 7:11 pm
Location: Czech Republic
Contact:

(C++) Procedural Texture Manager + Cross Plane Scene Node

Post by CZestmyr »

Hello, my fellow Irrlichters! Czestmyr is back and he brought a few presents for you :wink:. I hope, you'll find them useful.

Some of you may remember my procedural fire scene node. Well I've done something similar now. It's called Procedural Texture Manager and you may create and manage procedural textures with it. So far, the only choice is a simple test procedural texture and fire texture, but I'll soon add more. You could create your own procedural texture types as well, because it is not so hard. You only have to create a procedure, which manipulates the texture's pixels in each iteration.

I've uploaded a simple project to my site. It can be obtained here: http://czestmyr.wz.cz/other/ptmgr.zip It consists of few textures, the PT Manager and a "Cross Plane Scene Node", which creates two intersecting planes that can be used as a mesh for the fire textures. It also contains my older GUI Digit Viewer, which shows value of a variable in a digit counter.

I migrated to Linux some time ago, so the project is for linux. In order to compile it, just unzip it somewhere, change the library and include paths in the Makefile according to your Irrlicht path and type "make". For Windows users - Sorry, you'll have to create your own Irrlicht project and copy/paste the code from showcase.cpp there. Don't forget to change slashes to backslashes in the texture path strings.

Screenshot from the showcase program of my Procedural Texture Manager:
Image

Looking forward to your feedback! (positive as well as negative)
Bugfree is not a synonym to dumbass-resistant

My irrlicht files and tutorials
My music in mp3
Post Reply