Search found 24 matches

by RodrigoAmazonas
Tue Oct 20, 2009 6:37 pm
Forum: Beginners Help
Topic: Converting from wchar_t* to char* from Irrlicht's EditBox
Replies: 4
Views: 971

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 ou...
by RodrigoAmazonas
Wed Sep 30, 2009 9:14 pm
Forum: Beginners Help
Topic: Rectangular terrain
Replies: 1
Views: 327

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 686x...
by RodrigoAmazonas
Fri Jul 03, 2009 8:24 pm
Forum: Off-topic
Topic: search in titles
Replies: 1
Views: 665

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?
by RodrigoAmazonas
Fri Jul 03, 2009 6:57 pm
Forum: Beginners Help
Topic: Unable to compile any example files for IrrNewt.
Replies: 8
Views: 550

For the case anyone run into a similar problem:

Project options:
Search directories:
Compiler:
......irrlicht-1.5\include
Linker:
......irrlicht-1.5\lib\Win32-gcc (or anyone you're using)

and
Linker settings:
Link libraries:
......irrlicht-1.5\lib\Win32-gcc\libIrrlicht.a

That's all!
by RodrigoAmazonas
Fri Jul 03, 2009 6:55 pm
Forum: Beginners Help
Topic: [Warning] `nul.gcda' is not a gcov data file
Replies: 10
Views: 4115

For the case anyone run into a similar problem:

Project options:
Search directories:
Compiler:
......irrlicht-1.5\include
Linker:
......irrlicht-1.5\lib\Win32-gcc (or anyone you're using)

and
Linker settings:
Link libraries:
......irrlicht-1.5\lib\Win32-gcc\libIrrlicht.a

That's all!
by RodrigoAmazonas
Wed Jul 01, 2009 2:07 pm
Forum: Project Announcements
Topic: [TEAM NEEDED] SimNation
Replies: 6
Views: 2627

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 t...
by RodrigoAmazonas
Fri Jun 19, 2009 3:19 pm
Forum: Beginners Help
Topic: Unable to compile any example files for IrrNewt.
Replies: 8
Views: 550

Hey! I'm getting a similar problem. I've downloaded the ShTlTerrainSceneNode and was trying to compile it. I only had to change a single line scene::E_DEBUG_SCENE_TYPE dtype = terrain->isDebugDataVisible(); to scene::E_DEBUG_SCENE_TYPE dtype = scene::E_DEBUG_SCENE_TYPE(terrain->isDebugDataVisible())...
by RodrigoAmazonas
Fri Jun 19, 2009 2:35 pm
Forum: Project Announcements
Topic: [TEAM NEEDED] SimNation
Replies: 6
Views: 2627

Well, here are some images of the previous (2d) version (available at http://ufpr.dl.sourceforge.net/sourceforge/simnation/SN_0.3_Full.zip ), so you can understand the project better: Main screen, showing a selected country with the cities (passing the mouse over a city shows its name and population...
by RodrigoAmazonas
Fri Jun 05, 2009 6:16 pm
Forum: Beginners Help
Topic: I don't want my texture cut!
Replies: 2
Views: 218

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 to m...
by RodrigoAmazonas
Fri Jun 05, 2009 6:00 pm
Forum: Beginners Help
Topic: drawing lines in terrain
Replies: 8
Views: 788

Hey, hybrid, thanks a lot! It worked fine, or almost: the lines are not "attached" to the terrain. Look the screenshot: http://i87.servimg.com/u/f87/12/97/71/98/bug410.jpg The red lines are the roads. Some of them float much above the terrain, others much below it. My code is: P = Points[k...
by RodrigoAmazonas
Thu Jun 04, 2009 7:00 pm
Forum: Project Announcements
Topic: [TEAM NEEDED] SimNation
Replies: 6
Views: 2627

[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 belie...
by RodrigoAmazonas
Tue Jun 02, 2009 8:47 pm
Forum: Beginners Help
Topic: drawing lines in terrain
Replies: 8
Views: 788

Well, now I think I understand what the indices do (they do 2 triangles to form a rectangle, that will be my line, right?). I tried with typedef video::S3DVertex TQuad[4]; but this array didn't work. Now I'm putting all the vertex together in one vector (Quad). // by the way, in my version of irrlic...
by RodrigoAmazonas
Tue Jun 02, 2009 2:47 pm
Forum: Beginners Help
Topic: drawing lines in terrain
Replies: 8
Views: 788

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 t...
by RodrigoAmazonas
Mon Jun 01, 2009 8:05 pm
Forum: Beginners Help
Topic: drawing lines in terrain
Replies: 8
Views: 788

Thanks hybrid. But what do you mean "same sized lines": same thickness or same length (or anything else)? Here in Brazil it only works with OpenGL, so that wouldn't be a limitation right now (but I want my code to be as portable as possible, so...) I think the other option is the one (draw...
by RodrigoAmazonas
Mon Jun 01, 2009 6:45 pm
Forum: Beginners Help
Topic: drawing lines in terrain
Replies: 8
Views: 788

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 sever...