Custom 2D SceneNodes

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Pianist
Posts: 14
Joined: Wed Apr 22, 2009 12:47 pm
Location: Czech Republic

Custom 2D SceneNodes

Post by Pianist »

Hello to all Irrlicht guys,

I'm working on creating new SceneNodes for my 2D environment editor powerd on Irrlicht engine. For example I have done wire frame for my RectangleSceneNode. I would like upgrade its appearance and implement option for color fill. I mean background color inside the rectangle frame.

Question 1:
Could anyone give me a point how to implement fill of any general area (rectangle, circle, square) ?

Well, I'm developing other 2D primitive. I would like implement something like BitmapSceneNode. It would have rectangle plain, which I want cover with any bitmap(texture). But unfortunately I am not still able cover my plain area.

Question 2:
How to cover 2D area with my texture?

Thanks all![/url]
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Custom 2D SceneNodes

Post by randomMesh »

There's a nice sprite class in this thread.
Maybe it helps.
"Whoops..."
Post Reply