bur the result is false
so i tried frustum
if(Receiver.leftMouseDown())
{
mouse_up = false;
if(firstCorner == core::position2d<s32>(0,0))
firstCorner = device->getCursorControl()->getPosition();
secondCorner = device->getCursorControl()->getPosition();
}
if(Receiver.leftMouseUp())
{
if ...
Search found 19 matches
- Thu Apr 09, 2015 5:53 am
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
- Thu Apr 09, 2015 5:48 am
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
Re: multi selection
if(Receiver.leftMouseDown())
{
if(firstCorner == core::position2d<s32>(0,0))
firstCorner = device->getCursorControl()->getPosition();
secondCorner = device->getCursorControl()->getPosition();
}
if(Receiver.leftMouseUp())
{
length1=0;
core::list<scene::ISceneNode*> sn1 ;
scene ...
{
if(firstCorner == core::position2d<s32>(0,0))
firstCorner = device->getCursorControl()->getPosition();
secondCorner = device->getCursorControl()->getPosition();
}
if(Receiver.leftMouseUp())
{
length1=0;
core::list<scene::ISceneNode*> sn1 ;
scene ...
- Tue Apr 07, 2015 9:58 pm
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
Re: multi selection
i did as you advice me but the result was empty or not complete.
what should i do after
vector2d<irr::s32> screenpos = device->getSceneManager()->getSceneCollisionManager()->getScreenCoordinatesFrom3DPosition(scenNodePos);
is there any transformation i have to do for screenpos ...
what should i do after
vector2d<irr::s32> screenpos = device->getSceneManager()->getSceneCollisionManager()->getScreenCoordinatesFrom3DPosition(scenNodePos);
is there any transformation i have to do for screenpos ...
- Fri Mar 27, 2015 3:00 pm
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
Re: multi selection
core::position2di pos = device->getCursorControl()->getPosition();
device->getSceneManager()->getSceneCollisionManager()->getRayFromScreenCoordinates(pos, camera);
i have do that for every time or only for the left upper corner and right lower corner of rectangle
then loop for all nodes and do the ...
device->getSceneManager()->getSceneCollisionManager()->getRayFromScreenCoordinates(pos, camera);
i have do that for every time or only for the left upper corner and right lower corner of rectangle
then loop for all nodes and do the ...
- Fri Mar 27, 2015 10:56 am
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
Re: multi selection
You need to record 2 rays projection to screen coordinate (begin and end) using e.g.
core::position2di pos = device->getCursorControl()->getPosition();
device->getSceneManager()->getSceneCollisionManager()->getRayFromScreenCoordinates(pos, camera);
i have do that for every time or only for the ...
core::position2di pos = device->getCursorControl()->getPosition();
device->getSceneManager()->getSceneCollisionManager()->getRayFromScreenCoordinates(pos, camera);
i have do that for every time or only for the ...
- Fri Mar 27, 2015 8:50 am
- Forum: Advanced Help
- Topic: hide texture
- Replies: 6
- Views: 1503
Re: hide texture
i have a cube ,i put a texture on it, I need this texture to be sometimes visible and invisible in other times (when the texture is invisible,the cube must still visible)
- Thu Mar 26, 2015 9:32 pm
- Forum: Advanced Help
- Topic: hide texture
- Replies: 6
- Views: 1503
hide texture
how to make texture invisible
- Thu Mar 26, 2015 5:08 pm
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
Re: multi selection
what do you mean by "scenNodePos" ?
I think we well catch only sceneNodes which the mouse cursor move over, is that true ?
I think we well catch only sceneNodes which the mouse cursor move over, is that true ?
- Tue Mar 24, 2015 10:41 pm
- Forum: Advanced Help
- Topic: multi selection
- Replies: 13
- Views: 3012
multi selection
usually I select sceneNod using ray from camera toward the sceneNode,
I want to select more than sceneNode by drawing rectangle on the screen by dragging mouse and select all nodes behind this rectangle
any idea ?
I want to select more than sceneNode by drawing rectangle on the screen by dragging mouse and select all nodes behind this rectangle
any idea ?
- Sun Mar 08, 2015 11:40 pm
- Forum: Advanced Help
- Topic: sun light
- Replies: 1
- Views: 896
sun light
how to make sun light and make it enter from windows of 3d building and make shadows
any help ?
any help ?
- Sat Feb 21, 2015 1:08 pm
- Forum: Advanced Help
- Topic: collision
- Replies: 3
- Views: 1265
Re: collision
thank you
- Sat Feb 21, 2015 11:58 am
- Forum: Advanced Help
- Topic: collision
- Replies: 3
- Views: 1265
collision
i use this code core::line3d<f32> ray;
ray.start = secondarycamera->getPosition();
ray.end = ray.start + (secondarycamera->getTarget() - ray.start).normalize() * 1000.0f;
core::vector3df intersection;
core::triangle3df hitTriangle;
selectedSceneNode1 =
collMan ...
ray.start = secondarycamera->getPosition();
ray.end = ray.start + (secondarycamera->getTarget() - ray.start).normalize() * 1000.0f;
core::vector3df intersection;
core::triangle3df hitTriangle;
selectedSceneNode1 =
collMan ...
- Mon Feb 09, 2015 7:43 pm
- Forum: Advanced Help
- Topic: bump texture
- Replies: 3
- Views: 1399
Re: bump texture
Thank you
but in irrlicht how can use bump texture ?
but in irrlicht how can use bump texture ?
- Sat Feb 07, 2015 12:04 am
- Forum: Advanced Help
- Topic: bump texture
- Replies: 3
- Views: 1399
bump texture
what is bump texture???
how can do it ????????
how can do it ????????
- Sat Jan 24, 2015 3:24 pm
- Forum: Advanced Help
- Topic: load 3d model
- Replies: 2
- Views: 1857
load 3d model
i am using collada with irrlicht, i load a collada model using this
scene::IAnimatedMesh* model;
smgr->getParameters()->setAttribute(irr::scene::COLLADA_CREATE_SCENE_INSTANCES, true);
model = smgr->getMesh("mesh.dae");
it works well
but I want to replace this model with another, i have to delete ...
scene::IAnimatedMesh* model;
smgr->getParameters()->setAttribute(irr::scene::COLLADA_CREATE_SCENE_INSTANCES, true);
model = smgr->getMesh("mesh.dae");
it works well
but I want to replace this model with another, i have to delete ...