Search found 32 matches

by mybiandou
Mon Feb 01, 2016 4:10 am
Forum: Bug reports
Topic: TextSceneNode display problem when splitted view
Replies: 8
Views: 2680

Re: TextSceneNode display problem when splitted view

The CGUITTFont class comes from http://irrlicht.sourceforge.net/forum/viewtopic.php?t=39026

But even i use built-in font, the same problem will occur.

I paste a full example to display this, which is adapted from Irrlicht example 18(Split view)


/** Example 018 Splitscreen

A tutorial by Max ...
by mybiandou
Fri Jan 29, 2016 8:25 am
Forum: Bug reports
Topic: TextSceneNode display problem when splitted view
Replies: 8
Views: 2680

TextSceneNode display problem when splitted view

Hello,

I try to add some TextSceneNode to Scene manager.

In a single view, the text can be displayed correctly including English words and Chinese words.
When I use two views, the graphics can be displayed correctly , I means it keps correct width-height ratio.
But the text display has a ...
by mybiandou
Mon Nov 09, 2009 5:16 am
Forum: Beginners Help
Topic: How can I use the IGUIColorSelectDialog
Replies: 1
Views: 255

How can I use the IGUIColorSelectDialog

I want to choose a color by this IGUIColorSelectDialog.
I try to use env->addColorSelectDialog
And I can see the color select ring

But I can not select the color on the ring, and I dont know how to get the returned color value?

Anyone can help me? thank you .
by mybiandou
Wed Oct 14, 2009 11:46 pm
Forum: Beginners Help
Topic: How to change width/height ratio when switch one/two view?
Replies: 3
Views: 611

Yes, I can define the aspect ratio based on the view size

But after I set the aspect ratio directly, I can not see anything.

I don't know What kind of effects it will bring to my camera.


//設備種類
irr::video::E_DRIVER_TYPE driverType=driver->getDriverType();

if(driverType=irr::video::EDT ...
by mybiandou
Wed Oct 14, 2009 11:28 am
Forum: Beginners Help
Topic: How to change width/height ratio when switch one/two view?
Replies: 3
Views: 611

How to change width/height ratio when switch one/two view?

I want to use the same camera for both one view display and two view display.
(someone use different cameras for single view and two views, but here I want to use the same one)

So when I switch from single to two views, the width/height ratio becomes strange.

I try set the aspect ratio of camera ...
by mybiandou
Wed Oct 14, 2009 8:49 am
Forum: Beginners Help
Topic: (solved yet)How to PAN left/right?
Replies: 4
Views: 614

Sir

By Mr. cheshirekow's suggestion,

I have put one empty node in the scene as the parent for all cameras

//create the camera target empty scenen node;
camtarget=smgr->addEmptySceneNode();
//set its innitial position to (0,0,0)
camtarget->setPosition(irr::core::vector3df(0.0f,0.0f,0.0f ...
by mybiandou
Tue Oct 13, 2009 3:39 am
Forum: Beginners Help
Topic: How can I get the distance between a box and a point?
Replies: 4
Views: 544

As my box is aligned,
I will try Mr. DavidJE13 's method

It is simple than I imagine before

Thank you all very much
by mybiandou
Mon Oct 12, 2009 11:14 am
Forum: Beginners Help
Topic: How can I get the distance between a box and a point?
Replies: 4
Views: 544

How can I get the distance between a box and a point?

I have a core::aabbox3df box and a vector3df point

How can I get the nearest distance between them?

I can get center of the box by function getCenter()



Than you for your suggestions
by mybiandou
Mon Oct 12, 2009 5:33 am
Forum: Beginners Help
Topic: Why my sensor has no color?
Replies: 1
Views: 303

Sorry, I have found the answer in this forum.



child->setMaterialFlag(irr::video::EMF_LIGHTING,true);
setMaterialFlag(irr::video::EMF_LIGHTING,false);
getMaterial(0).EmissiveColor=RAY_LINE_OFF_COLOUR;
child->getMaterial(0).EmissiveColor=RAY_LINE_OFF_COLOUR;


One more point should be ...
by mybiandou
Mon Oct 12, 2009 5:12 am
Forum: Beginners Help
Topic: Why my sensor has no color?
Replies: 1
Views: 303

Why my sensor has no color?

I want to make a sensor, which has a small cylinder and a long pin in the front.

I want to set the color according to the member variable isON is ture/false.

But I found it can not make any effects whatever I change the color.

Because in my scene I have many other bodies which need not lights ...
by mybiandou
Mon Oct 12, 2009 5:07 am
Forum: Beginners Help
Topic: ISceneCollisionManager::getCollisionPoint need 5 parameters?
Replies: 2
Views: 343

That means I can set it to NULL if I need not it.

Thank you very much.


It is an out parameter. You get a reference to a pointer for an unchangeable ISceneNode. You pass in "outNode" which is declared like this:
const scene::ISceneNode* outNode = 0;

Check ISceneCollisionManager.h for a more up ...
by mybiandou
Mon Oct 12, 2009 3:00 am
Forum: Beginners Help
Topic: ISceneCollisionManager::getCollisionPoint need 5 parameters?
Replies: 2
Views: 343

ISceneCollisionManager::getCollisionPoint need 5 parameters?

I have a question when I use ISceneCollisionManager.

I use ISceneCollisionManager::getCollisionPoint(ray, collisionTriangles, point, triangle)

The compiler tell me it need five parameters

Though the document http://irrlicht.sourceforge.net/docu/classirr_1_1scene_1_1_i_scene_collision_manager.html ...
by mybiandou
Mon Oct 12, 2009 1:36 am
Forum: Beginners Help
Topic: How can I get the size of all scene nodes?
Replies: 3
Views: 339

En It seems that I have to do this.

Thank you Acki, vitek very much
by mybiandou
Sun Oct 11, 2009 12:55 pm
Forum: Beginners Help
Topic: How can I get the size of all scene nodes?
Replies: 3
Views: 339

How can I get the size of all scene nodes?

I want to put the target of my camera at the center of the total models which include many many scene nodes.

Should I scanning each scene node and its child node by myself? Or, Irrlicht has provided a function like this?

getRootSceneNode()->getTotalBoundingBox()

Thank you for your comments.
by mybiandou
Wed Oct 07, 2009 1:51 am
Forum: Beginners Help
Topic: How can I rotate an ISceneNode around a given axis?
Replies: 10
Views: 902

Thank you for your explanation.
To clarify the question more clearly, take the following drawing as an example.
The origin of the world coordinates is at O point (xog,yog,zog)
The object A is mounted to scene node root with local coordinates(xl,yl,zl)

So when I rotate the scene node O' by a free ...