Search found 16 matches

by nighthawk
Tue May 15, 2007 5:41 pm
Forum: Advanced Help
Topic: Deadlock in Texture Coords for Cube Rendering
Replies: 4
Views: 544

(Solved) Deadlock in Texture Coords for Cube Rendering

Never mind, I figured it out. Actually to render the cube, 12 vertices are enough. For example, given the vertices are like the following:

vertices[0] = S3DVertex(-1,-1,-1, -1,-1,-1, SColor(255,255,255,255), 0, 1);
vertices[1] = S3DVertex( 1,-1,-1, 1,-1,-1, SColor(255,255,255,255), 1, 1 ...
by nighthawk
Tue May 15, 2007 3:45 pm
Forum: Advanced Help
Topic: Deadlock in Texture Coords for Cube Rendering
Replies: 4
Views: 544

Hi Luben, thank you for the reply. But can you elaborate a little bit more. I'm new to Irrlicht. I did not get the whole picture of what you've said.
by nighthawk
Tue May 15, 2007 1:39 pm
Forum: Advanced Help
Topic: Deadlock in Texture Coords for Cube Rendering
Replies: 4
Views: 544

Deadlock in Texture Coords for Cube Rendering

Hi all,

I was trying to render a cube with a distinct texture for each surface. I found there is a dead lock in texture coords that prevents rendering all six surfaces correctly. In other words, only four surfaces can show texture correctly. It is inevitable that textures in the other two surfaces ...
by nighthawk
Fri Dec 01, 2006 6:33 am
Forum: Advanced Help
Topic: Model, View and Controller(MVC) for Irrlicht Based Games
Replies: 1
Views: 431

Model, View and Controller(MVC) for Irrlicht Based Games

If MVC architecture is used for a Irrlicht based game, Irrlicht should be used as the graphic rendering engine. In other words, it is the View part. I'm wondering how the Model and Controller parts should be designed?

Since Irrlicht uses a scene manager to manage all scene nodes, is it redundant to ...
by nighthawk
Wed Jul 26, 2006 4:55 pm
Forum: Beginners Help
Topic: GUI Event Never Created When GUI Is Added to Irr Tech Demo
Replies: 6
Views: 581

Hi Hybrid,

Thank you for your post. But changing to

return device->getSceneManager()->getActiveCamera()->OnEvent(event);

does not fix the problem. To isolate the problem, I changed the mesh viewer example and I reproduced the same problem there. The following is the code. The footprint of this ...
by nighthawk
Tue Jul 25, 2006 9:40 pm
Forum: Beginners Help
Topic: GUI Event Never Created When GUI Is Added to Irr Tech Demo
Replies: 6
Views: 581

Hi CuteAlien,

Thank you for your replay. But the problem is not in eventDispatcher. I finally found that device->getSceneManager()->getActiveCamera() is keeping GUI events from being fired up.

Please see the following for the OnEvent method in CDemo.cpp:

bool CDemo::OnEvent(SEvent event)
{
if ...
by nighthawk
Sat Jul 22, 2006 3:11 am
Forum: Beginners Help
Topic: GUI Event Never Created When GUI Is Added to Irr Tech Demo
Replies: 6
Views: 581

Can anybody shed some light on this problem?

Thanks
by nighthawk
Thu Jul 20, 2006 8:33 pm
Forum: Beginners Help
Topic: GUI Event Never Created When GUI Is Added to Irr Tech Demo
Replies: 6
Views: 581

Sorry, I forgot the let you guys know I have changed the camera from a FPS one to a third person one.

Thanks
by nighthawk
Thu Jul 20, 2006 8:24 pm
Forum: Beginners Help
Topic: GUI Event Never Created When GUI Is Added to Irr Tech Demo
Replies: 6
Views: 581

GUI Event Never Created When GUI Is Added to Irr Tech Demo

Hi all,

I was trying to add GUI to Irrlicht's tech demo. What I did was to merge Example 9, Mesh Viewer with the demo. Menus and buttons were all shown up and rendered correctly. But I run on the problem that a GUI event was never created when I clicked on these menus and buttons. I set up a ...
by nighthawk
Sun Jul 09, 2006 5:43 am
Forum: Beginners Help
Topic: Why is my scene node black? LIGHTING does not help.
Replies: 4
Views: 498

What is the rule to index vertices?

Hi vitek,

Sorry for my late response. My project at work sucked in most of my time this last week and I did not get time to work on Irrlicht.

Thank you for your reply. Your suggestion worked very well for me. I agree with you that it looks like that driver->drawMeshBuffer() has a bug in setting ...
by nighthawk
Tue Jul 04, 2006 6:49 pm
Forum: Beginners Help
Topic: Why is my scene node black? LIGHTING does not help.
Replies: 4
Views: 498

Here is my code. It's not very clean:( . I used MS Visual Studio.
---------------------------------------------------------------------------------------

#include "stdafx.h"
#include "irrlicht.h"

using namespace irr;
using namespace scene;
using namespace video;
using namespace core;
#pragma ...
by nighthawk
Tue Jul 04, 2006 6:47 pm
Forum: Beginners Help
Topic: Why is my scene node black? LIGHTING does not help.
Replies: 4
Views: 498

Why is my scene node black? LIGHTING does not help.

Hi guys,

I was playing with customized scene node to create a tetraeder with each face using a different texture. I put vertices into four mesh buffers and added indices and textures to each mesh buffer. in render() method, I asked the driver to draw each mesh buffers.

My problem is that the scene ...
by nighthawk
Fri Jun 30, 2006 4:57 am
Forum: Game Programming
Topic: Where is IrrEdit's source code?
Replies: 1
Views: 2487

Where is IrrEdit's source code?

Hi gurus,

I've checked out revision 29 by SVN at https://svn.sourceforge.net/svnroot/irrlicht but I can not find where the source for IrrEdit is?

Does anybody know?

Thanks
by nighthawk
Sat Jun 03, 2006 5:35 am
Forum: Beginners Help
Topic: Question on Scene Node Texture
Replies: 6
Views: 552

Thank you, hybrid. Your reply is much more valuable than several lines of code because it points to the direction that I should go and infomation that I should check. I'm going to get more than what I have expected by following your advice.

By the way, what is the best way to learn Irrlicht? I have ...
by nighthawk
Wed May 31, 2006 3:34 am
Forum: Beginners Help
Topic: Question on Scene Node Texture
Replies: 6
Views: 552

Thank you for the reply.

Could you please post some code snippet for me of which I can start from? I'm really new to Irrlicht.

Regards.