Search found 8 matches
- Mon Jun 18, 2012 9:43 am
- Forum: Code Snippets
- Topic: string to s32
- Replies: 5
- Views: 1971
Re: string to s32
Hi everyone, I would like to share the following small code snippet with you. You can convert a value of any type into another result type. The only dependency is that output and input oterator have to exist for the types. Oh, and it's STL based... The syntax corresponds to the cast operators. #ifnd...
- Wed Feb 22, 2012 2:06 pm
- Forum: Beginners Help
- Topic: False error when loading height map
- Replies: 2
- Views: 243
Re: False error when loading height map
Hi 0lenny0, maybe the actual working directory within your IDE is different? Try this to get information about the actual working directory: void ShowInfoAboutActualWorkingDirectory() { TCHAR szCurDir[1024]; szCurDir[0] = '\0'; GetCurrentDirectory (1024, szCurDir); CString csCu...
- Fri Feb 17, 2012 1:30 pm
- Forum: Beginners Help
- Topic: How can I resize irrlicht window?
- Replies: 15
- Views: 11090
Re: How can I resize irrlicht window?
Hi, here is how I did it. I use D3D and not OpenGL, it doesn't crash and I did't have any pixelation effects. So it works for me... In the 'OnSize' method within your view just set a mark, e.g a boolean member of your view: void MyView::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType,...
- Wed Sep 28, 2011 9:11 am
- Forum: Beginners Help
- Topic: Selecting/Getting nodes within a rectangular area
- Replies: 2
- Views: 189
Re: Selecting/Getting nodes within a rectangular area
Thank you for your answer, CuteAlien.
I'm aware of the way you described to solve my problem.
My hope was, that there are some libary methods which I don't know and which I could reuse.
Again, thanks for your reply!
Voxel
I'm aware of the way you described to solve my problem.
My hope was, that there are some libary methods which I don't know and which I could reuse.
Again, thanks for your reply!
Voxel
- Wed Sep 28, 2011 5:53 am
- Forum: Beginners Help
- Topic: Selecting/Getting nodes within a rectangular area
- Replies: 2
- Views: 189
Selecting/Getting nodes within a rectangular area
Hello, I have some objects (say cubes) of different size in my scene and I want to be able to determine objects within a rectangular area which should be defined by mouse. I think this is a feature which is common in all editors - I don't know the name but let me name the feature "area selectio...
- Thu Jun 16, 2011 1:26 pm
- Forum: Bug reports
- Topic: [fixed]How to clone 'DummyTransformationSceneNodes'
- Replies: 4
- Views: 769
- Thu Jun 16, 2011 7:58 am
- Forum: Bug reports
- Topic: [fixed]How to clone 'DummyTransformationSceneNodes'
- Replies: 4
- Views: 769
[fixed]How to clone 'DummyTransformationSceneNodes'
Hi, I read in a Collada file with a composite scene node structure. Here a short trace of the structure with scene node name and scene node type: "MyNode2" dmmy "MyNode-mesh" mesh "MyNode_001" dmmy "MyNode_002-mesh" mesh "...
- Tue May 31, 2011 3:05 pm
- Forum: Beginners Help
- Topic: One Pixel Unit
- Replies: 2
- Views: 399
One Pixel Unit
Hi, I'm searching for a way of getting/computing the unit value for one pixel. For example, if I want to draw a line of 1000 'Irrlicht-Units', what is the line length in pixels? Some pseudo code: int nLineWithInPixel = 1000/OnePixelUnit(); if (nLineWidth < 4) { // do something } I think it depends o...