Search found 120 matches

by bonsalty
Wed Aug 18, 2010 12:00 pm
Forum: Bug reports
Topic: [no bug]removeTexture OPENGL
Replies: 3
Views: 978

This can happen. This happens when you remove the texture and update it. Solution: if you remove the texture call SetMaterial before. params->driver->setMaterial(video::SMaterial()); params->driver->removeTexture(texture); This insane workarounds in Irrlicht or OpenGL is what drives everybody mad.
by bonsalty
Wed Aug 18, 2010 10:22 am
Forum: Beginners Help
Topic: CustonSceneNode set rendering queue
Replies: 3
Views: 280

"You need to register for the proper render pass."

Is there some example, how should I register it?
by bonsalty
Tue Aug 17, 2010 5:36 pm
Forum: Beginners Help
Topic: CustonSceneNode set rendering queue
Replies: 3
Views: 280

CustonSceneNode set rendering queue

How to set rendering queue of a customscenenode? I have transparency priority problems. The transparent triangle which is created at last ( on the top )is covered by another triangle created first ( bottom ) I need a workaround with transparency or I need a way to set irrlichts rendering queue. Can ...
by bonsalty
Fri Aug 13, 2010 11:09 am
Forum: Beginners Help
Topic: Making a copy of IAnimatedSceneNode
Replies: 2
Views: 256

Making a copy of IAnimatedSceneNode

Hi! Whats the proper way of making a copy from a mesh? I made a custom object which is holding the model-node and the mesh. scene::IAnimatedMeshSceneNode *model; scene::IAnimatedMesh* mesh ; . . . //init mesh = params->smgr->getMesh(path.GetBuffer()); model = params->smgr->addAnimatedMeshSceneNode( ...
by bonsalty
Thu Aug 12, 2010 3:26 pm
Forum: Beginners Help
Topic: Mesh problem after rescale + light SOLVED
Replies: 1
Views: 265

SOLVED

model->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);

This is what I forgot...
by bonsalty
Thu Aug 12, 2010 3:11 pm
Forum: Beginners Help
Topic: Mesh problem after rescale + light SOLVED
Replies: 1
Views: 265

Mesh problem after rescale + light SOLVED

scene::IAnimatedMesh* mesh = params->smgr->getMesh(path.GetBuffer()); model = params->smgr->addAnimatedMeshSceneNode( mesh ); The mesh I load is a static 3ds file. Its fine, but when I rescale the mesh, the textures seem to gone away, the object is black and white. If lighting is off, its working t...
by bonsalty
Sat Jul 24, 2010 12:49 pm
Forum: Beginners Help
Topic: guiFont as customSceneNode appears behind other objects
Replies: 6
Views: 549

I solved the problem during the night, I had no time to experiment with irrlicht since I had to finish the work before morning. StaticText is good, but no resize option -> so BAD I know that guiFont is not a scene element, just wondering why not. Why a problem?To make a program adjustable for any dr...
by bonsalty
Fri Jul 23, 2010 8:26 pm
Forum: Beginners Help
Topic: guiFont as customSceneNode appears behind other objects
Replies: 6
Views: 549

guiFont as customSceneNode appears behind other objects

I find it quite annoying, that gui font is not a node. Why that? So I registered it as a customscenenode, so at each rendering text->draw(L"bla bla", core::rect<s32>(x1,y1,x2,y2), video::SColor(255,255,255,255)); is called. The text disappears behind other 3D objects which are rendered ear...
by bonsalty
Fri Jul 23, 2010 5:29 pm
Forum: Beginners Help
Topic: Setting texture alpha
Replies: 11
Views: 1055

I create my own textures , not static images, that would be easy. I solved the problem with simply using the GetPixel and PutPixel attribute of IImage, it isnt that slow.
by bonsalty
Thu Jul 22, 2010 8:26 pm
Forum: Beginners Help
Topic: Setting texture alpha
Replies: 11
Views: 1055

Another thing: I was wrong -makeColorKeyTexture makes the actual color completly transparent. Is there any stuff, to make it not fully transparent or should I change each pixel to the desired one by one?
by bonsalty
Thu Jul 22, 2010 11:15 am
Forum: Beginners Help
Topic: Memory leak while updating terrain heightmap
Replies: 3
Views: 387

Yeah, terrain->loadHeightMap(heightmap); sucks

Use instead addTerrainSceneNode , it does the same, but doesnt leak.
by bonsalty
Wed Jul 21, 2010 5:52 pm
Forum: Beginners Help
Topic: Texture load problem and window update problem.
Replies: 6
Views: 435

No, I have downloaded the 1.71 version a few month ago. I tried the win32 example for irrlicht, but with rendering into the main HWND. That was running ok. I have also a mouse stuck problem. If I resize the window the mouse stays pressed down... Interestingly initialising the window as "BUTTON&...
by bonsalty
Wed Jul 21, 2010 2:21 pm
Forum: Beginners Help
Topic: Texture load problem and window update problem.
Replies: 6
Views: 435

This is what you can see after resizing the window ...
Image
by bonsalty
Wed Jul 21, 2010 1:33 pm
Forum: Beginners Help
Topic: Memory leak while updating terrain heightmap
Replies: 3
Views: 387

1) you have to call device->removeAllHardwareBuffer if you want to remove the cache. Besides the terrainSceneNode leaks in DirectX see my early posts about texturing and terrain combo problems. Many people will have this problem too I bet.
2)Use OpenGL.
by bonsalty
Wed Jul 21, 2010 9:45 am
Forum: Beginners Help
Topic: Texture load problem and window update problem.
Replies: 6
Views: 435

The code is too long, besides there should be nothing wrong?! The problem is also not with the texturing, what my first guess was. The problem appears only when the window GETS a WM_SIZE message. (Somehow even setting the window to not resizeable it might get a WM_SIZE message when working with long...