Search found 11 matches

by JeroenP
Fri Dec 25, 2009 1:55 pm
Forum: Beginners Help
Topic: Irrnetlite beta chat client server communication timing
Replies: 4
Views: 627

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...
by JeroenP
Tue Sep 08, 2009 6:51 pm
Forum: Beginners Help
Topic: Pointing the camera
Replies: 2
Views: 338

I think he means setTarget.
by JeroenP
Tue Sep 08, 2009 6:44 pm
Forum: Advanced Help
Topic: 3D rotation using 2 3D points.
Replies: 5
Views: 1858

It's easy:

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());
(!) only 3 numbers can define a rotation, so Y-axis -> always up

Jeroen
by JeroenP
Mon Sep 07, 2009 12:37 pm
Forum: Beginners Help
Topic: about objects made in blender...
Replies: 3
Views: 243

I do think it's something with the normals...

You could flip the normals of a face individual.

(Edit mode -> select the face to flip the normal -> press W-key -> flip normals)

In blender (edit mode) you can show the normals -> Mesh Tools More -> show Normals.

Jeroen
by JeroenP
Sun Sep 06, 2009 8:37 am
Forum: Off-topic
Topic: Closest point to an ellipsoid
Replies: 39
Views: 13005

Wow, nice :)

I tryed that in 2D, but I got problems. So I stopped trying :).

(What did you study?)

Jeroen
by JeroenP
Wed Sep 02, 2009 6:00 pm
Forum: Off-topic
Topic: Closest point to an ellipsoid
Replies: 39
Views: 13005

@ 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 ...
by JeroenP
Wed Sep 02, 2009 2:11 pm
Forum: Off-topic
Topic: Closest point to an ellipsoid
Replies: 39
Views: 13005

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...
by JeroenP
Wed Sep 02, 2009 8:07 am
Forum: Beginners Help
Topic: Demo crashes after succesfully compiled
Replies: 4
Views: 217

Re: Demo crashes after succesfully compiled

Trynox wrote:the program just closes without any error
Maybe the program is just exiting because it can not find a resource, or it's not able to initialize the device.

Code: Select all

if (!device)
	return;
Jeroen
by JeroenP
Mon Aug 31, 2009 11:43 am
Forum: Off-topic
Topic: Closest point to an ellipsoid
Replies: 39
Views: 13005

if you have:

P = given point (?,?,?)
Q = point you search (x,y,z)

Then vector PQ stands _|_ upon the tangent at Q.

Using some math you should be able to solve it.

Jeroen
by JeroenP
Tue Aug 25, 2009 3:22 pm
Forum: Beginners Help
Topic: Rotating Camera
Replies: 4
Views: 350

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...
by JeroenP
Tue Jul 21, 2009 1:18 pm
Forum: Advanced Help
Topic: Setting the application icons ...
Replies: 1
Views: 414

See the irrlicht source code:

Code: Select all

		// if there is an icon, load it
		wcex.hIcon = (HICON)LoadImage(hInstance, "irrlicht.ico", IMAGE_ICON, 0,0, LR_LOADFROMFILE); 
source: CIrrDeviceWin32.cpp line 327-328


Jeroen (first post :))