Search found 16 matches

by Psan
Fri Oct 30, 2009 1:15 pm
Forum: Beginners Help
Topic: running irrlicht in visual c++
Replies: 8
Views: 1337

Lol :D I'm a noob here actually.
by Psan
Thu Oct 29, 2009 3:47 pm
Forum: Beginners Help
Topic: running irrlicht in visual c++
Replies: 8
Views: 1337

You will have to use PeekMessage and GetMessage to intercept the keyboard or mouse events going to the picture child window in the main drawing loop and route them to EventReceiver or handle yourself. It's a little hacky and caused problems for me, so good luck with that. The link below has a demo p...
by Psan
Wed Oct 28, 2009 2:28 pm
Forum: Beginners Help
Topic: running irrlicht in visual c++
Replies: 8
Views: 1337

Yes, you can create a child window, say a CButton of required size, and pass its handle to Irrlicht during createdevice.

Example code is there in examples that come with Irrlicht.
by Psan
Sun Oct 25, 2009 12:23 pm
Forum: Beginners Help
Topic: Simple circle shadows
Replies: 6
Views: 1426

Re: Simple circle shadows

tyomalu wrote:
  • 1. How to draw shadow on floor without artifacts
You are bound to get artifacts with builtin shadows or even with opengl realtime stencil shadows. I found that the XEffects Reloaded shader pack has some nice shaders that produce smooth shadows. You can find it here on forums.
by Psan
Sun Oct 25, 2009 12:17 pm
Forum: Beginners Help
Topic: A question about rotating a scene node
Replies: 8
Views: 390

Or you can use mesh manipulator to set the initial rotation, which is as good as rotating it in a 3D editor program. core::matrix4 m; m.setRotationDegrees(core::vector3df(90,0,0)); //or anything smgr->getMeshManipulator()->transform(mesh, m); scene::ISceneNode *node = smgr->addMeshSceneNode(mesh); E...
by Psan
Thu Oct 22, 2009 7:46 pm
Forum: Beginners Help
Topic: trapped to objects...
Replies: 3
Views: 293

Yes, search to find a few examples here.

I found a good and simple working example, which I was also using...

http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=25063
by Psan
Sun Oct 18, 2009 10:29 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: Turn to target in 3D
Replies: 17
Views: 10735

They are separate nodes in a parenting chain. Pelvis being the grand parent of all. I've avoided skinned mesh so far. The target is placed far below the ground like at (0,-10000,0). Actually, the best solution for this would be to use a physics engine, but right now I feel too lazy to explore that, ...
by Psan
Sat Oct 17, 2009 5:44 pm
Forum: Beginners Help
Topic: 3d Studio Max -> irrlicht
Replies: 3
Views: 299

Have you tried this ? :

Code: Select all


node->setMaterialTexture( 0, driver->getTexture("filename.jpg") );

by Psan
Wed Oct 14, 2009 3:19 pm
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: Turn to target in 3D
Replies: 17
Views: 10735

Thank you arras,

Your code works great, it saved me a lot of time. I used it to make limbs of a character always fall towards the ground. I have given you full credit in the source. :)
by Psan
Mon Oct 12, 2009 2:14 pm
Forum: Beginners Help
Topic: follow camera
Replies: 22
Views: 2660

Make sure you setPosition the camera well outside your node after setParent, else the node will make it blind.
by Psan
Mon Oct 12, 2009 2:00 pm
Forum: Beginners Help
Topic: Creating a device without creating a window
Replies: 2
Views: 345

I'm not sure , but there is a null driver which may help.

Code: Select all

enum E_DRIVER_TYPE
{
//! Null driver, useful for applications to run the engine without visualisation.
/** The null device is able to load textures, but does not
	render and display any graphics. */

	EDT_NULL,
........

by Psan
Mon Oct 12, 2009 1:48 pm
Forum: Beginners Help
Topic: How can I get the distance between a box and a point?
Replies: 4
Views: 321

Code: Select all


//update all positions before this

core::vector3df x = node1->getAbsolutePosition();
core::vector3df y = node2->getAbsolutePosition();
f32 d = x.getDistanceFrom(y);

by Psan
Thu Oct 08, 2009 8:41 pm
Forum: Beginners Help
Topic: [solved] parenting?
Replies: 1
Views: 248

Posting the relevant code may help solve this problem.
by Psan
Thu Oct 08, 2009 7:51 pm
Forum: Beginners Help
Topic: alpha channel and collision question...
Replies: 6
Views: 464

I guess you need to do it with createCollisionResponseAnimator. There is an example in folder "collision" in examples.

You need to select triangles of the model in oct tree and add anim to the cube.

Should work, but I'm not so sure. :D
by Psan
Thu Oct 08, 2009 7:04 pm
Forum: Beginners Help
Topic: How do I rotate the whole scene?
Replies: 4
Views: 410

Please try this :

camera->setUpVector(core::vector3df(1.0f, 0.0f, 0.0f));

or

camera->setUpVector(core::vector3df(0.0f, 0.0f, 1.0f));