Search found 59 matches

by pwierz
Wed Mar 10, 2010 4:33 am
Forum: Beginners Help
Topic: Sorting Polygons on CustomSceneNode
Replies: 4
Views: 266

That was it. Thanks, hybrid.
by pwierz
Tue Mar 09, 2010 2:26 pm
Forum: Beginners Help
Topic: Sorting Polygons on CustomSceneNode
Replies: 4
Views: 266

Thanks, hybrid. Here is where I set up the materials: Material.Wireframe = false; Material.Lighting = false; Material.MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL; setMaterialFlag(video::EMF_BILINEAR_FILTER,false); setMaterialFlag(video::EMF_ANISOTROPIC_FILTER,true); setMaterialFlag(video::EM...
by pwierz
Tue Mar 09, 2010 2:25 am
Forum: Beginners Help
Topic: Sorting Polygons on CustomSceneNode
Replies: 4
Views: 266

Sorting Polygons on CustomSceneNode

I created my own custom scene node and it works properly but the problem with it is that it always draws the polygons in the same order and disregards the z-buffer. Is there a way I can fix this? Obviously I could just do an algorithm to sort per frame based on distance to the camera but my node can...
by pwierz
Sat Feb 20, 2010 8:15 pm
Forum: Beginners Help
Topic: Creating Custom GUI Elements
Replies: 2
Views: 647

That was the "gotcha" I was missing. I was using CGUIScrollBar as a model and it just passes the parent variable along to its inherited class but when I looked at some of custom elements in the tools, they were passing along the rootGUIElement to the inherited class if parent was not set. ...
by pwierz
Sat Feb 20, 2010 4:42 pm
Forum: Beginners Help
Topic: Creating Custom GUI Elements
Replies: 2
Views: 647

Creating Custom GUI Elements

Is there a tutorial on how to make a basic custom GUI element? I have been trying by creating a class that inherits from IGUIElement and then I only overrode the constructor and draw functions but I can't get it to even enter the draw function. Am I missing some sort of registration step or is that ...
by pwierz
Wed Feb 17, 2010 3:23 am
Forum: Beginners Help
Topic: Lighting Vertex Colors
Replies: 2
Views: 255

Ahhh... figured it out. Turn the ambient and specular to all zeros and then make the diffuse color white with the alpha turned all the way down. Funny how things make total sense once you figure them out.
by pwierz
Wed Feb 17, 2010 1:42 am
Forum: Beginners Help
Topic: Lighting Vertex Colors
Replies: 2
Views: 255

Lighting Vertex Colors

I'm trying to add an overhead light to Tutorial 3 (Custom Scene Node). So I added the following code: scene::ILightSceneNode* light = smgr->addLightSceneNode(); video::SLight lightdata = light->getLightData(); lightdata.Type = video::ELT_DIRECTIONAL; lightdata.AmbientColor = video::SColorf(1.0,1.0,1...
by pwierz
Sat Feb 13, 2010 6:33 pm
Forum: Beginners Help
Topic: Adding a Texture to IBillboardTextSceneNode
Replies: 1
Views: 250

Adding a Texture to IBillboardTextSceneNode

I'm trying to add a texture to a IBillboardTextSceneNode. My goal is to create a bubble around the text but I can't get it to do it. Can anyone tell me what's wrong with the code? scene::IBillboardTextSceneNode* bb = mgr->addBillboardTextSceneNode(mgr->getGUIEnvironment()->getBuiltInFont(), L"T...
by pwierz
Mon Feb 01, 2010 2:11 pm
Forum: Beginners Help
Topic: Heightmap terrain data
Replies: 3
Views: 392

Here's a thread that should help get you going:

http://irrlicht.sourceforge.net/phpBB2/ ... highlight=
by pwierz
Sun Jan 31, 2010 9:42 pm
Forum: Beginners Help
Topic: Pulldown Menus on Win32
Replies: 0
Views: 452

Pulldown Menus on Win32

Has anyone been able to implement pulldown menus on the Win32 example using standard Windows libraries? I've been trying using examples I have found on the web but all the different methods aren't working because either it doesn't register the events when they're selected or it does register but it ...
by pwierz
Thu Jan 21, 2010 9:50 pm
Forum: Beginners Help
Topic: Why isn't my terrain being modified?
Replies: 15
Views: 1657

Where is the tutorial for this ??? the tutorial 12. terrain rendering does not go into any detail what or how anything is to be loaded. The above code by pwierz documented is the only hint of whats going. Or am I going in the wrong direction and should be looking for scene editing tutorials ??? Tim...
by pwierz
Mon Jan 18, 2010 10:44 pm
Forum: Beginners Help
Topic: Why isn't my terrain being modified?
Replies: 15
Views: 1657

Lonesome Ducky wrote:Hmm. Have you tried changing the colors of the terrain's SMaterial?
I wanted to do it on a per pixel basis. Mostly color code it according to height.
by pwierz
Sun Jan 17, 2010 10:36 pm
Forum: Beginners Help
Topic: Why isn't my terrain being modified?
Replies: 15
Views: 1657

First of all, I was under the impression that y was vertical movement.
Thanks. That changed the elevation. But the color is not changing. It remains whatever color I make it upon creation.
by pwierz
Sun Jan 17, 2010 10:23 pm
Forum: Beginners Help
Topic: Why isn't my terrain being modified?
Replies: 15
Views: 1657

Thanks for the help. I changed the section that gets the data to

Code: Select all

	scene::IMesh* buffer = terrain->getMesh();
	video::S3DVertex2TCoords* data = (video::S3DVertex2TCoords*)buffer->getMeshBuffer(0)->getVertices();
And still no dice. Any other thoughts? Thanks again for the help.
by pwierz
Sun Jan 17, 2010 12:31 am
Forum: Beginners Help
Topic: Why isn't my terrain being modified?
Replies: 15
Views: 1657

Why isn't my terrain being modified?

Hi, I'm trying to modify my ISceneTerrainNode on the fly and it's not working. Can someone explain to why it isn't working? My code is attempt to just modify the height and turn it white but it's showing up black and flat. Thanks. Is there still that limit on terrain sizes of 129x129? scene::ITerrai...