Search found 11 matches
- Fri Dec 25, 2009 1:55 pm
- Forum: Beginners Help
- Topic: Irrnetlite beta chat client server communication timing
- Replies: 4
- Views: 641
Hello, I did never worked with irrNet (first time I heard from it), so I can be wrong. But maybe you could try to remove the netManager->update(100) in this code. if(netManager->getConnectionStatus() != net::EICS_FAILED) { net::SOutPacket outpacket; outpacket << str.c_str(); outpacket.compressPacket...
- Tue Sep 08, 2009 6:51 pm
- Forum: Beginners Help
- Topic: Pointing the camera
- Replies: 2
- Views: 370
- Tue Sep 08, 2009 6:44 pm
- Forum: Advanced Help
- Topic: 3D rotation using 2 3D points.
- Replies: 5
- Views: 1887
It's easy:
(!) only 3 numbers can define a rotation, so Y-axis -> always up
Jeroen
Code: Select all
core::vector3df Point1 = core::vector3df(X1,Y1,Z1);
core::vector3df Point2 = core::vector3df(X2,Y2,Z2);
core::vector3df vect = Point2-Point1;
node->setRotation(vect.getHorizontalAngle());
Jeroen
- Mon Sep 07, 2009 12:37 pm
- Forum: Beginners Help
- Topic: about objects made in blender...
- Replies: 3
- Views: 282
- Sun Sep 06, 2009 8:37 am
- Forum: Off-topic
- Topic: Closest point to an ellipsoid
- Replies: 39
- Views: 13330
- Wed Sep 02, 2009 6:00 pm
- Forum: Off-topic
- Topic: Closest point to an ellipsoid
- Replies: 39
- Views: 13330
@ PI: The point you are searching is not the closest point, it's the intersection of PM (P=given ; M=middle) with the ellips... That's because you scale around the center point. The other solution with the tangent... A solution: You could eventualy calculate some points of the ellips, and for every ...
- Wed Sep 02, 2009 2:11 pm
- Forum: Off-topic
- Topic: Closest point to an ellipsoid
- Replies: 39
- Views: 13330
Hello, I think I know an easy way to get the closest point!!! First you search the two focus-points, you find them by: f32 c=sqrt(kwa(a)-kwa(b)); core::position2di focus1 = core::position2di((s32)(-c),0); core::position2di focus2 = core::position2di((s32)(c),0); (If (0,0) is the middle point) (a = b...
- Wed Sep 02, 2009 8:07 am
- Forum: Beginners Help
- Topic: Demo crashes after succesfully compiled
- Replies: 4
- Views: 233
Re: Demo crashes after succesfully compiled
Maybe the program is just exiting because it can not find a resource, or it's not able to initialize the device.Trynox wrote:the program just closes without any error
Code: Select all
if (!device)
return;
- Mon Aug 31, 2009 11:43 am
- Forum: Off-topic
- Topic: Closest point to an ellipsoid
- Replies: 39
- Views: 13330
- Tue Aug 25, 2009 3:22 pm
- Forum: Beginners Help
- Topic: Rotating Camera
- Replies: 4
- Views: 377
Hello, When you want to set the camera rotation, you first have to set bindTargetAndRotation to true. (I think it's a bug in irrlicht, if you don't set it to true, the target is not updated, and in the draw code it uses the target, so setting the rotation does nothing...) A better name for bindTarge...
- Tue Jul 21, 2009 1:18 pm
- Forum: Advanced Help
- Topic: Setting the application icons ...
- Replies: 1
- Views: 448
See the irrlicht source code:
source: CIrrDeviceWin32.cpp line 327-328
Jeroen (first post
)
Code: Select all
// if there is an icon, load it
wcex.hIcon = (HICON)LoadImage(hInstance, "irrlicht.ico", IMAGE_ICON, 0,0, LR_LOADFROMFILE);
Jeroen (first post
![Smile :)](./images/smilies/icon_smile.gif)