Search found 25 matches

by Dave
Fri Jul 06, 2007 7:53 am
Forum: Beginners Help
Topic: 2D bounding box
Replies: 9
Views: 824

Sorry for the bump, but it seems that my code didn't work when rotating objects. Vitek just posted a very nice solution right over here: http://irrlicht.sourceforge.net/phpBB2/ ... 361#123361.
by Dave
Fri Jul 06, 2007 7:51 am
Forum: Beginners Help
Topic: getScreenCoordinatesFrom3DPosition trouble
Replies: 2
Views: 624

Great! I guess is didn't look good enough on the forums for your already posted solution. Nevertheless, it works flawlessly! My solution that didn't even work correctly when rotating object, contained 3x more source lines for nothing :roll:
Thanks again vitek.
by Dave
Thu Jul 05, 2007 1:11 pm
Forum: Beginners Help
Topic: getScreenCoordinatesFrom3DPosition trouble
Replies: 2
Views: 624

getScreenCoordinatesFrom3DPosition trouble

Hi everyone, Don't know if it's a bug or just me with some wrong code, so I made the thread here. I use the function 'getScreenCoordinatesFrom3DPosition' to calculate the 2D screen coordinates of each corner of a bounding box. Here's an eplanation of what I'm doing in PSEUDO-code: V_3DVECTOR corner[...
by Dave
Fri Jun 29, 2007 7:38 am
Forum: Bug reports
Topic: irrlicht 1.3.1 bug
Replies: 2
Views: 357

Oke that was not very smart of me :roll: Well, I tried the compilation at the end of the day, so that probably caused my error...
Thanks hybrid!
by Dave
Thu Jun 28, 2007 2:43 pm
Forum: Bug reports
Topic: irrlicht 1.3.1 bug
Replies: 2
Views: 357

irrlicht 1.3.1 bug

I just downloaded the latest version of Irrlicht (1.3.1) from the website. During the compilation everything went alright. Now the problem: when I start my program with the new version of the dll (compiled in debug mode), the program breaks at the following line in CSceneManager.cpp. This happens so...
by Dave
Wed Jun 27, 2007 5:05 pm
Forum: Bug reports
Topic: [fixed] possible 3ds mesh loader bug
Replies: 1
Views: 451

[fixed] possible 3ds mesh loader bug

I encountered a memory leak (on exiting my application) when using a specific model in my program. The error is as follows: C:\Program Files\Microsoft Visual Studio 8\VC\include\crtdbg.h(1147) : {15564} normal block at 0x09BB55F0, 2046 bytes long. Data: < > 00 00 02 00 01 00 03 00 05 00 04 00 06 00 ...
by Dave
Thu Jun 21, 2007 12:26 pm
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

I finally have it! The solution is stated below: - Subclass a CButton to create your own CRenderButton - Make sure that the button's property 'OwnerDrawn' is true - Create the following method within your CRenderButton class: void CRenderButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) { lpDrawIt...
by Dave
Thu Jun 21, 2007 7:31 am
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

Thanks for your help so far. GuerillaSoftworks : what do you mean with "my code for windows procedure"? Like, the code I use to create Irrlicht inside the button or how I create the button itself? I'll try searching on forums regarding MFC for a solution (expanding CButton or use some kind...
by Dave
Wed Jun 20, 2007 1:21 pm
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

As far as I know, the SIrrlichtCreationParameters struct allows only a resolution to be set. However, if I let Irrlicht render in the main window, the resolution parameters seems to have no effect; the whole window just gets used. About the button, do you know of a way to stop the button itself from...
by Dave
Wed Jun 20, 2007 12:56 pm
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

It doesn't have to be a button. I just need a small part of my total form to be used as render window. The other part of the form contains listboxes, buttons and all kinds of regular MFC controls. I picked a button because that worked, has an onclick event and was used in the example. The way that t...
by Dave
Wed Jun 20, 2007 12:16 pm
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

As you can see in example 14 of the Irrlicht SDK: // create window to put irrlicht in HWND hIrrlichtWindow = CreateWindow("BUTTON", "", WS_CHILD | WS_VISIBLE | BS_OWNERDRAW, 50, 80, 320, 220, hWnd, NULL, hInstance, NULL); This works, you just create a button and Irrlicht renders ...
by Dave
Wed Jun 20, 2007 10:59 am
Forum: Beginners Help
Topic: Irrlicht on MFC CButton causes flicker on click
Replies: 13
Views: 3260

Irrlicht on MFC CButton causes flicker on click

Hello everyone, I have a Win32 MFC form with a CButton component on it. When I create my Irrlicht device I pass the hwnd of that button to creation parameters: irr::SIrrlichtCreationParameters parameters; parameters.DriverType = irr::video::EDT_DIRECT3D9; parameters.WindowId = hWnd; // hWnd is speci...
by Dave
Fri May 04, 2007 9:09 am
Forum: Beginners Help
Topic: Eventreceiver + windows form
Replies: 2
Views: 929

Thanks, I didn't think of that. It works now :)
by Dave
Fri May 04, 2007 8:01 am
Forum: Beginners Help
Topic: Eventreceiver + windows form
Replies: 2
Views: 929

Eventreceiver + windows form

Hello, I'm experiencing a problem with the event receiver. Currently I have it running within a Windows MFC form. The Irrlicht device is created with the HWND of a CButton, which is located in the middle of the form. Now the problem is that for some reason, I don't get any feedback from the eventrec...
by Dave
Fri Apr 27, 2007 7:29 am
Forum: Beginners Help
Topic: selection with the mouse
Replies: 1
Views: 418

Look at the function getSceneNodeFromScreenCoordinatesBB in the help file.