Search found 18 matches

by ben
Sun Jan 24, 2010 1:33 am
Forum: Beginners Help
Topic: Accessing terrain data
Replies: 1
Views: 364

Accessing terrain data

Hi, I have a terrain generated from a height map. I wish to access the terrain data so I can (for example) place a scenenode (eg for a tree or something) on the corner of each quad that the map consists of. In the 'terrain' tutorial, I have found this: scene::CDynamicMeshBuffer* buffer = new scene::...
by ben
Wed Jul 08, 2009 4:50 pm
Forum: Beginners Help
Topic: Identifying scene nodes from getSceneNodeFromCameraBB(cam)
Replies: 5
Views: 271

Ahhhh many thanks! I knew it would be something simple! I'm fairly new to programming. I used the same concept but implemented it slightly differently; stringc P1 = "PLAYERONE"; stringc P2 = "PLAYERTWO"; stringc NAME = selectedSceneNode->getName(); if (NAME == P1) { //...etc beca...
by ben
Wed Jul 08, 2009 4:02 pm
Forum: Beginners Help
Topic: Identifying scene nodes from getSceneNodeFromCameraBB(cam)
Replies: 5
Views: 271

Unfortunately I'm using the ID already for a different purpose. I just tried iterating through a list, and its not as bad as I expected... especially after including as many conditions as possible to make it do as little work as possible. However this issue is one that I'm definitely going to encoun...
by ben
Wed Jul 08, 2009 3:27 pm
Forum: Beginners Help
Topic: Identifying scene nodes from getSceneNodeFromCameraBB(cam)
Replies: 5
Views: 271

Identifying scene nodes from getSceneNodeFromCameraBB(cam)

Hi, This is seemingly simple but just wont work for me! I'm using: selectedSceneNode = smgr->getSceneCollisionManager()->getSceneNodeFromCameraBB(camera); to find which node is selected. Once I have this node, I can apply properties to it, but how can I retrieve existing properties? Say I have two t...
by ben
Tue Jun 30, 2009 10:11 am
Forum: Beginners Help
Topic: Bullet and Irrlicht on linux
Replies: 3
Views: 321

My bullet/lib folder is empty except for a 'readme.txt.' That file contains the following; At the moment there are no binary packages from Bullet library. Once this is done, 3 libraries will be placed here: bulletmath.a bulletcollision.a bulletdynamics.a The C-API will be available in the include fo...
by ben
Mon Jun 29, 2009 4:19 pm
Forum: Beginners Help
Topic: Bullet and Irrlicht on linux
Replies: 3
Views: 321

Bullet and Irrlicht on linux

Hi, I'm running linux, compiling my irricht code with a makefile. I have managed to compile bullet and the examples work fine. Bullet uses CMake to create makefiles, and I'm at a loss as to how to combine the resulting bullet makefile with the irrlicht one to create a single executable... Anyone kno...
by ben
Fri Jun 12, 2009 9:29 am
Forum: Beginners Help
Topic: Transluscent filled polygons. Also draw distance.
Replies: 7
Views: 556

I was going to create an array of pointers to each object and then just loop through it. I don't know if this will be fast enough, I suspect it will not!

How long 'till 1.6 is out?
by ben
Wed Jun 10, 2009 10:16 am
Forum: Beginners Help
Topic: Transluscent filled polygons. Also draw distance.
Replies: 7
Views: 556

Here is my solution, as an alternative method for those interested: node->setMaterialFlag(EMF_LIGHTING, true); node->setMaterialType(EMT_TRANSPARENT_ADD_COLOR); node->setMaterialFlag(EMF_WIREFRAME, false); node->getMaterial(0).EmissiveColor.set(255,0,30,0); smgr->drawAll(); node->setMaterialFlag(EMF...
by ben
Tue Jun 09, 2009 5:43 pm
Forum: Beginners Help
Topic: Transluscent filled polygons. Also draw distance.
Replies: 7
Views: 556

Thanks. I have solved all these problems now.
by ben
Tue Jun 09, 2009 11:33 am
Forum: Beginners Help
Topic: Transluscent filled polygons. Also draw distance.
Replies: 7
Views: 556

Transluscent filled polygons. Also draw distance.

Hi, I would like to fill a model with a single semi-transparent colour... how do I go about doing this? I have tried everything I can think of without success. In addition to this I would like to outline the visible polygons of the model- i.e. use hidden line removal. I found a solution to this , bu...
by ben
Mon Jun 01, 2009 9:02 am
Forum: Advanced Help
Topic: Help for Airplane
Replies: 5
Views: 849

inversecos(dot product of 2 unit vectors)

will give you the angle between the 2 vectors
by ben
Mon Jun 01, 2009 7:38 am
Forum: Off-topic
Topic: End of the world?
Replies: 15
Views: 2108

I probably shouldn't encourage you, but IIRC, the apocalypse is predicted to occur by the bible when armies descend on Babylon, which is a few km south of modern Baghdad.

But this is all bullsh*t in my opinion anyway.
by ben
Fri May 29, 2009 11:32 pm
Forum: Off-topic
Topic: god
Replies: 38
Views: 3881

Calm down man. You know yourself that your post wasn't meant as technical post, but as an attack on religious guys. I don't care about that too much, but it simply doesn't belong in code snippets. I'm just trying to remember if you were one of the irr-nazi's from before or if you were one of the ra...
by ben
Fri May 29, 2009 7:17 am
Forum: Everything 2d/3d Graphics
Topic: Typical irrlicht polycount on low-end hardware?
Replies: 14
Views: 2327

That's great guys, thanks!

In that case I'll try to keep it below about 20000. That should allow me a few extra polys per model, which is nice.

Thanks again!
by ben
Thu May 28, 2009 6:20 pm
Forum: Everything 2d/3d Graphics
Topic: Typical irrlicht polycount on low-end hardware?
Replies: 14
Views: 2327

I'm sure you'll be perfectly alright with models as low poly as that :) Okay thanks, that's reassuring to know. In that case, I'll stick with the models I have and include an option somewhere to chose whether to use high or low-poly models. If anyone happens to run irrlicht on a pc of similar specs...