Search found 23 matches

by Alastriona
Thu Apr 22, 2010 9:12 am
Forum: Beginners Help
Topic: Using Irrlicht with VB.net
Replies: 8
Views: 1194

If you have a .net wrapper you will be able to use Irrlicht from any .net language. I very much doubt there would be any tutorials for using Irrlicht with VB.NET though. I'm not convinced that language lends itself very well to 3d application development. If you think C++ is too big of a step from V...
by Alastriona
Thu Apr 22, 2010 8:59 am
Forum: Beginners Help
Topic: Changing vertex color of terrain.
Replies: 5
Views: 733

Thanks, I do it this way. I would like to change it without generating a new surface, but I guess its impossible. Iterrainscenenode->getMesh()->getMeshbuffer()->getVertices() And then modify the vertices in the array. Wouldn't that work? The terrain node has dynamic lod, so the meshbuffer is consta...
by Alastriona
Wed Apr 21, 2010 5:11 pm
Forum: Beginners Help
Topic: Changing vertex color of terrain.
Replies: 5
Views: 733

bonsalty wrote:Thanks, I do it this way. I would like to change it without generating a new surface, but I guess its impossible.
Iterrainscenenode->getMesh()->getMeshbuffer()->getVertices()

And then modify the vertices in the array. Wouldn't that work?
by Alastriona
Wed Apr 21, 2010 12:12 pm
Forum: Beginners Help
Topic: Changing vertex color of terrain.
Replies: 5
Views: 733

Re: Changing vertex color of terrain.

bonsalty wrote:Whats the best way to change the vertex color of the terrainscenenode , not the material color?
loadHeightmap allows you to set the vertex colour iirc.
by Alastriona
Mon Apr 19, 2010 12:45 pm
Forum: Bug reports
Topic: BUG: TerrainScenenode reinit+camera pos+render=MEMLEAK
Replies: 9
Views: 916

EDIT: nevermind I'm used to Allman style indentation. Damn you K&R!!!
by Alastriona
Mon Apr 19, 2010 8:25 am
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Well, seeing the Nullpointer in the error obviously tells that either the device pointer is bogus If something is corrupting his memory then the pointer may very well have been invalidated. But it can't hurt to check if your device is indeed set. or the memory read file couldn't be created (which o...
by Alastriona
Sun Apr 18, 2010 11:15 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Acki is using WinXP and minGW. ... And are you using the precompiled version of Irrlicht or did you compile it yourself? maybe I should also mention that I'm using a selve-compiled version of Irr1.7.1 in release mode... ;) Self compiled seems to be the way to go here. I'd say try that if you haven'...
by Alastriona
Sun Apr 18, 2010 10:23 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

"The moral of the story" - If a code works on one machine but not on the other - its a bug or its your fault :( . Your code with the "char version" isnt working . Lets take a float pointer. The code seems ok :D This is not Ok. :cry: Unhandled exception at 0x00661eff in OpenGLDia...
by Alastriona
Sun Apr 18, 2010 9:02 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Larger sizes should work as expected, I did work with huge terrains some time ago. Was just to make sure that it's not the problems here. I didn't check any of the code for real, just checking with my eyes. No more time for anything else, sorry. Also no time for the debugging of the terrain node ye...
by Alastriona
Sun Apr 18, 2010 8:50 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Success! It all looks quite good in Irrlicht with this standard texture. Now I guess I'm going to have to try some different algorithms such as perlin noise. Hoping to perhaps turn this thing into a terrain generation library someday. Big thanks for all the support guys. I will try your code . Isnt ...
by Alastriona
Sun Apr 18, 2010 8:25 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Uuuuhm okaaaay. I just rebuilt Irrlicht engine in debug mode to start debugging my issue. Now everything works fine though. I'll try to rebuild in release mode as well and see if it is a compiler setting issue. Using my terrain generating function doesn't give the desired result yet. but at least I'...
by Alastriona
Sun Apr 18, 2010 8:09 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

Even if no values would be generated, the array could be used. So it's obviously something else. Just try a debugger. I have been using a debugger. But since I used the precompiled version of irrlicht it doesn't have debug info built into it so I can only step through my own code atm. I'm going to ...
by Alastriona
Sun Apr 18, 2010 7:57 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

What plaform/IDE/compiler are you using? I'll be trying with your function just to make sure it isn't my terrain generation at fault here. EDIT: It does not work for me. still getting a buffer overflow. Even after I disable all my generation code and replace it with your function. I'm using microsof...
by Alastriona
Sun Apr 18, 2010 6:36 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

I'm about to give up on this. Can't seem to get it to work. Whenever I call the loadHeightMapRAW() function everything goes wrong. I don't get any errors from any of the other code if I comment out the call to loadHeightMapRAW(). Heres the complete code. All I excluded is the code that generates the...
by Alastriona
Sun Apr 18, 2010 4:50 pm
Forum: Beginners Help
Topic: Generating terrain from a plain c++ array
Replies: 41
Views: 3262

You don't have to cast addresses to void*, just take the address. And the size is sizeof(elementtype)*elementcount. Just make sure you use the correct numbers as RAW loader params as well, and don't give the RAW image to the usual constructor right away. By correct numbers you mean the amount of bi...