Search found 148 matches

by wsw1231
Sat Jan 22, 2011 9:45 am
Forum: Beginners Help
Topic: How to create a terrain?
Replies: 1
Views: 277

I discover that copper cube can do what I want. (e.g. the copper room in the prefabs)
But I would like to know how to make my own room instead of using the room from copper cube (i.e. export the copper room into *.irrmesh)
by wsw1231
Sat Jan 22, 2011 8:48 am
Forum: Beginners Help
Topic: How to do camera zooming?
Replies: 6
Views: 352

How to do camera zooming?

case EMIE_MOUSE_WHEEL: { if (event.MouseInput.Wheel == -1.0f) camFOV+=0.1f; else if (event.MouseInput.Wheel == 1.0f) camFOV-=0.1f; camera->setFOV(camFOV); } break; I have used the above code to handle the camera zooming but something weird will happen. If I wheel up/down too much, the nodes in the ...
by wsw1231
Sat Jan 22, 2011 6:05 am
Forum: Beginners Help
Topic: How to create a terrain?
Replies: 1
Views: 277

How to create a terrain?

I am now doing my final year project which is to allow users to design a 3D floor plan. My supervisor told me to give some floor plan templates for the user before letting them continue editing it. The easiest template must be a cube without the top. But I am quite new to computer graphics and can j...
by wsw1231
Fri Jan 21, 2011 4:32 am
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

There you go :wink: int main() { // initial blatter ISceneNode* cube = smgr->addCubeSceneNode( 10, 0 ); while( device->run() ) { if( _device->isWindowActive() ) { driver->setViewPort( dimension<u32>( 0, 0, 840, 480 ) ); // dimension of viewport driver->beginScene( true, true, video::SColor( 255, 8,...
by wsw1231
Thu Jan 20, 2011 5:04 pm
Forum: Beginners Help
Topic: How to draw things manually without using smgr?
Replies: 6
Views: 711

Yep, use node->render() Just be sure to set the transformations before rendering. I think it was driver->setTransformation(ETS_WORLD,node->getAbsoluteTransformation()) Or something like that. Thanks for reminding me of that API. However, I have a question If the cube node is rendered in smgr, we ca...
by wsw1231
Thu Jan 20, 2011 2:33 pm
Forum: Beginners Help
Topic: How to draw things manually without using smgr?
Replies: 6
Views: 711

How to draw things manually without using smgr?

In fact, my question starts from http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=42563 After searching other posts, what I need to do to make a node appear in front of other nodes is to draw it manually after smgr->drawAll(); However, I do not know how to do so. Could someone please help me o...
by wsw1231
Thu Jan 20, 2011 1:53 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

/** Example 001 HelloWorld This Tutorial shows how to set up the IDE for using the Irrlicht Engine and how to write a simple HelloWorld program with it. The program will show how to use the basics of the VideoDriver, the GUIEnvironment, and the SceneManager. Microsoft Visual Studio is used as an ID...
by wsw1231
Thu Jan 20, 2011 1:23 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

Anyone please offer help :(
I really can't understand how to make those arrows appearing in front of the selected object
by wsw1231
Sat Jan 15, 2011 7:03 am
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

hybrid wrote:You need to render the arrows last (maybe using a separate scene manager) and disable zbuffer test
Could you please give me some example code?
I still do not know how to make the arrows always appear in front of the selected node. :(
by wsw1231
Thu Jan 13, 2011 6:49 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

You need to render the arrows last (maybe using a separate scene manager) and disable zbuffer test :shock: It seems complicated..... Should I use the code below to use a separate scene manager? smgr2 = smgr1->createNewSceneManager() Is that what you mean by disabling zbuffer for the arrow? ISceneNo...
by wsw1231
Thu Jan 13, 2011 5:44 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

http://sphotos.ak.fbcdn.net/hphotos-ak-ash1/hs772.ash1/166246_164022426976619_100001065875913_327426_2431059_n.jpg My output http://sphotos.ak.fbcdn.net/hphotos-ak-snc4/hs1334.snc4/162647_164022470309948_100001065875913_327427_4505534_n.jpg Output from CopperCube So.....Parts of the arrows are hidd...
by wsw1231
Thu Jan 13, 2011 2:32 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

I wouldn't use draw3DLine, instead I would use the errow scene node, like it was used in the 1st screenshot with the cube... ;) this way you can select them (draw3DLine you wouldn't be able to select) and you can attach other nodes (maybe a text-billboard) to the axis... ;) Thanks for your suggesti...
by wsw1231
Wed Jan 12, 2011 3:55 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

Image

Now there are X Y Z axes shown when selecting the node.
How can I add a text near the line to indicate which line is which axis?
Should I use ITextSceneNode to do this?
by wsw1231
Wed Jan 12, 2011 2:44 pm
Forum: Beginners Help
Topic: How to fix that rotation bug??
Replies: 0
Views: 1073

How to fix that rotation bug??

#include <irrlicht.h> using namespace irr; using namespace core; using namespace scene; using namespace video; using namespace io; using namespace gui; #ifdef _IRR_WINDOWS_ #pragma comment(lib, "Irrlicht.lib") #pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup") #...
by wsw1231
Tue Jan 11, 2011 10:20 pm
Forum: Beginners Help
Topic: Translation and rotation
Replies: 39
Views: 4474

......amazing.....
thanks you guys :D