I've got a similar problem, hope these two functions may help you. By the way, I still didn't test to see if there's a memory leak in the first one.
const wchar_t *str2wchar_t(string str)
{
// null-call to get the size
size_t needed = ::mbstowcs(NULL,&str[0],str.length());
// allocate
wstring ...
Search found 24 matches
- Tue Oct 20, 2009 6:37 pm
- Forum: Beginners Help
- Topic: Converting from wchar_t* to char* from Irrlicht's EditBox
- Replies: 4
- Views: 1320
- Wed Sep 30, 2009 9:14 pm
- Forum: Beginners Help
- Topic: Rectangular terrain
- Replies: 1
- Views: 419
Rectangular terrain
Hi,
in my project of drawing different countries, I got stuck with this requisite of terrain maps having to follow the rule 2^N + 1.
For Brazil, height map get about 588x585 pixels. So I stretch it to 1025x1025 (2^10 + 1), no problem.
The problem arrives with Indonesia. Its height map get about ...
in my project of drawing different countries, I got stuck with this requisite of terrain maps having to follow the rule 2^N + 1.
For Brazil, height map get about 588x585 pixels. So I stretch it to 1025x1025 (2^10 + 1), no problem.
The problem arrives with Indonesia. Its height map get about ...
- Fri Jul 03, 2009 8:24 pm
- Forum: Off-topic
- Topic: search in titles
- Replies: 1
- Views: 803
search in titles
Hi,
I wonder why there are only those two options in the search query:
Search topic title and message text
Search message text only
since many searches return hundreds (or thousands) of results, and an option "Search topic title only" could reduce dramatically to the more useful results?
I wonder why there are only those two options in the search query:
Search topic title and message text
Search message text only
since many searches return hundreds (or thousands) of results, and an option "Search topic title only" could reduce dramatically to the more useful results?
- Fri Jul 03, 2009 6:57 pm
- Forum: Beginners Help
- Topic: Unable to compile any example files for IrrNewt.
- Replies: 8
- Views: 853
- Fri Jul 03, 2009 6:55 pm
- Forum: Beginners Help
- Topic: [Warning] `nul.gcda' is not a gcov data file
- Replies: 10
- Views: 4599
- Wed Jul 01, 2009 2:07 pm
- Forum: Project Announcements
- Topic: [TEAM NEEDED] SimNation
- Replies: 6
- Views: 3016
Hello Arya and Katsankat, thanks for the replies!
Right now I'm studying Arras' tiled engine (ShTlTerrainSceneNode - http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=20940), since some maps, like Brazil, are pretty huge to show in many computers (specially laptops) as a whole thing.
Arya, up ...
Right now I'm studying Arras' tiled engine (ShTlTerrainSceneNode - http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=20940), since some maps, like Brazil, are pretty huge to show in many computers (specially laptops) as a whole thing.
Arya, up ...
- Fri Jun 19, 2009 3:19 pm
- Forum: Beginners Help
- Topic: Unable to compile any example files for IrrNewt.
- Replies: 8
- Views: 853
- Fri Jun 19, 2009 2:35 pm
- Forum: Project Announcements
- Topic: [TEAM NEEDED] SimNation
- Replies: 6
- Views: 3016
- Fri Jun 05, 2009 6:16 pm
- Forum: Beginners Help
- Topic: I don't want my texture cut!
- Replies: 2
- Views: 353
I don't want my texture cut!
Hi,
I want to load the texture completely in the terrain, without cutting or repeating it. Since each texture is a country, what I do is:
1) cut a world altitude map for the country region (this creates a small bmp, which is loaded with smgr->addTerrainSceneNode);
1.1) this map has to be scaled ...
I want to load the texture completely in the terrain, without cutting or repeating it. Since each texture is a country, what I do is:
1) cut a world altitude map for the country region (this creates a small bmp, which is loaded with smgr->addTerrainSceneNode);
1.1) this map has to be scaled ...
- Fri Jun 05, 2009 6:00 pm
- Forum: Beginners Help
- Topic: drawing lines in terrain
- Replies: 8
- Views: 1058
- Thu Jun 04, 2009 7:00 pm
- Forum: Project Announcements
- Topic: [TEAM NEEDED] SimNation
- Replies: 6
- Views: 3016
[TEAM NEEDED] SimNation
Hi fellows,
My project is a simulation of real countries, with data about population growth, land use, biodiversity, energy budget, foreign trade, industries, agriculture, ocupation of the working class, and so on.
The main idea is to teach people how things happen in real world, so they won't ...
My project is a simulation of real countries, with data about population growth, land use, biodiversity, energy budget, foreign trade, industries, agriculture, ocupation of the working class, and so on.
The main idea is to teach people how things happen in real world, so they won't ...
- Tue Jun 02, 2009 8:47 pm
- Forum: Beginners Help
- Topic: drawing lines in terrain
- Replies: 8
- Views: 1058
- Tue Jun 02, 2009 2:47 pm
- Forum: Beginners Help
- Topic: drawing lines in terrain
- Replies: 8
- Views: 1058
Thanks for the information, hybrid. I'm basing myself in the example 3 (from the tutorial), I already got the tetraeder to appear together with my map.
"With the latter you can put all shape points into one array, build the index list for it, and draw all lines in one go."
How do I build the index ...
"With the latter you can put all shape points into one array, build the index list for it, and draw all lines in one go."
How do I build the index ...
- Mon Jun 01, 2009 8:05 pm
- Forum: Beginners Help
- Topic: drawing lines in terrain
- Replies: 8
- Views: 1058
- Mon Jun 01, 2009 6:45 pm
- Forum: Beginners Help
- Topic: drawing lines in terrain
- Replies: 8
- Views: 1058
drawing lines in terrain
Hi,
I'm drawing country maps with irrlicht, and it's working really nice! I've got many shapefiles with data that I want to draw on those maps, like roads, but I don't know how to do it. I read the lines from the shapefile (.shp), this obviously can't be done inside the main loop.
I wanna have ...
I'm drawing country maps with irrlicht, and it's working really nice! I've got many shapefiles with data that I want to draw on those maps, like roads, but I don't know how to do it. I read the lines from the shapefile (.shp), this obviously can't be done inside the main loop.
I wanna have ...