Search found 35 matches

by rincewind
Fri Dec 30, 2005 9:43 am
Forum: Advanced Help
Topic: String conversion and AnimationEndCallBack
Replies: 11
Views: 924

Don't use the STL wstring but the irrlicht built-in stringw:

Code: Select all

char name[256];
// fill name array with data
// ...
const wchar_t *string = irr::core::stringw(name).c_str();
by rincewind
Tue Dec 27, 2005 9:19 am
Forum: Beginners Help
Topic: conversion from 2d cord. to 3d and vice versa
Replies: 4
Views: 334

Have a look at the API, in particular at the ISceneCollisionManager . This class (for which a pointer can be received via the ISceneManager) provides all methods you need for this tasks. For example, you can use getScreenCoordinatesFrom3DPosition() to transform 3d coordinats into 2d screen coordinat...
by rincewind
Tue Dec 06, 2005 7:49 am
Forum: Advanced Help
Topic: I need some vector math help, please.
Replies: 6
Views: 457

You can use the scalar product between the two "forward" vectors. So, assuming that x=(x_1, x_2, x_3) is pointing forward for node 1 and y=(y_1, y_2, y_3) does the same for node 2, and assuming further that both x and y have length 1, the following equation is true: x_1*y_1+x_2*y_2+x_3*y_3...
by rincewind
Wed May 25, 2005 9:45 pm
Forum: Project Announcements
Topic: Irrlicht 0.10.0
Replies: 44
Views: 10448

Hey, cool :)
But sf's download-speed sucks ;)
by rincewind
Sun May 08, 2005 9:39 am
Forum: Beginners Help
Topic: collision problem
Replies: 9
Views: 564

Can you describe your problem in more detail?

I think, it is not a good idea to add both the level-triangleselector and the player-triangleselector
to the metaselector. But because i don't know what you want to do and what happens, maybe the problem lies somewhere else...
by rincewind
Wed Apr 27, 2005 6:28 pm
Forum: Beginners Help
Topic: Level Loading
Replies: 2
Views: 319

You can do something like irr::core::stringc pk3file("maps/map-"); pk3file += mapname; pk3file += ".pk3"; device->getFileSystem()->addZipFileArchive(pk3file.c_str()); irr::core::stringc bspfile(mapname); bspfile += ".bsp"; quakeLevelMesh = scenemgr->getMesh(bspfile); us...
by rincewind
Wed Apr 27, 2005 5:51 pm
Forum: Beginners Help
Topic: Problem with anything involving getBlah();
Replies: 5
Views: 625

I'd suggest you move the createDevice() stuff into main()....
by rincewind
Fri Apr 01, 2005 3:41 pm
Forum: Beginners Help
Topic: Change the text of an ITextSceneNode
Replies: 4
Views: 310

It seems, that the documentation for the ITextSceneNode is missing. Looking into the source, i would suggest to use ITextSceneNode::setText(const wchar_t* text).
by rincewind
Tue Mar 15, 2005 9:03 am
Forum: Beginners Help
Topic: Defining a TriangleSelector without an associated mesh
Replies: 5
Views: 293

why do you need a triangleselector? you could use ISceneCollisionManager::getSceneNodeFromScreenCoordinatesBB()
for mousepicking, which uses boundingboxes to select the scenenode.

greetings, rincewind
by rincewind
Wed Mar 02, 2005 9:41 am
Forum: Project Announcements
Topic: Alpha Foundation
Replies: 15
Views: 3652

Hi, looks very good.
I had 115 - 140 fps in the town using an athlon64 3200+, gf6600gt, 1024mb ram.

keep working on this, i want to leave the town and slay some orks :D
by rincewind
Fri Sep 10, 2004 5:46 pm
Forum: Advanced Help
Topic: Fog and stencil shadows
Replies: 3
Views: 649

the method addShadowVolumeSceneNode() returns a pointer to the created shadow. So, you can do this:

Code: Select all

scene::ISceneNode shadow = node->addShadowVolumeSceneNode();
shadow->setMaterialFlag(video::EMF_FOG_ENABLE,true);
greetz, rincewind
by rincewind
Tue Sep 07, 2004 11:05 pm
Forum: Advanced Help
Topic: addOctTreeSceneNode
Replies: 2
Views: 479

I'd guess it's because IAnimatedMesh does not inherit from IMesh, so with two functions it's possible to create an octtree from both IMesh and IAnimatedMesh.
by rincewind
Mon Aug 16, 2004 1:14 pm
Forum: Bug reports
Topic: rotationconcept of irrlicht is inconsistent
Replies: 1
Views: 1167

rotationconcept of irrlicht is inconsistent

well, as the subject says: the way irrlicht implements rotation is inconsistent. if you do something like mySceneNode->setRotation(mySceneNode->getRotation()+vector3df(10,0,0)); the scenenode rotates around it's own x-axis. But if you try to do the same for the y-axis or the z-axis, eg: mySceneNode-...
by rincewind
Sat Aug 14, 2004 1:41 am
Forum: Project Announcements
Topic: need to be tested
Replies: 27
Views: 7929

works fine on my athlon xp2200+, 512mb, nvidea geforce4 ti 4200,
win98se (<-- shame on me^^)
by rincewind
Sat Aug 14, 2004 1:30 am
Forum: Beginners Help
Topic: playing with helloworld
Replies: 7
Views: 559

acki forgot the "&", you have to pass a pointer to your eventreceiver into
the createDevice-method:

Code: Select all

MyEventReceiver receiver; 
   IrrlichtDevice *device = 
      createDevice(EDT_DIRECTX9, dimension2d<s32>(1024, 768), 16, false, false, &receiver);